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 211331 - Problem when deserializing TopComponent for tcID:'LogsTopComponent'
Summary: Problem when deserializing TopComponent for tcID:'LogsTopComponent'
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
: 219708 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-17 12:55 UTC by Jiri Skrivanek
Modified: 2012-10-15 08:50 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Message and stack trace (7.89 KB, text/plain)
2012-04-17 12:55 UTC, Jiri Skrivanek
Details
IDE log. (46.47 KB, text/plain)
2012-10-09 07:48 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-04-17 12:55:25 UTC
Created attachment 118404 [details]
Message and stack trace

Message is printed to IDE log "Problem when deserializing TopComponent for tcID:'LogsTopComponent'". To reproduce:

- start IDE with empty userdir
- go to services tab
- right-click Srvers tab and choose Add Server
- select JBoss and click Next
- message in attachment is printed to the IDE log while Java EE feature is being enabled

Product Version: NetBeans IDE Dev (Build 201204160400)
Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 David Konecny 2012-04-23 22:23:24 UTC
Two things which puzzle me:

* exception is result of deserialization of Windows2Local/Components/LogsTopComponent.settings *BUT* you are saying you've started with empty usedir?

* org.netbeans.modules.cloud.oracle.ui.LogsComponent (cloud.oracle module) is annotated with "@TopComponent.Description(preferredID = "LogsTopComponent", persistenceType = TopComponent.PERSISTENCE_NEVER)" and therefore should have never been persistence in first place, no?

Could somebody from window system comment on my second point please?
Comment 2 Stanislav Aubrecht 2012-04-24 09:32:26 UTC
(In reply to comment #1)
> Two things which puzzle me:
> 
> * exception is result of deserialization of
> Windows2Local/Components/LogsTopComponent.settings *BUT* you are saying you've
> started with empty usedir?
On the first IDE startup the whole content of Windows2 folder from XML layers is copied to Windows2Local folder in user dir.

> 
> * org.netbeans.modules.cloud.oracle.ui.LogsComponent (cloud.oracle module) is
> annotated with "@TopComponent.Description(preferredID = "LogsTopComponent",
> persistenceType = TopComponent.PERSISTENCE_NEVER)" and therefore should have
> never been persistence in first place, no?
> 
> Could somebody from window system comment on my second point please?

Non-persistent TCs should not have any .settings file in XML layer, fixed in core-main 319cceb6990d
Comment 3 Quality Engineering 2012-04-26 10:37:00 UTC
Integrated into 'main-golden', will be available in build *201204260400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/319cceb6990d
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #211331 - don't generate .settings file for non-persistent TCs
Comment 4 Stanislav Aubrecht 2012-07-27 19:36:28 UTC
I had to revert this fix as it caused #216037

The fix for this issue is either to provide non-args ctor to LogsComponent or don't use annotations. It isn't need in this case anyway.
Comment 5 Quality Engineering 2012-09-01 11:09:50 UTC
Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/eea17d04340e
User: S. Aubrecht <saubrecht@netbeans.org>
Log: reverting fix for #211331
(transplanted from f6df55211b110a33758af44199e2f008704ece46)
Comment 6 Stanislav Aubrecht 2012-09-11 09:49:30 UTC
I don't see that exception any more in 

Product Version: NetBeans IDE Dev (Build 20120910-e98acef88a82)
Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 7 David Konecny 2012-10-08 21:10:30 UTC
*** Bug 219708 has been marked as a duplicate of this bug. ***
Comment 8 Jiri Skrivanek 2012-10-09 07:48:07 UTC
Still reproducible in build NetBeans IDE 7.2.1 (Build 201210021948) (#da49d69f3c5b).
Comment 9 Jiri Skrivanek 2012-10-09 07:48:31 UTC
Created attachment 125618 [details]
IDE log.
Comment 10 Jan Pirek 2012-10-10 07:54:53 UTC
This was reproduced while testing Cloud support with NB 7.2.1 ... so it might not be fixed in release72 branch ... 

Standa, 
could you  please doubleckeck ? Thanks in advance.
Comment 11 Stanislav Aubrecht 2012-10-10 10:13:12 UTC
core-main cb162e96a45f


The error message in the log is totally harmless and safe to ignore...
Comment 12 Quality Engineering 2012-10-12 02:05:46 UTC
Integrated into 'main-golden', will be available in build *201210120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/cb162e96a45f
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #211331 - don't register TC in XML layers