java.lang.VerifyError
HI All, I am facing a typical issue. I have the following code in my jsp page. When I remove this code and excute, I have no issues, but I run the code with this, i get the below mentioned error. Appreciate your help. [Jsp Code] % if(current_location!=null){ % html:select property=current_location size=1 html:option value=%=current_location%%=current_location%/html:option html:option value=AlabamaAlabama/html:option html:option value=AlaskaAlaska/html:option html:option value=ArizonaArizona/html:option html:option value=ArkansasArkansas/html:option html:option value=CaliforniaCalifornia/html:option html:option value=ColoradoColorado/html:option html:option value=ConnecticutConnecticut/html:option html:option value=DelawareDelaware/html:option /html:select % }else {% html:select property=current_location size=1 html:option value=Please Select OnePlease Select One/html:option html:option value=AlabamaAlabama/html:option html:option value=AlaskaAlaska/html:option html:option value=ArizonaArizona/html:option html:option value=ArkansasArkansas/html:option html:option value=CaliforniaCalifornia/html:option html:option value=ColoradoColorado/html:option html:option value=ConnecticutConnecticut/html:option html:option value=DelawareDelaware/html:option html:select % } % br % if(preferred_location!=null){ % html:select property=preferred_location size=1 html:option value=%=preferred_location%%=preferred_location%/html:option html:option value=AlabamaAlabama/html:option html:option value=AlaskaAlaska/html:option html:option value=ArizonaArizona/html:option html:option value=ArkansasArkansas/html:option html:option value=CaliforniaCalifornia/html:option html:option value=ColoradoColorado/html:option html:option value=ConnecticutConnecticut/html:option html:option value=DelawareDelaware/html:option /html:select % }else {% html:select property=preferred_location size=1 html:option value=Please Select OnePlease Select One/html:option html:option value=AlabamaAlabama/html:option html:option value=AlaskaAlaska/html:option html:option value=ArizonaArizona/html:option html:option value=ArkansasArkansas/html:option html:option value=CaliforniaCalifornia/html:option html:option value=ColoradoColorado/html:option html:option value=ConnecticutConnecticut/html:option html:option value=DelawareDelaware/html:option /html:select % } % [/Jsp Code] Root cause: java.lang.VerifyError: (class: _0002feditcandidate_0002ejspeditcandidate_jsp_7, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo nse;)V) Illegal target of jump or branch at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576) at java.lang.Class.getConstructor0(Class.java:1748) at java.lang.Class.newInstance0(Class.java:266) at java.lang.Class.newInstance(Class.java:249) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java: 116) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:154) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) RegdsVasi
Re: java.lang.VerifyError
Sorry, code is ok. Do you have a better exception message? Have you tried to debug jsp-site? Cheers, Manuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.VerifyError
I have seen that exception... when I try to use a 1.4 compiled Java class under a 1.2 jvm. Try googling... Regards, Guido. Vasi wrote: HI All, I am facing a typical issue. I have the following code in my jsp page. When I remove this code and excute, I have no issues, but I run the code with this, i get the below mentioned error. Appreciate your help. [Jsp Code] % if(current_location!=null){ % html:select property=current_location size=1 html:option value=%=current_location%%=current_location%/html:option html:option value=AlabamaAlabama/html:option html:option value=AlaskaAlaska/html:option html:option value=ArizonaArizona/html:option html:option value=ArkansasArkansas/html:option html:option value=CaliforniaCalifornia/html:option html:option value=ColoradoColorado/html:option html:option value=ConnecticutConnecticut/html:option html:option value=DelawareDelaware/html:option /html:select % }else {% html:select property=current_location size=1 html:option value=Please Select OnePlease Select One/html:option html:option value=AlabamaAlabama/html:option html:option value=AlaskaAlaska/html:option html:option value=ArizonaArizona/html:option html:option value=ArkansasArkansas/html:option html:option value=CaliforniaCalifornia/html:option html:option value=ColoradoColorado/html:option html:option value=ConnecticutConnecticut/html:option html:option value=DelawareDelaware/html:option html:select % } % br % if(preferred_location!=null){ % html:select property=preferred_location size=1 html:option value=%=preferred_location%%=preferred_location%/html:option html:option value=AlabamaAlabama/html:option html:option value=AlaskaAlaska/html:option html:option value=ArizonaArizona/html:option html:option value=ArkansasArkansas/html:option html:option value=CaliforniaCalifornia/html:option html:option value=ColoradoColorado/html:option html:option value=ConnecticutConnecticut/html:option html:option value=DelawareDelaware/html:option /html:select % }else {% html:select property=preferred_location size=1 html:option value=Please Select OnePlease Select One/html:option html:option value=AlabamaAlabama/html:option html:option value=AlaskaAlaska/html:option html:option value=ArizonaArizona/html:option html:option value=ArkansasArkansas/html:option html:option value=CaliforniaCalifornia/html:option html:option value=ColoradoColorado/html:option html:option value=ConnecticutConnecticut/html:option html:option value=DelawareDelaware/html:option /html:select % } % [/Jsp Code] Root cause: java.lang.VerifyError: (class: _0002feditcandidate_0002ejspeditcandidate_jsp_7, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletR espo nse;)V) Illegal target of jump or branch at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576) at java.lang.Class.getConstructor0(Class.java:1748) at java.lang.Class.newInstance0(Class.java:266) at java.lang.Class.newInstance(Class.java:249) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.j ava: 116) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J spSe rvlet.java:154) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle t.ja va:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) RegdsVasi -- Guido García Bernardo - [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Tfn. +34 983 54 89 08 IT DEUSTO http://www.itdeusto.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.VerifyError
Hi Guido, I have JDK1.4 version and also the JVM is 1.4 Regds Vasi -Original Message- From: Guido García Bernardo [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 4:25 PM To: Struts Users Mailing List Subject: Re: java.lang.VerifyError I have seen that exception... when I try to use a 1.4 compiled Java class under a 1.2 jvm. Try googling... Regards, Guido. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.VerifyError
check your scope and try to change it, I mean the private, public and protected shed on your code... F. - Original Message - From: Vasi [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, December 12, 2003 1:19 PM Subject: RE: java.lang.VerifyError Hi Guido, I have JDK1.4 version and also the JVM is 1.4 Regds Vasi -Original Message- From: Guido García Bernardo [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 4:25 PM To: Struts Users Mailing List Subject: Re: java.lang.VerifyError I have seen that exception... when I try to use a 1.4 compiled Java class under a 1.2 jvm. Try googling... Regards, Guido. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.VerifyError
Hi Vasi, This error occurs if the older version of XML parser is in classpath. Get the latest version of parser and include in classpath. regards, Keshava Murthy. S - Original Message - From: Vasi [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, December 12, 2003 4:49 PM Subject: RE: java.lang.VerifyError Hi Guido, I have JDK1.4 version and also the JVM is 1.4 Regds Vasi -Original Message- From: Guido García Bernardo [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 4:25 PM To: Struts Users Mailing List Subject: Re: java.lang.VerifyError I have seen that exception... when I try to use a 1.4 compiled Java class under a 1.2 jvm. Try googling... Regards, Guido. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: StrutsTest issue: java.lang.VerifyError/Signature ( not able to fix this)
it seems that there is something in your struts test jar file which is using different version of some classes u are using ... Try putting the struts test jar file last in class path.. -Original Message- From: karthik Guru [mailto:[EMAIL PROTECTED] Sent: Saturday, March 22, 2003 2:08 PM To: Struts Users Mailing List Subject: StrutsTest issue: java.lang.VerifyError/Signature ( not able to fix this) All, Am not able to fix this error. It occurs only if i try to access any StrutsTest specific methods. ( eg: setRequestPathInfo(/logon);) in my test method. It works just fine in normal cases. thanks, karthik Original Message- From: karthik Guru [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 11:43 AM To: [EMAIL PROTECTED] Subject: StrutsTest issue: java.lang.VerifyError/Signature Hi, Am using strutstest for testing our Struts actionclasses . Am getting this error only when run from within a war file . Thoughts?? This occurs only when run from within a war file. Am almost done with automating the testing from within the daily builds (using ANT). But am unable to solve this issue. All the jars required on the server side for running cactus tests reside in the webapp/web-inf/lib directory. Testcase: testSuccessfulLogin took 0.36 sec Caused an ERROR (class: com/i2/iquote/test/ui/actions/LoginActionTest, method: testSuccessfulLogin signature: ()V) Incompatible object argument for function call java.lang.VerifyError: (class: com/i2/iquote/test/ui/actions/LoginActionTest, method: testSuccessfulLogin signature: ()V) Incompatible object argument for function call at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:190) at org.apache.cactus.util.ClassLoaderUtils.dispatch130_loadClassFromWebappClassLoader(ClassLoaderUtils.java;org/apache/cactus/util/log/LogAspect.aj(1k):132) - Source Code: public class LoginActionTest extends BaseTestcase { public LoginActionTest(String name) { super(name); } public void testSuccessfulLogin() { setRequestPathInfo(/logon); addRequestParameter(UIConstants.USER_KEY, getTestParameter(USERNAME)); addRequestParameter(UIConstants.PASSWORD_KEY, getTestParameter(CORRECT_PASSWORD)); actionPerform(); verifyForward(success); User user = (User) getSession().getAttribute(UIConstants.CURRENT_USER); Boolean isLoggedIn = (Boolean) getSession().getAttribute(UIConstants.IS_USER_LOGGED_IN); assertNotNull(USER Object from session IS NULL, user); assertNotNull(IS LOGGED IN from session is NULL, isLoggedIn); assertTrue( USER NOT LOGGED IN , isLoggedIn.booleanValue()); String uid = user.getId(); assertEquals(user_100, uid); Role role = user.getRole(); assertNotNull( ROLE OBTAINED FOR USER IS NULL , role); verifyNoActionErrors(); printString(User user_100 logged in successfully.); } } BaseTestCase in turn extends CactusStrutsTestCase thanks, regards, karthik - Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
StrutsTest issue: java.lang.VerifyError/Signature ( not able to fix this)
All, Am not able to fix this error. It occurs only if i try to access any StrutsTest specific methods. ( eg: setRequestPathInfo(/logon);) in my test method. It works just fine in normal cases. thanks, karthik Original Message- From: karthik Guru [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 11:43 AM To: [EMAIL PROTECTED] Subject: StrutsTest issue: java.lang.VerifyError/Signature Hi, Am using strutstest for testing our Struts actionclasses . Am getting this error only when run from within a war file . Thoughts?? This occurs only when run from within a war file. Am almost done with automating the testing from within the daily builds (using ANT). But am unable to solve this issue. All the jars required on the server side for running cactus tests reside in the webapp/web-inf/lib directory. Testcase: testSuccessfulLogin took 0.36 sec Caused an ERROR (class: com/i2/iquote/test/ui/actions/LoginActionTest, method: testSuccessfulLogin signature: ()V) Incompatible object argument for function call java.lang.VerifyError: (class: com/i2/iquote/test/ui/actions/LoginActionTest, method: testSuccessfulLogin signature: ()V) Incompatible object argument for function call at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:190) at org.apache.cactus.util.ClassLoaderUtils.dispatch130_loadClassFromWebappClassLoader(ClassLoaderUtils.java;org/apache/cactus/util/log/LogAspect.aj(1k):132) - Source Code: public class LoginActionTest extends BaseTestcase { public LoginActionTest(String name) { super(name); } public void testSuccessfulLogin() { setRequestPathInfo(/logon); addRequestParameter(UIConstants.USER_KEY, getTestParameter(USERNAME)); addRequestParameter(UIConstants.PASSWORD_KEY, getTestParameter(CORRECT_PASSWORD)); actionPerform(); verifyForward(success); User user = (User) getSession().getAttribute(UIConstants.CURRENT_USER); Boolean isLoggedIn = (Boolean) getSession().getAttribute(UIConstants.IS_USER_LOGGED_IN); assertNotNull(USER Object from session IS NULL, user); assertNotNull(IS LOGGED IN from session is NULL, isLoggedIn); assertTrue( USER NOT LOGGED IN , isLoggedIn.booleanValue()); String uid = user.getId(); assertEquals(user_100, uid); Role role = user.getRole(); assertNotNull( ROLE OBTAINED FOR USER IS NULL , role); verifyNoActionErrors(); printString(User user_100 logged in successfully.); } } BaseTestCase in turn extends CactusStrutsTestCase thanks, regards, karthik - Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
StrutsTest issue: java.lang.VerifyError/Signature
Hi, Am using strutstest for testing our Struts actionclasses . Am getting this error only when run from within a war file . Thoughts?? This occurs only when run from within a war file. Am almost done with automating the testing from within the daily builds (using ANT). But am unable to solve this issue. All the jars required on the server side for running cactus tests reside in the webapp/web-inf/lib directory. Testcase: testSuccessfulLogin took 0.36 sec Caused an ERROR (class: com/i2/iquote/test/ui/actions/LoginActionTest, method: testSuccessfulLogin signature: ()V) Incompatible object argument for function call java.lang.VerifyError: (class: com/i2/iquote/test/ui/actions/LoginActionTest, method: testSuccessfulLogin signature: ()V) Incompatible object argument for function call at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:190) at org.apache.cactus.util.ClassLoaderUtils.dispatch130_loadClassFromWebappClassLoader(ClassLoaderUtils.java;org/apache/cactus/util/log/LogAspect.aj(1k):132) - Source Code: public class LoginActionTest extends BaseTestcase { public LoginActionTest(String name) { super(name); } public void testSuccessfulLogin() { setRequestPathInfo(/logon); addRequestParameter(UIConstants.USER_KEY, getTestParameter(USERNAME)); addRequestParameter(UIConstants.PASSWORD_KEY, getTestParameter(CORRECT_PASSWORD)); actionPerform(); verifyForward(success); User user = (User) getSession().getAttribute(UIConstants.CURRENT_USER); Boolean isLoggedIn = (Boolean) getSession().getAttribute(UIConstants.IS_USER_LOGGED_IN); assertNotNull(USER Object from session IS NULL, user); assertNotNull(IS LOGGED IN from session is NULL, isLoggedIn); assertTrue( USER NOT LOGGED IN , isLoggedIn.booleanValue()); String uid = user.getId(); assertEquals(user_100, uid); Role role = user.getRole(); assertNotNull( ROLE OBTAINED FOR USER IS NULL , role); verifyNoActionErrors(); printString(User user_100 logged in successfully.); } } BaseTestCase in turn extends CactusStrutsTestCase thanks, regards, karthik - Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
RE: StrutsTest issue: java.lang.VerifyError/Signature
Hi, We had similar problem.But with another set of jars(Xerces and XercesImpl..)And it was traced to the fact that the version of xerces.jar which has the API was different than XercesImpl (Which has the mplementation classes for Xerces APIs...).. So check the runtime class path and then check if the war uses same jars and the sequence as well.. I know these are very vague suggestions but if u think in this direction,may be it will help. regards, Shirish -Original Message- From: karthik Guru [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 11:43 AM To: [EMAIL PROTECTED] Subject: StrutsTest issue: java.lang.VerifyError/Signature Hi, Am using strutstest for testing our Struts actionclasses . Am getting this error only when run from within a war file . Thoughts?? This occurs only when run from within a war file. Am almost done with automating the testing from within the daily builds (using ANT). But am unable to solve this issue. All the jars required on the server side for running cactus tests reside in the webapp/web-inf/lib directory. Testcase: testSuccessfulLogin took 0.36 sec Caused an ERROR (class: com/i2/iquote/test/ui/actions/LoginActionTest, method: testSuccessfulLogin signature: ()V) Incompatible object argument for function call java.lang.VerifyError: (class: com/i2/iquote/test/ui/actions/LoginActionTest, method: testSuccessfulLogin signature: ()V) Incompatible object argument for function call at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:190) at org.apache.cactus.util.ClassLoaderUtils.dispatch130_loadClassFromWebappClassLoader(ClassLoaderUtils.java;org/apache/cactus/util/log/LogAspect.aj(1k):132) - Source Code: public class LoginActionTest extends BaseTestcase { public LoginActionTest(String name) { super(name); } public void testSuccessfulLogin() { setRequestPathInfo(/logon); addRequestParameter(UIConstants.USER_KEY, getTestParameter(USERNAME)); addRequestParameter(UIConstants.PASSWORD_KEY, getTestParameter(CORRECT_PASSWORD)); actionPerform(); verifyForward(success); User user = (User) getSession().getAttribute(UIConstants.CURRENT_USER); Boolean isLoggedIn = (Boolean) getSession().getAttribute(UIConstants.IS_USER_LOGGED_IN); assertNotNull(USER Object from session IS NULL, user); assertNotNull(IS LOGGED IN from session is NULL, isLoggedIn); assertTrue( USER NOT LOGGED IN , isLoggedIn.booleanValue()); String uid = user.getId(); assertEquals(user_100, uid); Role role = user.getRole(); assertNotNull( ROLE OBTAINED FOR USER IS NULL , role); verifyNoActionErrors(); printString(User user_100 logged in successfully.); } } BaseTestCase in turn extends CactusStrutsTestCase thanks, regards, karthik - Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: StrutsTest issue: java.lang.VerifyError/Signature
Hi Shirish, Ok just wondering where to start debugging from :-) We program to JAXP and use weblogic's default parser settings. Do u think it c'd be an issue with the XML parser in particular, though as u indicated it does'nt sound convincing enuf. Infact any idea as to what the error actually means?. In general r u guys happy with strutstest? thanks karthik [EMAIL PROTECTED] wrote:Hi, We had similar problem.But with another set of jars(Xerces and XercesImpl..)And it was traced to the fact that the version of xerces.jar which has the API was different than XercesImpl (Which has the mplementation classes for Xerces APIs...).. So check the runtime class path and then check if the war uses same jars and the sequence as well.. I know these are very vague suggestions but if u think in this direction,may be it will help. regards, Shirish -Original Message- From: karthik Guru [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 11:43 AM To: [EMAIL PROTECTED] Subject: StrutsTest issue: java.lang.VerifyError/Signature Hi, Am using strutstest for testing our Struts actionclasses . Am getting this error only when run from within a war file . Thoughts?? This occurs only when run from within a war file. Am almost done with automating the testing from within the daily builds (using ANT). But am unable to solve this issue. All the jars required on the server side for running cactus tests reside in the webapp/web-inf/lib directory. Testcase: testSuccessfulLogin took 0.36 sec Caused an ERROR (class: com/i2/iquote/test/ui/actions/LoginActionTest, method: testSuccessfulLogin signature: ()V) Incompatible object argument for function call java.lang.VerifyError: (class: com/i2/iquote/test/ui/actions/LoginActionTest, method: testSuccessfulLogin signature: ()V) Incompatible object argument for function call at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:190) at org.apache.cactus.util.ClassLoaderUtils.dispatch130_loadClassFromWebappClassLoader(ClassLoaderUtils.java;org/apache/cactus/util/log/LogAspect.aj(1k):132) - Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
RE: StrutsTest issue: java.lang.VerifyError/Signature
Hi, We are not using struts test.. The problem we had was in normally running the application itself on WebSphere which was developed on Eclipse.. So the starting point could be checking the jars u are using for jaxp...Do u have any jars for jaxp and any other parser (Xerces etc?).Because most of the servers have thier own implementation of those parsers and it could be one area of problem. So i would start with checking if web logic provides a default XML parser and the remove any parser i have in the war or classpath... Hope this helps... regards, Shirish -Original Message- From: karthik Guru [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 12:26 PM To: Struts Users Mailing List Subject: RE: StrutsTest issue: java.lang.VerifyError/Signature Hi Shirish, Ok just wondering where to start debugging from :-) We program to JAXP and use weblogic's default parser settings. Do u think it c'd be an issue with the XML parser in particular, though as u indicated it does'nt sound convincing enuf. Infact any idea as to what the error actually means?. In general r u guys happy with strutstest? thanks karthik [EMAIL PROTECTED] wrote:Hi, We had similar problem.But with another set of jars(Xerces and XercesImpl..)And it was traced to the fact that the version of xerces.jar which has the API was different than XercesImpl (Which has the mplementation classes for Xerces APIs...).. So check the runtime class path and then check if the war uses same jars and the sequence as well.. I know these are very vague suggestions but if u think in this direction,may be it will help. regards, Shirish -Original Message- From: karthik Guru [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 11:43 AM To: [EMAIL PROTECTED] Subject: StrutsTest issue: java.lang.VerifyError/Signature Hi, Am using strutstest for testing our Struts actionclasses . Am getting this error only when run from within a war file . Thoughts?? This occurs only when run from within a war file. Am almost done with automating the testing from within the daily builds (using ANT). But am unable to solve this issue. All the jars required on the server side for running cactus tests reside in the webapp/web-inf/lib directory. Testcase: testSuccessfulLogin took 0.36 sec Caused an ERROR (class: com/i2/iquote/test/ui/actions/LoginActionTest, method: testSuccessfulLogin signature: ()V) Incompatible object argument for function call java.lang.VerifyError: (class: com/i2/iquote/test/ui/actions/LoginActionTest, method: testSuccessfulLogin signature: ()V) Incompatible object argument for function call at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:190) at org.apache.cactus.util.ClassLoaderUtils.dispatch130_loadClassFromWebappClassLoader(ClassLoaderUtils.java;org/apache/cactus/util/log/LogAspect.aj(1k):132) - Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.VerifyError/signature
For some unknown reason, I'm getting a VerifyError for the signature of perform. Any ideas? Code works fine when running in the JBuilder IDE using Tomcat 4.0, but does not work when is part of a WAR file. Dave logs -- 2002-08-15 16:12:24 action: Error creating Action instance for path '/displayTemplateList', class name 'config.studio.templatelist.DisplayTemplateListAction' java.lang.VerifyError: (class: config/studio/templatelist/DisplayTemplateListAction, method: perform signature: (Lorg/apache/struts/action/ActionMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lorg/apa at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) at org.apache.struts.action.ActionServlet.processActionCreate(ActionServlet.java:1631) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1577) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107) at java.lang.Thread.run(Thread.java:536) code: --- package config.studio.templatelist; import org.apache.struts.action.*; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import javax.servlet.http.HttpServletResponse; import javax.servlet.ServletException; import java.io.IOException; import java.util.List; import java.util.ArrayList; import java.util.Iterator; public class DisplayTemplateListAction extends Action { public DisplayTemplateListAction() { } public ActionForward perform( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { --- Dave Hodson MessageCast, inc. Email: [EMAIL PROTECTED] www.messagecast.net
java.lang.VerifyError
hello, did any body get this error. I downloaded the latest version of struts, compiled my source files. When i access the jsp's which were other wise working before throw this error. java.lang.VerifyError: (class: project/struts/form/TestForm, method: validate signature: (Lorg/apache/struts/action/ActionMapping;Ljavax/servlet/http/HttpServletRequ est;)Lorg/apache/struts/action/ActionErrors;) Incompatible object argument for function call at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563) at login._0002flogin_0002flogin_0002ejsplogin_jsp_0._jspService(_0002flogin_000 2flogin_0002ejsplogin_jsp_0.java:92) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja va:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:80 6) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:4 thanks in advance, srinivas. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]