eclipse-ee4j / eclipse-ee4j/genericmessagingra
ClassCastException when calling getXAResources()
- Dominant language
- Java
- Stars
- 2
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Genericjmsra throws following exception when getXAResources() is called
java.lang.ClassCastException: [Ljava.lang.Object;
at com.sun.genericra.GenericJMSRA.getXAResources(GenericJMSRA.java:137)
at
com.sun.enterprise.resource.ResourceInstaller.recoverInboundTransactions(ResourceInstaller.java:789)
at
com.sun.enterprise.resource.ResourceInstaller.recoverXAResources(ResourceInstaller.java:284)
at
com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:191)
at
com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
Following change is needed in GenericJMSRA.java
137c137
< return (XAResource[])xars.toArray();
—
> return (XAResource[])xars.toArray(new XAResource[0]);
#### Environment
Operating System: All
Platform: All
#### Affected Versions
[v1.5]
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.