Feeds:
Posts
Comments

Archive for the ‘Weird Errors’ Category

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. [...]

Read Full Post »

Just increase the maximum heap size of the compiler(Setting->Compiler->Java Compiler) That should solve it.

Read Full Post »

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 [...]

Read Full Post »

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.

Read Full Post »

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.

Read Full Post »

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 [...]

Read Full Post »

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, [...]

Read Full Post »

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”)

Read Full Post »

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.

Read Full Post »

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: [...]

Read Full Post »

Older Posts »