On 12/12/13, 3:31 PM, Jack Wang wrote:
Hello Scott,

This is Jack from Veeva system. We are licensed Resin application server user. I've posted this to the resin-interest mailing group a couple of days ago. The post is not approved yet, so I'm thinking of contacting you directly to see if I can get any help on the issue.

Hi Jack,

Since Resin 3.1.x is frozen, you should be working with Resin 4.0.x. The issue looks like an issue with class file changes since 1.5 (I'm not sure that the skip changes would affect that.)

If you're working with Resin 3.1, you may need to ignore the warning. It won't affect the actual operation of Resin.

-- Scott


We are developing an application using Resin-pro-3.1.12 server, the application starts to generate the following exception at server start after we begin to use hibernate/JPA and webbean in the application by adding the persistence.xml and web-beans.xml

The issue only happens when using Resin-pro-3.1.11 and 3.1.12. The application works fine in Resin-pro-3.1.10.

After digging and comparing the differences between resin-pro-3.1.10 and resin-pro-3.1.11, I narrowed down the cause of the issue to be the following two extra lines added to the skip method in ReadStream.java in resin-util.jar since version 3.1.11:

    if (n <= 0)
      return n;

Here is an sample exception caused by the above changes and it is happenning to almost every class and the constant pool type value in those exceptions are '0' and some negative values:

[2013-12-08 11:41:36.346] main failed scanning class /projects/proj1/path1/projname/target/projname/WEB-INF/classes/com/companyname/projname/module1/ClassModule$1.class [2013-12-08 11:41:36.346] main java.lang.IllegalStateException: /projects/proj1/path1/projname/target/projname/WEB-INF/classes/com/companyname/projname/module1/ClassModule$1.class: '0' is an unknown constant pool type. [2013-12-08 11:41:36.346] main java.lang.IllegalStateException: /projects/proj1/path1/projname/target/projname/WEB-INF/classes/com/companyname/projname/module1/ClassModule$1.class: '0' is an unknown constant pool type. [2013-12-08 11:41:36.346] main at com.caucho.bytecode.ByteCodeClassScanner.error(ByteCodeClassScanner.java:274) [2013-12-08 11:41:36.346] main at com.caucho.bytecode.ByteCodeClassScanner.parseConstantPool(ByteCodeClassScanner.java:175) [2013-12-08 11:41:36.346] main at com.caucho.bytecode.ByteCodeClassScanner.scan(ByteCodeClassScanner.java:78) [2013-12-08 11:41:36.346] main at com.caucho.loader.enhancer.ScanManager.scanForClasses(ScanManager.java:118) [2013-12-08 11:41:36.346] main at com.caucho.loader.enhancer.ScanManager.scanForClasses(ScanManager.java:102) [2013-12-08 11:41:36.346] main at com.caucho.loader.enhancer.ScanManager.scanForClasses(ScanManager.java:102) [2013-12-08 11:41:36.346] main at com.caucho.loader.enhancer.ScanManager.scanForClasses(ScanManager.java:102) [2013-12-08 11:41:36.346] main at com.caucho.loader.enhancer.ScanManager.scanForClasses(ScanManager.java:102) [2013-12-08 11:41:36.346] main at com.caucho.loader.enhancer.ScanManager.scanForClasses(ScanManager.java:102) [2013-12-08 11:41:36.346] main at com.caucho.loader.enhancer.ScanManager.scan(ScanManager.java:91) [2013-12-08 11:41:36.346] main at com.caucho.loader.enhancer.ScanManager.scan(ScanManager.java:62) [2013-12-08 11:41:36.346] main at com.caucho.loader.EnvironmentClassLoader.addScanListener(EnvironmentClassLoader.java:504) [2013-12-08 11:41:36.346] main at com.caucho.amber.manager.AmberContainer.<init>(AmberContainer.java:160) [2013-12-08 11:41:36.346] main at com.caucho.amber.manager.AmberContainer.create(AmberContainer.java:191) [2013-12-08 11:41:36.346] main at com.caucho.amber.manager.AmberContainer.create(AmberContainer.java:179) [2013-12-08 11:41:36.346] main at com.caucho.ejb.manager.EjbContainer.start(EjbContainer.java:473) [2013-12-08 11:41:36.346] main at com.caucho.ejb.manager.EjbContainer.environmentStart(EjbContainer.java:548) [2013-12-08 11:41:36.346] main at com.caucho.loader.EnvironmentClassLoader.start(EnvironmentClassLoader.java:588) [2013-12-08 11:41:36.346] main at com.caucho.server.webapp.WebApp.start(WebApp.java:1837) [2013-12-08 11:41:36.346] main at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667) [2013-12-08 11:41:36.346] main at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72) [2013-12-08 11:41:36.346] main at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549) [2013-12-08 11:41:36.346] main at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160) [2013-12-08 11:41:36.346] main at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:659) [2013-12-08 11:41:36.346] main at com.caucho.server.host.Host.start(Host.java:450) [2013-12-08 11:41:36.346] main at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667) [2013-12-08 11:41:36.346] main at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72) [2013-12-08 11:41:36.346] main at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549) [2013-12-08 11:41:36.346] main at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160) [2013-12-08 11:41:36.346] main at com.caucho.server.host.HostContainer.start(HostContainer.java:484) [2013-12-08 11:41:36.346] main at com.caucho.server.cluster.Server.start(Server.java:1319) [2013-12-08 11:41:36.346] main at com.caucho.server.cluster.Cluster.startServer(Cluster.java:710) [2013-12-08 11:41:36.346] main at com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:542) [2013-12-08 11:41:36.346] main at com.caucho.server.resin.Resin.start(Resin.java:703) [2013-12-08 11:41:36.346] main at com.caucho.server.resin.Resin.initMain(Resin.java:1162) [2013-12-08 11:41:36.346] main at com.caucho.server.resin.Resin.main(Resin.java:1365)

Also here is the content of the persistence.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"; version="1.0">
  <persistence-unit name="mydata" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<non-jta-data-source>java:comp/env/jdbc/mcdb</non-jta-data-source>
<class>com.projectname.packagename.EntityClassName</class>
<exclude-unlisted-classes/>
    <properties>
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.ResinTransactionManagerLookup"/> <property name="hibernate.transaction.factory_class" value="org.hibernate.transaction.JTATransactionFactory"/> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
<property name="hibernate.c3p0.min_size" value="5" />
<property name="hibernate.c3p0.max_size" value="20" />
<property name="hibernate.c3p0.timeout" value="1800" />
<property name="hibernate.c3p0.max_statements" value="50" />
<property name="hibernate.cache.region.factory_class" value="net.sf.ehcache.hibernate.SingletonEhCacheRegionFactory"/> <property name="hibernate.cache.use_second_level_cache" value="true"/> <property name="net.sf.ehcache.configurationResourceName" value="/ehcache.xml" />
    </properties>
  </persistence-unit>
</persistence>

Please let me know if there is any more information needed and it's highly appreciated if there is any suggestion to solve the issue.

Thanks,
Jack

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to