You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vasi <ko...@hotpop.com> on 2003/12/12 11:34:21 UTC

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="Alabama">Alabama</html:option>
                  <html:option value="Alaska">Alaska</html:option>
                  <html:option value="Arizona">Arizona</html:option>
                  <html:option value="Arkansas">Arkansas</html:option>
                  <html:option value="California">California</html:option>
                  <html:option value="Colorado">Colorado</html:option>
                  <html:option value="Connecticut">Connecticut</html:option>
                  <html:option value="Delaware">Delaware</html:option>
</html:select>
 <% }else {%>
  <html:select property="current_location" size="1">
              <html:option value="Please Select One">Please Select
One</html:option>
                                    <html:option
value="Alabama">Alabama</html:option>
                  <html:option value="Alaska">Alaska</html:option>
                  <html:option value="Arizona">Arizona</html:option>
                  <html:option value="Arkansas">Arkansas</html:option>
                  <html:option value="California">California</html:option>
                  <html:option value="Colorado">Colorado</html:option>
                  <html:option value="Connecticut">Connecticut</html:option>
                  <html:option value="Delaware">Delaware</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="Alabama">Alabama</html:option>
                  <html:option value="Alaska">Alaska</html:option>
                  <html:option value="Arizona">Arizona</html:option>
                  <html:option value="Arkansas">Arkansas</html:option>
                  <html:option value="California">California</html:option>
                  <html:option value="Colorado">Colorado</html:option>
                  <html:option value="Connecticut">Connecticut</html:option>
                  <html:option value="Delaware">Delaware</html:option>

</html:select>
 <% }else {%>
  <html:select property="preferred_location" size="1">
              <html:option value="Please Select One">Please Select
One</html:option>
                        <html:option value="Alabama">Alabama</html:option>
                  <html:option value="Alaska">Alaska</html:option>
                  <html:option value="Arizona">Arizona</html:option>
                  <html:option value="Arkansas">Arkansas</html:option>
                  <html:option value="California">California</html:option>
                  <html:option value="Colorado">Colorado</html:option>
                  <html:option value="Connecticut">Connecticut</html:option>
                  <html:option value="Delaware">Delaware</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

Posted by keshav <ke...@bigtec.org>.
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" <ko...@hotpop.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
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:ggarciab@itdeusto.com]
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: java.lang.VerifyError

Posted by Firat TIRYAKI <fi...@pleksus.com.tr>.
check your scope and try to change it, I mean the private, public and
protected shed on your code...

F.

----- Original Message ----- 
From: "Vasi" <ko...@hotpop.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
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:ggarciab@itdeusto.com]
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: java.lang.VerifyError

Posted by Vasi <ko...@hotpop.com>.
Hi Guido,

I have JDK1.4 version and also the JVM is 1.4

Regds
Vasi

-----Original Message-----
From: Guido García Bernardo [mailto:ggarciab@itdeusto.com]
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: java.lang.VerifyError

Posted by Guido García Bernardo <gg...@itdeusto.com>.
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="Alabama">Alabama</html:option>
>                  <html:option value="Alaska">Alaska</html:option>
>                  <html:option value="Arizona">Arizona</html:option>
>                  <html:option value="Arkansas">Arkansas</html:option>
>                  <html:option
>value="California">California</html:option>
>                  <html:option value="Colorado">Colorado</html:option>
>                  <html:option
>value="Connecticut">Connecticut</html:option>
>                  <html:option value="Delaware">Delaware</html:option>
></html:select>
> <% }else {%>
>  <html:select property="current_location" size="1">
>              <html:option value="Please Select One">Please Select
>One</html:option>
>                                    <html:option
>value="Alabama">Alabama</html:option>
>                  <html:option value="Alaska">Alaska</html:option>
>                  <html:option value="Arizona">Arizona</html:option>
>                  <html:option value="Arkansas">Arkansas</html:option>
>                  <html:option
>value="California">California</html:option>
>                  <html:option value="Colorado">Colorado</html:option>
>                  <html:option
>value="Connecticut">Connecticut</html:option>
>                  <html:option value="Delaware">Delaware</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="Alabama">Alabama</html:option>
>                  <html:option value="Alaska">Alaska</html:option>
>                  <html:option value="Arizona">Arizona</html:option>
>                  <html:option value="Arkansas">Arkansas</html:option>
>                  <html:option
>value="California">California</html:option>
>                  <html:option value="Colorado">Colorado</html:option>
>                  <html:option
>value="Connecticut">Connecticut</html:option>
>                  <html:option value="Delaware">Delaware</html:option>
>
></html:select>
> <% }else {%>
>  <html:select property="preferred_location" size="1">
>              <html:option value="Please Select One">Please Select
>One</html:option>
>                        <html:option
>value="Alabama">Alabama</html:option>
>                  <html:option value="Alaska">Alaska</html:option>
>                  <html:option value="Arizona">Arizona</html:option>
>                  <html:option value="Arkansas">Arkansas</html:option>
>                  <html:option
>value="California">California</html:option>
>                  <html:option value="Colorado">Colorado</html:option>
>                  <html:option
>value="Connecticut">Connecticut</html:option>
>                  <html:option value="Delaware">Delaware</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 - ggarciab@itdeusto.com 
<ma...@itdeusto.com>
Tfn. +34 983 54 89 08
IT DEUSTO <http://www.itdeusto.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: java.lang.VerifyError

Posted by Manuel Lenz <Lz...@viessmann.com>.




Sorry,
code is ok.
Do you have a better exception message?
Have you tried to debug jsp-site?

Cheers,
Manuel


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org