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 130456 - NPE at MetaDataDeserializer.deserialize with 2nd instance app
Summary: NPE at MetaDataDeserializer.deserialize with 2nd instance app
Status: RESOLVED DUPLICATE of bug 130411
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: John Baker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-18 20:15 UTC by _ krystyna
Modified: 2008-03-18 22:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stacktrace (13.17 KB, text/plain)
2008-03-18 20:19 UTC, _ krystyna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ krystyna 2008-03-18 20:15:18 UTC
NetBeans IDE Dev (Build 20080318153821)
Java: 1.6.0_04; 
WinXP


To duplicate:

1. Clean userdir, create first instance of sample application Travel Center. Connect databases dialog comes 
   up and designer renders fine

2. Create another instance of the Travel Center sample app, get Red Component Error, press continue, 
   designtime is broken, see the following in the log. Runtime however is OK.


(partial stacktrace below; full attached)

java.lang.NullPointerException
        at com.sun.data.provider.impl.MetaDataDeserializer.deserialize(MetaDataDeserializer.java:78)
        at com.sun.data.provider.impl.CachedRowSetDataProvider.getMetaData(CachedRowSetDataProvider.java:1478)
        at com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKeys(CachedRowSetDataProvider.java:563)
        at com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKeyInternal(CachedRowSetDataProvider.java:541)
        at com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKey(CachedRowSetDataProvider.java:513)
        at com.sun.data.provider.impl.TableRowDataProvider.getFieldKey(TableRowDataProvider.java:148)
        at com.sun.webui.jsf.faces.DataProviderELResolver$ValueData.getValue(DataProviderELResolver.java:402)
Caused: javax.el.PropertyNotFoundException
        at com.sun.webui.jsf.faces.DataProviderELResolver$ValueData.getValue(DataProviderELResolver.java:416)
        at com.sun.webui.jsf.faces.DataProviderELResolver.getValue(DataProviderELResolver.java:161)
        at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
        at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
        at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
        at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)
        at com.sun.faces.application.ValueBindingValueExpressionAdapter.getValue
(ValueBindingValueExpressionAdapter.java:102)
Caused: javax.faces.el.PropertyNotFoundException
        at com.sun.faces.application.ValueBindingValueExpressionAdapter.getValue
(ValueBindingValueExpressionAdapter.java:104)
        at javax.faces.component.ValueExpressionValueBindingAdapter.getValue(ValueExpressionValueBindingAdapter.java:73)
Caused: javax.el.ELException
        at javax.faces.component.ValueExpressionValueBindingAdapter.getValue(ValueExpressionValueBindingAdapter.java:76)
        at javax.faces.component.UICommand.getValue(UICommand.java:233)
Caused: javax.faces.FacesException
        at javax.faces.component.UICommand.getValue(UICommand.java:236)
        at com.sun.webui.jsf.component.Button.getValue(Button.java:148)
        at com.sun.webui.jsf.renderkit.html.ActionSourceDesignTimeRenderer.encodeBegin
(ActionSourceDesignTimeRenderer.java:72)
        at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:788)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:884)
        at com.sun.webui.jsf.util.RenderingUtilities.renderComponent(RenderingUtilities.java:73)
        at com.sun.webui.jsf.renderkit.html.TableColumnRenderer.encodeChildren(TableColumnRenderer.java:189)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
        at com.sun.webui.jsf.util.RenderingUtilities.renderComponent(RenderingUtilities.java:73)
        at com.sun.webui.jsf.renderkit.html.TableRowGroupRenderer.encodeChildren(TableRowGroupRenderer.java:200)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
        at com.sun.webui.jsf.util.RenderingUtilities.renderComponent(RenderingUtilities.java:73)
        at com.sun.webui.jsf.renderkit.html.TableRenderer.encodeChildren(TableRenderer.java:172)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:271)
        at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
java.io.FileNotFoundException: C:\bucket\march181058
\config\Databases\CachedMetadata\TRAVEL_ApacheDerby__traveltriptripid
traveltrippersonid
traveltripdepdate
traveltripdepcity
traveltripdestcity
traveltriptriptypeid
traveltriplastupdated
traveltriptypename
fromtraveltrip
innerjointraveltriptypeontravelt.ser (The filename, directory name, or volume label syntax is incorrect)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at com.sun.data.provider.impl.MetaDataDeserializer.deserialize(MetaDataDeserializer.java:69)
        at com.sun.data.provider.impl.CachedRowSetDataProvider.getMetaData(CachedRowSetDataProvider.java:1478)
        at com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKeys(CachedRowSetDataProvider.java:563)
        at com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKeyInternal(CachedRowSetDataProvider.java:541)
        at com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKey(CachedRowSetDataProvider.java:513)
        at com.sun.data.provider.impl.TableRowDataProvider.getFieldKey(TableRowDataProvider.java:148)
        at com.sun.webui.jsf.faces.DataProviderELResolver$ValueData.getValue(DataProviderELResolver.java:402)
        at com.sun.webui.jsf.faces.DataProviderELResolver.getValue(DataProviderELResolver.java:161)
        at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
        at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
        at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
Comment 1 _ krystyna 2008-03-18 20:19:21 UTC
Created attachment 58622 [details]
stacktrace
Comment 2 Winston Prakash 2008-03-18 22:06:55 UTC
Just to add little more info ..

When the travel center was first time created, the metadata is obtained from database directly and serialized for later
use. When the travel center is created for the second time, previously serialized metadata is used. Looks like something
got broken in the "deserialize" code. 
Comment 3 Winston Prakash 2008-03-18 22:09:17 UTC
I don't know if the following change set has fixed this

changeset 26e17f8f4ab5 in main
details: http://hg.netbeans.org/main?cmd=changeset;node=26e17f8f4ab5
description:
	#130411 NullPointerException at com.sun.data.provider.impl.MetaDataDeserializer.deserialize

This bug may be a duplicate of #130411
Comment 4 John Baker 2008-03-18 22:20:56 UTC
same as 130411 

*** This issue has been marked as a duplicate of 130411 ***