Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / September 2006

Tip: Looking for answers? Try searching our database.

java.sql.SQLRuntimeException: Cannot store DataSet instance to WeakHashMap

Thread view: 
Harri Pesonen - 10 Sep 2006 13:15 GMT
I get the following error (sometimes) when I use DataSet<sometype> with
Derby 10.2.1.0 and JDK6 b98:

java.sql.SQLRuntimeException: Cannot store DataSet instance to WeakHashMap
    at com.sun.sql.QueryObject.registerDataSet(QueryObject.java:1306)
    at com.sun.sql.QueryObject.getQueryImpl(QueryObject.java:767)
    at com.sun.sql.QueryObject.access$000(QueryObject.java:26)
    at com.sun.sql.QueryObject$1.run(QueryObject.java:229)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.sql.QueryObject.invoke(QueryObject.java:224)
    at $Proxy5.system_Prefs_get(Unknown Source)
    at Kahvi.Kahvi.get_sys_pref(Kahvi.java:896)
    at Kahvi.Kahvi.get_sys_pref(Kahvi.java:892)
    at Kahvi.Kahvi.cache_filename(Kahvi.java:2627)
    at Kahvi.Kahvi.servletThumb(Kahvi.java:326)
    at Kahvi.thumb.processKahvi(thumb.java:23)
    at Kahvi.KahviServlet.processRequest(KahviServlet.java:66)
    at Kahvi.KahviServlet.doGet(KahviServlet.java:88)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
    at com.sun.sql.DataSetImpl$DataSetItr.<init>(DataSetImpl.java:1759)
    at
com.sun.sql.DataSetImpl$DataSetListIterator.<init>(DataSetImpl.java:1846)
    at com.sun.sql.DataSetImpl.listIterator(DataSetImpl.java:1628)
    at java.util.AbstractList.equals(AbstractList.java:503)
    at java.util.WeakHashMap.eq(WeakHashMap.java:259)
    at java.util.WeakHashMap.put(WeakHashMap.java:406)
    at com.sun.sql.QueryObject.registerDataSet(QueryObject.java:1304)
    ... 32 more
Dyreatnews@sun.com - 11 Sep 2006 09:17 GMT
I'm cc'ing this reply to derby-user@db.apache.org, since not many
derby people follow this newsgroup.

> I get the following error (sometimes) when I use DataSet<sometype>
> with Derby 10.2.1.0 and JDK6 b98:
[quoted text clipped - 59 lines]
>     at com.sun.sql.QueryObject.registerDataSet(QueryObject.java:1304)
>     ... 32 more

Signature

dt

However, experience shows that for many people and many applications a
dose of paranoia is reasonable - Bjarne Stroustrup

Harri Pesonen - 11 Sep 2006 10:54 GMT
Thanks for doing that. Is there a way to access those mailing lists as
newsgroups? I hate reading those with Thunderbird because attachments
are so buggy.

> I'm cc'ing this reply to derby-user@db.apache.org, since not many
> derby people follow this newsgroup.
[quoted text clipped - 62 lines]
>>     at com.sun.sql.QueryObject.registerDataSet(QueryObject.java:1304)
>>     ... 32 more
Dyreatnews@sun.com - 14 Sep 2006 11:30 GMT
> Thanks for doing that. Is there a way to access those mailing lists as
> newsgroups? I hate reading those with Thunderbird because attachments
> are so buggy.

Not as newsgroups, I think, but you can access them through mod_mbox
and gmane, see

http://db.apache.org/derby/derby_mail.html

Signature

dt

Dyreatnews@sun.com - 15 Sep 2006 09:48 GMT
>>> I get the following error (sometimes) when I use DataSet<sometype>
>>> with Derby 10.2.1.0 and JDK6 b98:

I forgot to mention that what you're seeing is a bug in JDK6 b98 (not Derby). I
think it is being worked on, but I don't know which build it will be
fixed in, or when that build will be available for download :(

>>> java.sql.SQLRuntimeException: Cannot store DataSet instance to WeakHashMap
>>>     at com.sun.sql.QueryObject.registerDataSet(QueryObject.java:1306)
[quoted text clipped - 3 lines]
>>>     at java.security.AccessController.doPrivileged(Native Method)
>>>     at com.sun.sql.QueryObject.invoke(QueryObject.java:224)

...

Signature

dt



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.