-
Bug
-
Resolution: Duplicate
-
P4
-
7
-
x86
-
windows_xp
FULL PRODUCT VERSION :
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment,
1.7.0-b147
ADDITIONAL OS VERSION INFORMATION :
Windows XP
A DESCRIPTION OF THE PROBLEM :
java.lang.NoSuchMethodException in java.beans.Statement.invokeInternal
java.lang.NoSuchMethodException: <unbound>=WebServiceData.getJaxWsDescriptor();
at java.beans.Statement.invokeInternal(Statement.java:313)
at java.beans.Statement.access$000(Statement.java:58)
at java.beans.Statement$2.run(Statement.java:185)
at java.security.AccessController.doPrivileged(AccessController.java:0)
at java.beans.Statement.invoke(Statement.java:182)
at java.beans.Expression.getValue(Expression.java:153)
at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:192)
at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:253)
at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:400)
at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:118)
at org.netbeans.modules.websvc.manager.model.WebServiceDataPersistenceDelegate.writeObject(WebServiceDataPersistenceDelegate.java:70)
Please see details also in http://netbeans.org/bugzilla/show_bug.cgi?id=202501
REGRESSION. Last worked in version 6u26
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See the source code .
The code works fine with JDK6.
It throws an exception with JDK 7.
The problem occurs on bean serializing attempt via XML encoder.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
There should no be exception and object should be serialized.
ACTUAL -
An exception.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
XMLEncoder encoder = new XMLEncoder(new BufferedOutputStream(new FileOutputStream( fileName )));
WebServiceData wsData = some initialized object instance
encoder.writeObject(wsData);
See source code of WebServiceData class :
http://hg.netbeans.org/web-main/file/c5eaea25e4fc/websvc.manager/src/org/netbeans/modules/websvc/manager/model/WebServiceData.java
---------- END SOURCE ----------
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment,
1.7.0-b147
ADDITIONAL OS VERSION INFORMATION :
Windows XP
A DESCRIPTION OF THE PROBLEM :
java.lang.NoSuchMethodException in java.beans.Statement.invokeInternal
java.lang.NoSuchMethodException: <unbound>=WebServiceData.getJaxWsDescriptor();
at java.beans.Statement.invokeInternal(Statement.java:313)
at java.beans.Statement.access$000(Statement.java:58)
at java.beans.Statement$2.run(Statement.java:185)
at java.security.AccessController.doPrivileged(AccessController.java:0)
at java.beans.Statement.invoke(Statement.java:182)
at java.beans.Expression.getValue(Expression.java:153)
at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:192)
at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:253)
at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:400)
at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:118)
at org.netbeans.modules.websvc.manager.model.WebServiceDataPersistenceDelegate.writeObject(WebServiceDataPersistenceDelegate.java:70)
Please see details also in http://netbeans.org/bugzilla/show_bug.cgi?id=202501
REGRESSION. Last worked in version 6u26
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See the source code .
The code works fine with JDK6.
It throws an exception with JDK 7.
The problem occurs on bean serializing attempt via XML encoder.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
There should no be exception and object should be serialized.
ACTUAL -
An exception.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
XMLEncoder encoder = new XMLEncoder(new BufferedOutputStream(new FileOutputStream( fileName )));
WebServiceData wsData = some initialized object instance
encoder.writeObject(wsData);
See source code of WebServiceData class :
http://hg.netbeans.org/web-main/file/c5eaea25e4fc/websvc.manager/src/org/netbeans/modules/websvc/manager/model/WebServiceData.java
---------- END SOURCE ----------
- duplicates
-
JDK-7092744 XMLEncoder fails to encode and breaks backward compatibility
- Resolved