This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 151549 - Creating A JMS WSDL in OpenSolaris causes ClassCastException
Summary: Creating A JMS WSDL in OpenSolaris causes ClassCastException
Status: RESOLVED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: JMS BC (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jonelle Almero
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-28 03:07 UTC by Jonelle Almero
Modified: 2008-10-29 02:21 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
This will generate the following exception (excerpt from Michael Czapski) (375.94 KB, text/plain)
2008-10-28 03:08 UTC, Jonelle Almero
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonelle Almero 2008-10-28 03:07:05 UTC
Create a new WSDL following the steps:

1. Create Concrete WSDL
2. Select JMS Binding
3. Select Receive Type
4. Click 'Next' to go to the 'Request Connnection Configuration' step
5. Click 'Next' again to go to the 'Request consumer Configuration' step

This will generate a ClassCastException.  See attached image.
Comment 1 Jonelle Almero 2008-10-28 03:08:38 UTC
Created attachment 72730 [details]
This will generate the following exception (excerpt from Michael Czapski)
Comment 2 Jonelle Almero 2008-10-28 03:12:55 UTC
The JSpinner model is of type 'Long' and the value being set to it is of type 'Integer'.  Apparently, this assignment
works on windows but fails on OpenSolaris with a ClassCastException where an Integer cannot be cast to a Long.  

Need to change JSpinner model to be of type 'Integer' to match the wsdl model type for the batch size parameter.
Comment 3 Jonelle Almero 2008-10-28 03:53:20 UTC
Checked in possible fix to soa-dev branch: http://beryl.russia.sun.com:8080/hudson/job/sierra/
Comment 4 Jonelle Almero 2008-10-29 02:21:04 UTC
Installed latest bits on an OpenSolaris platform and I was not able to replicate even before the fixes unfortunately. 

But based on the exception trace, modified the JSpinner to set its model to type 'Integer' to match the value from the
wsdl model.

Please try with the latest soarelease bits: http://beryl.russia.sun.com:8080/hudson/job/soarelease/