If you get the error like this and you are sure that you have set the absolute/relative path to the file correctly, then don’t look anywhere, just check your classpath and everything lies there. If you are using any IDE (Eclipse/IntelliJ ID) make sure you update the classpath in the buildpath or in the settings. [...]
Archive for the ‘Weird Errors’ Category
Java – getClass().getResource() always returning null – IntelliJ Idea Fix
Posted in Java, Weird Errors, tagged Java on May 17, 2012 | Leave a Comment »
Intellij Idea – Compiler internal error. Process terminated with exit code 3
Posted in Java, Weird Errors, tagged bug fixes, Java on May 16, 2012 | Leave a Comment »
Just increase the maximum heap size of the compiler(Setting->Compiler->Java Compiler) That should solve it.
psql: FATAL: Ident authentication failed for user
Posted in Weird Errors, tagged database, postgresql on April 15, 2012 | Leave a Comment »
If you have done the new installation, make sure you accessing with the default user credentials. The default user name is ‘postgres’ and the password is the one you chose when you did the installation. And now try creating your db and try to access. All should be well. Go to C:\Program Files\PostgreSQL\9.1\bin createddb -U [...]
Eclipse – Cannot create a server using the selected type
Posted in installations, Weird Errors on January 29, 2012 | Leave a Comment »
Go to Window/Preferences/Server/Runtime Environments, remove the broken reference. Click ‘Add’ to create a new reference, select the appropriate server version, click next and you’ll see the incorrect path reference. Fix it. All should be OK.
Eclipse – Server JBoss/Tomcat at localhost was unable to start within .. seconds. If the server requires more time, try increasing the timeout in the server editor
Posted in installations, Weird Errors on January 21, 2012 | Leave a Comment »
Server JBoss/Tomcat at localhost was unable to start within .. seconds. If the server requires more time, try increasing the timeout in the server editor If you find the above error; open eclipse and double click on the server in “server tab”. In the options screen edit the “Timeout field” to the required one.
Sqldeveloper – Unable to launch the Java Virtual Machine – windows 7 – 64 bit machine
Posted in installations, Weird Errors on January 15, 2012 | Leave a Comment »
I got the following error while trying sqldeveloper though I have the jvm.dll file in the required location. All I had to do was to install 32 bit jdk and all went well. Looks like sqldeveloper has issue with 64 bit jdk. ————————— Oracle SQL Developer ————————— Unable to launch the Java Virtual Machine Located [...]
CSV parsing issues – MalformedCSVError, “Unquoted fields do not allow ” + “\\r or \\n
Posted in Ruby on Rails, Weird Errors, tagged bug fixes, Ruby on Rails on September 30, 2011 | Leave a Comment »
Here, you need to consider 2 things. CSV’s auto line ending detection may be failing for some reason. A likely cause could be fields that contain line endings different from those used to end lines. You should be able to solve this by setting the :row_sep manually. CSV.open(…, :row_sep => “\r\n”) If that doesn’t work, [...]
uninitialized constant CSV/FasterCSV
Posted in Ruby on Rails, Weird Errors, tagged bug fixes, Ruby on Rails on September 30, 2011 | Leave a Comment »
Ruby 1.9 has adopted FasterCSV as its built-in CSV library. However, it’s in the standard library rather than Ruby 1.9′s core, so you need to manually require it in the application. After adding a require ‘csv’ to your code, you can then do things such as CSV.parse(“this,is,my,data”) require ‘csv’ CSV.parse(“this,is,my,data”)
FasterCSV plus support for Ruby 1.9 issue fix
Posted in Ruby on Rails, Weird Errors, tagged bug fixes, Ruby on Rails on September 30, 2011 | Leave a Comment »
If you see the beow issue; Please switch to Ruby 1.9′s standard CSV library. It’s FasterCSV plus support for Ruby 1.9′s m17n encoding engine. Remove fasterCSV from your Gemfile in the application. Bundler is trying to require FasterCSV because you have it specified in the Gemfile.
[Rails] ActiveRecord::AssociationTypeMismatch Object expected got String error – Solution
Posted in Ruby on Rails, Weird Errors, tagged bug fixes, Ruby on Rails on September 23, 2011 | Leave a Comment »
If you are using select (or similar helpers such as collection_select, select_tag) to set a belongs_to association you must pass the name of the foreign key (in the example below blog_id), not the name of association itself. If you specify blog instead of blog_id Active Record will raise an error along the lines of ActiveRecord::AssociationTypeMismatch: [...]