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 231154 - Exception if we turn On Internationalization and open the related file and not re-generate this file after turning it off and delete it
Summary: Exception if we turn On Internationalization and open the related file and no...
Status: RESOLVED DUPLICATE of bug 231619
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.4
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-12 14:34 UTC by djamdev
Modified: 2013-06-25 13:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
attch 01 (40.98 KB, image/png)
2013-06-20 08:16 UTC, djamdev
Details
attch 02 (75.71 KB, image/png)
2013-06-20 08:19 UTC, djamdev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description djamdev 2013-06-12 14:34:15 UTC
Exception if we open the internationalization file (after we turn On Internationalization of Jframe for the first time) and not re-generate the file after turning it off and delete it.

Stack Trace:
java.lang.NullPointerException
	at org.openide.util.lookup.ProxyLookup$R.lookupChange(ProxyLookup.java:461)
	at org.openide.util.lookup.ProxyLookup.setData(ProxyLookup.java:314)
	at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:153)
	at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:126)
	at org.netbeans.core.multiview.MultiViewTopComponentLookup$MyProxyLookup.setElementLookup(MultiViewTopComponentLookup.java:208)
	at org.netbeans.core.multiview.MultiViewTopComponentLookup.setElementLookup(MultiViewTopComponentLookup.java:71)
	at org.netbeans.core.multiview.MultiViewPeer.assignLookup(MultiViewPeer.java:242)
	at org.netbeans.core.multiview.MultiViewPeer.assignLookup(MultiViewPeer.java:254)
	at org.netbeans.core.multiview.MultiViewCloneableTopComponent.getLookup(MultiViewCloneableTopComponent.java:118)
	at org.netbeans.modules.localhistory.LocalHistory$OpenedFilesListener.getFiles(LocalHistory.java:538)
	at org.netbeans.modules.localhistory.LocalHistory$OpenedFilesListener.access$200(LocalHistory.java:454)
	at org.netbeans.modules.localhistory.LocalHistory$OpenedFilesListener$1.run(LocalHistory.java:465)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
	at org.openide.util.RequestProcessor.post(RequestProcessor.java:424)
	at org.netbeans.modules.localhistory.LocalHistory$OpenedFilesListener.propertyChange(LocalHistory.java:458)
	at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
	at org.netbeans.core.windows.RegistryImpl.doFirePropertyChange(RegistryImpl.java:329)
	at org.netbeans.core.windows.RegistryImpl.topComponentOpened(RegistryImpl.java:187)
	at org.netbeans.core.windows.WindowManagerImpl.notifyRegistryTopComponentOpened(WindowManagerImpl.java:1178)
	at org.netbeans.core.windows.WindowManagerImpl.notifyTopComponentOpened(WindowManagerImpl.java:1146)
	at org.netbeans.core.windows.Central.addModeOpenedTopComponent(Central.java:798)
	at org.netbeans.core.windows.ModeImpl.addOpenedTopComponent(ModeImpl.java:354)
	at org.netbeans.core.windows.WindowManagerImpl.topComponentOpenAtTabPosition(WindowManagerImpl.java:1256)
	at org.netbeans.core.windows.WindowManagerImpl.topComponentOpen(WindowManagerImpl.java:1221)
	at org.openide.windows.TopComponent.open(TopComponent.java:497)
	at org.openide.windows.TopComponent.open(TopComponent.java:477)
	at org.openide.windows.CloneableOpenSupport.openCloneableTopComponent(CloneableOpenSupport.java:202)
	at org.netbeans.modules.properties.PropertiesEditorSupport.access$1201(PropertiesEditorSupport.java:150)
	at org.netbeans.modules.properties.PropertiesEditorSupport$PropertiesEditAt.edit(PropertiesEditorSupport.java:1244)
	at org.openide.actions.EditAction.performAction(EditAction.java:85)
	at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:586)
	at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
	at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
	at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
	at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:583)
	at org.openide.explorer.view.TreeView$PopupSupport.mouseClicked(TreeView.java:1625)
	at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
	at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269)
	at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269)
	at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269)
	at java.awt.Component.processMouseEvent(Component.java:6508)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
	at java.awt.Component.processEvent(Component.java:6270)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4861)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4501)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
	at java.awt.Container.dispatchEventImpl(Container.java:2273)
	at java.awt.Window.dispatchEventImpl(Window.java:2719)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:688)
	at java.awt.EventQueue$3.run(EventQueue.java:686)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:702)
	at java.awt.EventQueue$4.run(EventQueue.java:700)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Comment 1 Tomas Pavek 2013-06-19 16:17:11 UTC
Can you elaborate a bit on the steps how to reproduce this? Sorry I don't understand the provided description (I got lost on "not re-generate the file" - which file is that and which file was actually deleted). Can you give steps that start from creating a new JFrame form, etc? Thanks.
Comment 2 djamdev 2013-06-20 08:16:54 UTC
Created attachment 136065 [details]
attch 01
Comment 3 djamdev 2013-06-20 08:19:42 UTC
Created attachment 136066 [details]
attch 02
Comment 4 djamdev 2013-06-20 08:24:09 UTC
Okay, I tried this many time and it occurs each time:
Create new project --> create new JFRAME --> In the navigator root: click Properties --> check the : "automatic internationalization" --> NOW: when opening the generated bundle.properties file, an exception occurs : SEE THE ATTACHMENT PLEASE

The Second part: When uncheck the "automatic internationalization", it deletes the file, and when we recheck  "automatic internationalization" it didn't recreate the bundle.properties file : see the second attachment
this (Exception) occurs just one time and for the first time opening the file !!!

That occurs also with the Beta version.
Comment 5 Tomas Pavek 2013-06-25 13:35:41 UTC
The first part misses a step of adding some component, doesn't it? If I don't add a button (for example), no Bundle.properties file gets created. Your second screenshot actually shows that you have a property for a button in the file. So correct steps are:
1) Create a java project.
2) Create a GUI form (e.g. JFrame).
3) On root node in Navigator check the Automatic Internationalization property.
It creates a new Bundle.properties file in the project.
4) Doubleclick the Bundle.properties file to open it.

So hopefully these are the correct steps. But I'm not getting any exception. Maybe it's specific to OS or JDK version somehow. Maybe this was fixed already.

The exception comes from some lookup setup after opening a multiview TopComponent (from the context it should be the editor for the Bundle.properties file), triggered from local history listener. Reassigning to multiview for evaluation.
Comment 6 Stanislav Aubrecht 2013-06-25 13:47:42 UTC

*** This bug has been marked as a duplicate of bug 231619 ***