Skip to main content

StringIndexOutOfBoundsException: during verification of PU

3 replies [Last post]
ejb3user
Offline
Joined: 2005-12-14

During deployment of a persistence unit that has inheritance model is throwing the following stack trace in the verifier logs.

Any known issues ?
I am running against the GlassFish V1 build. The same persistence unit worked find in B41 build.

thanks
ejb3user

Error Name : com.sun.enterprise.tools.verifier.tests.persistence.DefaultProviderVerification
Error Description : java.lang.StringIndexOutOfBoundsException: String index out of range: 3

at java.lang.String.substring(Unknown Source)

at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataHelper.getAttributeNameFromMethodName(MetadataHelper.java:99)

at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataDescriptor.getAccessorFor(MetadataDescriptor.java:317)

at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.processMapKey(MetadataProcessor.java:1295)

at oracle.toplink.essentials.internal.ejb.cmp3.annotations.EJBAnnotationsProcessor.processMapKey(EJBAnnotationsProcessor.java:1327)

at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.populateCollectionMapping(MetadataProcessor.java:467)

at oracle.toplink.essentials.internal.ejb.cmp3.annotations.EJBAnnotationsProcessor.populateCollectionMapping(EJBAnnotationsProcessor.java:484)

at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.processOneToMany(MetadataProcessor.java:1343)

at oracle.toplink.essentials.internal.ejb.cmp3.annotations.EJBAnnotationsProcessor.processOneToMany(EJBAnnotationsProcessor.java:1487)

at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.processRelationshipAccessor(MetadataProcessor.java:1643)

at oracle.toplink.essentials.internal.ejb.cmp3.annotations.EJBAnnotationsProcessor.processRelatedEntity(EJBAnnotationsProcessor.java:1786)

at oracle.toplink.essentials.internal.ejb.cmp3.annotations.EJBAnnotationsProcessor.processORAnnotations(EJBAnnotationsProcessor.java:1543)

at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:405)

at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:156)

at com.sun.enterprise.tools.verifier.tests.persistence.DefaultProviderVerification.check(DefaultProviderVerification.java:80)

at com.sun.enterprise.tools.verifier.CheckMgr.check(CheckMgr.java:120)

at com.sun.enterprise.tools.verifier.persistence.PersistenceUnitCheckMgrImpl.check(PersistenceUnitCheckMgrImpl.java:83)

at com.sun.enterprise.tools.verifier.CheckMgr.checkPersistenceUnits(CheckMgr.java:377)

at com.sun.enterprise.tools.verifier.appclient.AppClientCheckMgrImpl.check(AppClientCheckMgrImpl.java:67)

at com.sun.enterprise.tools.verifier.BaseVerifier.verify(BaseVerifier.java:133)

at com.sun.enterprise.tools.verifier.appclient.AppClientVerifier.verify(AppClientVerifier.java:68)

at com.sun.enterprise.tools.verifier.VerificationHandler.runVerifier(VerificationHandler.java:223)

at com.sun.enterprise.tools.verifier.VerificationHandler.verifyArchive(VerificationHandler.java:142)

at com.sun.enterprise.tools.verifier.Verifier.verify(Verifier.java:179)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.sun.enterprise.tools.verifier.AppVerifier.verify(AppVerifier.java:76)

at com.sun.enterprise.deployment.backend.ModuleDeployer.runVerifier(ModuleDeployer.java:1086)

at com.sun.enterprise.deployment.backend.AppClientModuleDeployer.deploy(AppClientModuleDeployer.java:131)

at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:160)

at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)

at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)

at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)

at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)

at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739)

at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)

at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ss141213
Offline
Joined: 2005-03-30

Yes, the stack trace does resemble what is reported in https://glassfish.dev.java.net/issues/show_bug.cgi?id=557

That bug was not fixed in GlassFish v1 (a.k.a. 9.0pe). It has been fixed in GlassFish v2 (a.k.a. 9.1pe) build #01.

Sahoo

ejb3user
Offline
Joined: 2005-12-14

Sahoo,
Thanks for the tip, V2 build 01 works.

Which version & build is the official Java EE 5 production ?

thanks
ejb3user

ss141213
Offline
Joined: 2005-03-30

> Which version & build is the official Java EE 5
> production ?
Official Java EE 5 RI is made out of [b]GlassFish v1 build #48[/b] available at:
https://glassfish.dev.java.net/downloads/04May06.html

This bug was not fixed in that release. It is like to get fixed in an update release scheduled in coming months (I don't have the schedule yet).

Thanks,
Sahoo