Announcement Announcement Module
Collapse
No announcement yet.
VerifyError with IBM Linux PowerPC JDK 1.5 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • VerifyError with IBM Linux PowerPC JDK 1.5

    Hi all,

    I have an application built on Spring that runs fine all all of the platforms I have tried it on (Mac OS X, Linux x86, Windows XP) until now, when I tried it on Linux PPC using the IBM Linux PPC JDK.

    Here is part of the error I am getting:

    java.lang.VerifyError: java.lang.NullPointerException
    at java.lang.J9VMInternals.verify(J9VMInternals.java: 61)
    at java.lang.J9VMInternals.verify(J9VMInternals.java: 53)
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:124)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at org.springframework.util.ClassUtils.forName(ClassU tils.java:163)
    at org.springframework.beans.factory.support.BeanDefi nitionReaderUtils.createBeanDefinition(BeanDefinit ionReaderUtils.java:65)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionParserHelper.parseBeanDefinitionElement(XmlBe anDefinitionParserHelper.java:411)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionParserHelper.parseBeanDefinitionElement(XmlBe anDefinitionParserHelper.java:373)
    at org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser.parseDefaultElement(DefaultXmlB eanDefinitionParser.java:162)
    at org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser.parseBeanDefinitions(DefaultXml BeanDefinitionParser.java:143)
    at org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser.registerBeanDefinitions(Default XmlBeanDefinitionParser.java:87)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.registerBeanDefinitions(XmlBeanDefinit ionReader.java:509)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:353)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:302)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:277)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:129)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:145)
    at org.springframework.web.context.support.XmlWebAppl icationContext.loadBeanDefinitions(XmlWebApplicati onContext.java:126)
    at org.springframework.web.context.support.XmlWebAppl icationContext.loadBeanDefinitions(XmlWebApplicati onContext.java:94)
    at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:89)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:279)
    at org.springframework.web.context.support.AbstractRe freshableWebApplicationContext.refresh(AbstractRef reshableWebApplicationContext.java:155)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:246)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:184)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 49)
    at com.caucho.server.webapp.Application.start(Applica tion.java:1597)
    at com.caucho.server.deploy.DeployController.startImp l(DeployController.java:621)
    at com.caucho.server.deploy.DeployController.restartI mpl(DeployController.java:584)
    at com.caucho.server.deploy.StartAutoRedeployAutoStra tegy.request(StartAutoRedeployAutoStrategy.java:12 5)
    at com.caucho.server.deploy.DeployController.request( DeployController.java:554)
    at com.caucho.server.webapp.ApplicationContainer.getA pplication(ApplicationContainer.java:867)
    at com.caucho.server.webapp.ApplicationContainer.buil dInvocation(ApplicationContainer.java:707)
    at com.caucho.server.host.Host.buildInvocation(Host.j ava:424)
    at com.caucho.server.host.HostContainer.buildInvocati on(HostContainer.java:350)
    at com.caucho.server.resin.ServletServer.buildInvocat ion(ServletServer.java:616)
    at com.caucho.server.dispatch.DispatchServer.buildInv ocation(DispatchServer.java:198)
    at com.caucho.server.http.HttpRequest.handleRequest(H ttpRequest.java:263)
    at com.caucho.server.port.TcpConnection.run(TcpConnec tion.java:389)
    at com.caucho.util.ThreadPool.runTasks(ThreadPool.jav a:507)
    at com.caucho.util.ThreadPool.run(ThreadPool.java:433 )
    at java.lang.Thread.run(Thread.java:797)

    Here is the configuration I am trying to run on:

    * Mac G4 with Yellow Dog Linux 4.1
    * Latest IBM JDK 5 for PowerPC Linux
    * Caucho Resin 3.0.19

    I am using the latest development release of Spring, (2.0 m4)

    Does anyone have any ideas why this is failing on Linux PowerPC Java?

    Any help would be greatly appreciated.

    Thanks

  • #2
    The exception does not seem to be related to the Spring Framework.

    I run into a weird bug some weeks before after migrating our application from SUN JDK 1.4 on Linux to IBM JDK 5 on Linux. It turned out that when a class is being loaded, IBM JDK checks all it dependencies. This "features" broke our application since we were using a 3rd party jar that had missing classes.

    Comment


    • #3
      Thank you for your input on this.

      After a bit of additional testing, I was able to get an application to run under Tomcat.. But still no luck under Resin, which is what we normally run on. although Resin apps do seem to run as long as they don't use Spring. Even the basic app from the tutorial fails under Spring and Resin though, but works fine under Tomcat.

      Yes, it looks like the problem is in IBM's JRE. Was hoping maybe there was some kind of work around.

      Comment

      Working...
      X