Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Illegal type in constant pool

  1. #11

    Default

    hello!

    i have exactly the same problem! My aop.xml looks like that:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!--  <!DOCTYPE aspectj  SYSTEM "/home/devuser/workspace/NDBJS_Re7/WebContent/WEB-INF/aspectj.dtd"> -->
    
    <!DOCTYPE aspectj PUBLIC    
      "-//AspectJ//DTD//EN"    "http://www.eclipse.org/aspectj/dtd/aspectj.dtd">    
    
    <aspectj>   
      <weaver 
        options="-showWeaveInfo -XmessageHandlerClass:org.springframework.aop.aspectj.AspectJWeaverMessageHandler">
        <include within="najsre7..*"/>
      </weaver> 
      
      <aspects>
        <include within="org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect"/>
      </aspects> 
    </aspectj>
    Exception:
    Code:
    java.lang.VerifyError: (class: org/hibernate/impl/SessionFactoryImpl, method: readResolve signature: ()Ljava/lang/Object;) Illegal type in constant pool
    	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
    	at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:728)
    Any ideas?
    Angela

  2. #12

    Default

    I do have a include within in there, but only in the META-INF of the main application war. In addition I have many other jar files that don't have aop.xml in their META-INFs and the war references these. I thought the main aop.xml from war would prevent the weaving of those too.

    I try adding aop.xml to all my jars, and let you know what happens.

  3. #13
    Join Date
    Jul 2005
    Location
    Lübeck, Germany
    Posts
    9

    Default

    Hey there!

    I have the same problem. First i had it with Log4j. Using the same log4j.jar file in ${catalina.home}/common/lib and in my webapp solved the problem with Log4j. But now i have the same error with hibernate as you have. Does anyone has found a solution for that? By now i'm sitting for three days on the error. Using a workaround instead of AspectJ would make my domain model very ugly. Maybe some of the Spring Guys have an answer?

    Thanks in advance!

    Regards Torben

  4. #14

    Default

    Anybody got past this?

    I'm using spring 2.1-m4 and getting the Illegal type in constant pool while creating the session factory.
    Leonardo Borges

  5. #15
    Join Date
    Nov 2007
    Posts
    3

    Talking

    jwijgerd,

    Life saver answer I was missing the META-INF/aop.xml in my deployment and all the classes in the server were being process of course hibernate jar was different in the server. java.lang.VerificationError if you get that exception make sure your aop.xml is deployed.


    Fabio

  6. #16
    Join Date
    Aug 2006
    Location
    Now Germany, previously Ukraine
    Posts
    1,546

    Default

    I have used LTW for more then a year without any issues and then all from sudden this damned error (for log4j Logger) appeared on my development notebook (there are several Spring projects in different stages of development deploeyd into tomcat 5.5 and at the time being no one of them really uses AOP). Error appeared after redeployment of one of the projects. Nothing special.
    All other prohjects start absolutely normally,

    I have added aop.xml to the affected project excluding all clsees from weaving to no avail.

    The only solution that I have found was to remove agent. But I do not like it as in a short time I would need it.

    Any suggestions?

    Regards,
    Oleksandr

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •