arindam-bandyopadhyay / issue-test

0 stars 0 forks source link

ClassCastException when calling getXAResources() #32

Open arinban opened 6 years ago

arinban commented 6 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

Original Issue:https://github.com/javaee/glassfish-genericjmsra/issues/25 Raised By:@glassfishrobot Created at:Thu Jul 20 07:43:12 IST 2006 Assigned To:@glassfishrobot

arinban commented 6 years ago

@glassfishrobot Commented on Thu Jul 20 07:43:12 IST 2006 Reported by saxenaks

arinban commented 6 years ago

@glassfishrobot Commented on Thu Jul 20 07:43:12 IST 2006 Was assigned to binod

arinban commented 6 years ago

@glassfishrobot Commented on Mon Apr 24 13:02:31 IST 2017 This issue was imported from java.net JIRA GENERICJMSRA-25