Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 61290 invoked from network); 16 Mar 2011 04:13:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Mar 2011 04:13:18 -0000 Received: (qmail 62886 invoked by uid 500); 16 Mar 2011 04:13:15 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 62855 invoked by uid 500); 16 Mar 2011 04:13:14 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 62847 invoked by uid 99); 16 Mar 2011 04:13:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2011 04:13:14 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2011 04:13:07 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Pzi6H-0006Zd-UV for user@struts.apache.org; Tue, 15 Mar 2011 21:12:45 -0700 Date: Tue, 15 Mar 2011 21:12:45 -0700 (PDT) From: JavaNoobie87 To: user@struts.apache.org Message-ID: <1300248765939-3756079.post@n5.nabble.com> In-Reply-To: References: <1300078390799-3555885.post@n5.nabble.com> <1495214599-1300177255-cardhu_decombobulator_blackberry.rim.net-172311008-@bda267.bisx.prod.on.blackberry> <1300178565016-3690012.post@n5.nabble.com> <1300208226959-3710199.post@n5.nabble.com> <1300208831707-3710504.post@n5.nabble.com> Subject: Re: RE: loading Dropdown dynamically from database MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org