ari-ban / test2

0 stars 0 forks source link

ClassCastException when calling getXAResources() #25

Closed arinban closed 6 years ago

arinban commented 18 years ago

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]

arinban commented 6 years ago
arinban commented 6 years ago

@arinban Commented

arinban commented 6 years ago

@arinban Commented @arinban Commented

arinban commented 18 years ago

@arinban Commented @arinban Commented @glassfishrobot Commented Reported by saxenaks

arinban commented 18 years ago

@arinban Commented @arinban Commented @glassfishrobot Commented Was assigned to binod

arinban commented 7 years ago

@arinban Commented @arinban Commented @glassfishrobot Commented This issue was imported from java.net JIRA GENERICJMSRA-25

arinban commented 6 years ago

Closing this as this issue is migrated to https://github.com/ari-ban/test1/issues/25