Deployment on Glassfish 3.1.2 Fails with JRebel 7.0.8 on a Mac 10.11.6

ZeroTurnaround Homepage Forums JRebel Support Deployment on Glassfish 3.1.2 Fails with JRebel 7.0.8 on a Mac 10.11.6

This topic contains 2 replies, has 3 voices, and was last updated by  Valerie Avramenko 4 weeks, 1 day ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #64031

    awaloszek
    Member

    I tried to update from version 6.3.3 to 7.0.8 of JRebel used in a Glassfish 3.1.2 application server. I removed the old -javaagent property and added the -agentpath. I am using a Mac OS 10.11.6. When I try to deploy the application after JRebel was updated the deployment always fails with the following Exception and I have no idea how to fix this. I also tried a Payara server and it fails with the same error.

    
    [#|2017-05-11T11:52:51.935+0000|SEVERE|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/.../target/classes_MpJPA485289313.ejb|_ThreadID=1;_ThreadName=Thread-20;|java.lang.ArrayIndexOutOfBoundsException: -1
    	at java.util.JumboEnumSet.addAll(JumboEnumSet.java:73)
    	at java.util.EnumSet.allOf(EnumSet.java:128)
    	at org.eclipse.persistence.mappings.converters.EnumTypeConverter.initializeConversions(EnumTypeConverter.java:78)
    	at org.eclipse.persistence.mappings.converters.EnumTypeConverter.convertClassNamesToClasses(EnumTypeConverter.java:132)
    	at org.eclipse.persistence.mappings.DatabaseMapping.convertConverterClassNamesToClasses(DatabaseMapping.java:453)
    	at org.eclipse.persistence.mappings.foundation.AbstractColumnMapping.convertClassNamesToClasses(AbstractColumnMapping.java:137)
    	at org.eclipse.persistence.mappings.foundation.AbstractDirectMapping.convertClassNamesToClasses(AbstractDirectMapping.java:457)
    	at org.eclipse.persistence.descriptors.ClassDescriptor.convertClassNamesToClasses(ClassDescriptor.java:1656)
    	at org.eclipse.persistence.sessions.Project.convertClassNamesToClasses(Project.java:514)
    	at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:600)
    	at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getAbstractSession(EntityManagerFactoryDelegate.java:204)
    	at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:304)
    	at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:336)
    	at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:302)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	at sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    	at java.lang.reflect.Method.invoke(Method.java:606)
    	at org.zeroturnaround.jrebel.integration.eclipselink.EntityManagerFactoryMethodHandler.invokeInternal(EntityManagerFactoryMethodHandler.java:141)
    	at org.zeroturnaround.jrebel.integration.eclipselink.EntityManagerFactoryMethodHandler.invokeCreateEntityManager(EntityManagerFactoryMethodHandler.java:113)
    	at org.zeroturnaround.jrebel.integration.eclipselink.EntityManagerFactoryMethodHandler.invoke(EntityManagerFactoryMethodHandler.java:87)
    	at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl_$$_jvstfdd_0.createEntityManager(EntityManagerFactoryImpl_$$_jvstfdd_0.java)
    	at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:211)
    	at org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:120)
    	at org.glassfish.persistence.jpa.JPADeployer$1.visitPUD(JPADeployer.java:224)
    	at org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:495)
    	at org.glassfish.persistence.jpa.JPADeployer.createEMFs(JPADeployer.java:233)
    	at org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:168)
    	at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:871)
    	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:410)
    	at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375)
    	at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:219)
    	at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
    	at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
    	at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
    	at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
    	at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
    	at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:78)
    	at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:253)
    	at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145)
    	at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136)
    	at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
    	at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:63)
    	at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishImpl.start(OSGiGlassFishImpl.java:69)
    	at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	at sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    	at java.lang.reflect.Method.invoke(Method.java:606)
    	at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
    	at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
    |#]
    
    [#|2017-05-11T11:52:51.937+0000|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=Thread-20;|Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method|#]
    
    [#|2017-05-11T11:52:51.938+0000|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=Thread-20;|Exception while preparing the app|#]
    
    [#|2017-05-11T11:52:51.938+0000|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=Thread-20;|Exception [EclipseLink-28019] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: Deployment of PersistenceUnit [MpJPA] failed. Close all factories for this PersistenceUnit.
    Internal Exception: java.lang.ArrayIndexOutOfBoundsException: -1
    javax.persistence.PersistenceException: Exception [EclipseLink-28019] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: Deployment of PersistenceUnit [MpJPA] failed. Close all factories for this PersistenceUnit.
    Internal Exception: java.lang.ArrayIndexOutOfBoundsException: -1
    	at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.createDeployFailedPersistenceException(EntityManagerSetupImpl.java:820)
    	at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:760)
    	at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getAbstractSession(EntityManagerFactoryDelegate.java:204)
    	at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:304)
    	at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:336)
    	at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:302)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	at sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    	at java.lang.reflect.Method.invoke(Method.java:606)
    	at org.zeroturnaround.jrebel.integration.eclipselink.EntityManagerFactoryMethodHandler.invokeInternal(EntityManagerFactoryMethodHandler.java:141)
    	at org.zeroturnaround.jrebel.integration.eclipselink.EntityManagerFactoryMethodHandler.invokeCreateEntityManager(EntityManagerFactoryMethodHandler.java:113)
    	at org.zeroturnaround.jrebel.integration.eclipselink.EntityManagerFactoryMethodHandler.invoke(EntityManagerFactoryMethodHandler.java:87)
    	at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl_$$_jvstfdd_0.createEntityManager(EntityManagerFactoryImpl_$$_jvstfdd_0.java)
    	at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:211)
    	at org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:120)
    	at org.glassfish.persistence.jpa.JPADeployer$1.visitPUD(JPADeployer.java:224)
    	at org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:495)
    	at org.glassfish.persistence.jpa.JPADeployer.createEMFs(JPADeployer.java:233)
    	at org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:168)
    	at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:871)
    	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:410)
    	at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375)
    	at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:219)
    	at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
    	at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
    	at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
    	at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
    	at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
    	at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:78)
    	at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:253)
    	at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145)
    	at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136)
    	at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
    	at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:63)
    	at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishImpl.start(OSGiGlassFishImpl.java:69)
    	at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	at sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    	at java.lang.reflect.Method.invoke(Method.java:606)
    	at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
    	at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
    Caused by: Exception [EclipseLink-28019] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: Deployment of PersistenceUnit [MpJPA] failed. Close all factories for this PersistenceUnit.
    Internal Exception: java.lang.ArrayIndexOutOfBoundsException: -1
    	at org.eclipse.persistence.exceptions.EntityManagerSetupException.deployFailed(EntityManagerSetupException.java:238)
    	... 47 more
    Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
    	at java.util.JumboEnumSet.addAll(JumboEnumSet.java:73)
    	at java.util.EnumSet.allOf(EnumSet.java:128)
    	at org.eclipse.persistence.mappings.converters.EnumTypeConverter.initializeConversions(EnumTypeConverter.java:78)
    	at org.eclipse.persistence.mappings.converters.EnumTypeConverter.convertClassNamesToClasses(EnumTypeConverter.java:132)
    	at org.eclipse.persistence.mappings.DatabaseMapping.convertConverterClassNamesToClasses(DatabaseMapping.java:453)
    	at org.eclipse.persistence.mappings.foundation.AbstractColumnMapping.convertClassNamesToClasses(AbstractColumnMapping.java:137)
    	at org.eclipse.persistence.mappings.foundation.AbstractDirectMapping.convertClassNamesToClasses(AbstractDirectMapping.java:457)
    	at org.eclipse.persistence.descriptors.ClassDescriptor.convertClassNamesToClasses(ClassDescriptor.java:1656)
    	at org.eclipse.persistence.sessions.Project.convertClassNamesToClasses(Project.java:514)
    	at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:600)
    	... 45 more
    |#]
    
    [#|2017-05-11T11:52:58.008+0000|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=Thread-20;|Exception while preparing the app|#]
    
    #66255

    jasonchan
    Member

    We are having the same problem after upgrading from JRebel 7.0.1 to JRebel 7.1.0 on Mac 10.12.6. OpenJDK version 1.8.0_131.

    #66281

    Valerie Avramenko
    Rebel Staff

    Hello Jason!

    Could you please send your current error stack trace and TRACE level jrebel.log file to support@zeroturnaround.com with the link to this forum topic? To generate it just add -Drebel.log=trace to your VM arguments, restart your server and reproduce the issue.

    That should show us what went wrong with JRebel interaction.

    Kind regards,
    Valerie

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.