As Suggested ive set the devmode to true and as hinted the error is being thrown by the Parameters interceptor , as im new to coding im not being able to figure out where I'm going wrong .Ive put logging into the action ,dao classes and attached them here . The stack trace is as below. my logging statement Inside loaddomaintype loadDomaintype DAO loadDomaintype DAO try block Connected inside loadDomainType I am setting the value as 1 MARITALSTATUS The Objectid(D.T) is 1 Code of added bean MARITALSTATUS dtoid is 1 I am setting the value as 2 GENDER The Objectid(D.T) is 2 Code of added bean GENDER dtoid is 2 I am setting the value as 3 EMPGROUP The Objectid(D.T) is 3 Code of added bean EMPGROUP dtoid is 3 I am setting the value as 4 UserType The Objectid(D.T) is 4 Code of added bean UserType dtoid is 4 The size of the list is4 Inside AddDomain Inside add try Mar 16, 2011 9:29:43 AM com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'domainType' on 'class com.vivek.struts2.action.DomainAction1: Error setting expression 'domainType' with value '[Ljava.lang.String;@aea710' Connected In OBJECTIDnull org.postgresql.util.PSQLException: ERROR: insert or update on table "domain" violates foreign key constraint "domain_domaintype_oid_fkey"
at org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139) at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:154) at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:101) at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43) at org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:515) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:50) at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:271) at com.vivek.struts2.dao.DomainDAO.addupDomain(DomainDAO.java:169) at com.vivek.struts2.action.DomainAction1.addupDomain(DomainAction1.java:67)... Not being able to acesss addupDomain Listing records java.lang.NullPointerException at com.vivek.struts2.action.DomainAction1.listDomain(DomainAction1.java:103) at com.vivek.struts2.action.DomainAction1.addupDomain(DomainAction1.java:91) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404) at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:229) at com.opensymphon...... http://struts.1045723.n5.nabble.com/file/n3756079/d6XF5wUN.txt Action Class.txt http://struts.1045723.n5.nabble.com/file/n3756079/VtZEa16s.txt DAO.txt -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3756079.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org