JDK-6952625 : Seeing "java.lang.NoSuchMethodError: resetGC" stack trace error when testing JDK7 binary on Solaris
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: solaris_10
  • CPU: other
  • Submitted: 2010-05-14
  • Updated: 2012-04-16
  • Resolved: 2010-10-28
Related Reports
Relates :  
Description
Testing JDK7 build on Solaris [1], seeing this stack trace below in Tomcat's log file when trying to create content handler for "image/gif" mime type on solaris with jdk7 build:

 java.lang.NoSuchMethodError: resetGC
	at java.awt.Component.initIDs(Native Method)
	at java.awt.Component.<clinit>(Component.java:591)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:531)
	at java.lang.Class.newInstance0(Class.java:372)
	at java.lang.Class.newInstance(Class.java:325)
	at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:596)
	at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:550)
	at javax.activation.CommandMap.createDataContentHandler(CommandMap.java:206)
	at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:609)
	at javax.activation.DataHandler.getContent(DataHandler.java:537)
	at com.sun.xml.internal.messaging.saaj.soap.AttachmentPartImpl.getContent(AttachmentPartImpl.java:196)
	at test.saaj.sync.multiattach11.ReceivingServlet.onMessage(ReceivingServlet.java:231)

Problem maybe platform specific, since it was not seen on Windows in awt package.  Other platforms JDK7 binaries are located at [2].

[1]http://javaweb.sfbay.sun.com/~rp146011/jdk/jdk7-jaxws22-jprt/solaris_sparc_5.10-product.zip
[2]http://javaweb.sfbay.sun.com/~rp146011/jdk/jdk7-jaxws22-jprt/

Comments
EVALUATION Component.resetGC() method was removed as a part of the fix for 6804747. However, in the same fix, resetGC native method initialization was removed from Component.initIDs(), so I don't see how the exception could be thrown (other than because of some problems with the workspace, when some source files correspond to a different hg revision than the rest of the repository).
24-05-2010

EVALUATION I tried to reproduce the problem with desktop applications on solaris-sparc platform. The problem has not been reproduced. Is the web application publicly available? I would try to reproduce the problem with Tomcat.
24-05-2010

EVALUATION See original description for JDK7 build used when seeing this problem. i.e. http://javaweb.sfbay.sun.com/~rp146011/jdk/jdk7-jaxws22-jprt/solaris_sparc_5.10-product.zip This is an internal Pre Integration build of JDK7, with JAXWS 2.2, and I believe JAXB2.2, integrated into it.
14-05-2010

EVALUATION The error is really weird: I've just grepped the whole JDK7 workspace for 'resetGC' string and found 2 places in Windows code only. What JDK7 build the problem is observed with?
14-05-2010