# java.lang.illegalstateexception

**URL:** <https://forum.servoy.com/t/java-lang-illegalstateexception/15289>\
**Category:** Classic Servoy\
**Created:** [January 5, 2012, 1:23pm UTC](https://forum.servoy.com/t/java-lang-illegalstateexception/15289 "2012-01-05T13:23:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashutos](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@ashutos](https://forum.servoy.com/u/ashutos)\
**Post date:** [January 5, 2012, 1:23pm UTC](https://forum.servoy.com/t/java-lang-illegalstateexception/15289/1 "2012-01-05T13:23:00Z")

</div>

Hi All,

I am getting this exception in the console when I starting the solution which is hosted in the server . After the login in the solution open , I am getting this error.  
But when I logging in into the same solution at my local set up . I am not getting any error . My servoy version is 5.2.11 and postgres9.0. After login every thing is fine.

Actually at the solution open I am using the following code:

// Create default preferences record if that is not created.  
var prefFs = databaseManager.getFoundSet(“XXX” , “default\_preferences”);  
prefFs.loadAllRecords();

if(prefFs.getSize() == 0){  
prefFs.newRecord();  
prefFs.YYY = 20;  
}

Here default\_preferences is the name of the table. Also during the solution open I am getting the error : " java.lang.illegalstateexception : Couldnot resolve column default preferences.

ERROR - Debug - java.lang.IllegalStateException: Could not resolve column default\_preferences#defaultpreferences30240.67679=? Could not resolve column default\_preferences#defaultpreferences30240.67679=?  
org.mozilla.javascript.WrappedException: Wrapped com.servoy.j2db.persistence.RepositoryException: java.lang.IllegalStateException: Could not resolve column default\_preferences#defaultpreferences30240.67679=? Could not resolve column default\_preferences#defaultpreferences30240.67679=? (on\_solution\_open#107)  
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1828)  
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:199)  
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:353)  
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:111)  
at org.mozilla.javascript.gen.c10.\_c0(on\_solution\_open:107)  
at org.mozilla.javascript.gen.c10.call(on\_solution\_open)  
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:387)  
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3135)  
at org.mozilla.javascript.gen.c10.call(on\_solution\_open)  
at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:476)  
at com.servoy.j2db.FormManager.makeSolutionSettings(FormManager.java:334)  
at com.servoy.j2db.smart.SwingFormManager.makeSolutionSettings(SwingFormManager.java:189)  
at com.servoy.j2db.FormManager$1.run(FormManager.java:162)  
at java.awt.event.InvocationEvent.dispatch(Unknown Source)  
at java.awt.EventQueue.dispatchEvent(Unknown Source)  
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)  
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)  
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)  
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)  
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)  
at java.awt.EventDispatchThread.run(Unknown Source)

Please help . Waiting for you feedback.
