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 143960 - [65cat][core] "import settings" doesn't import update centers and doesn't re-install plugins
Summary: [65cat][core] "import settings" doesn't import update centers and doesn't re-...
Status: RESOLVED WONTFIX
Alias: None
Product: ide
Classification: Unclassified
Component: Import Settings (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jiri Skrivanek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-14 18:05 UTC by santafen
Modified: 2008-12-22 17:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
full CLI capture from failed invocation. (5.10 KB, text/plain)
2008-08-15 05:01 UTC, esmithbss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description santafen 2008-08-14 18:05:56 UTC
So I installed 6.5 Beta today, and it asked me if I wanted to import settings from a previous version. I accepted. Yet none of my settings (like additional 
Update centers/plugins) came over. None. 

What settings are imported if not update centers? Seems only previously opened projects are imported. Having to re-add 3rd-party update centers, re-install 
plugins, etc. is an impediment to upgrading.
Comment 1 esmithbss 2008-08-15 04:59:16 UTC
[Sun JDK 1.6.0_7]
[Version 200808141419]

This is larger than just the Beta.  I just installed the nightly and when I attempted to launch it asked if I wanted to
import my settings from 6.1.

When I said yes, it generated the following exception and terminated before starting.


java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.netbeans.core.startup.Main$1ImportHandler.run(Main.java:385)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:284)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: org.openide.filesystems.FSException: Root /home/esmith/.netbeans/6.1/config does not exist.
	at org.openide.filesystems.FSException.io(FSException.java:103)
	at org.openide.filesystems.LocalFileSystem.setRootDirectory(LocalFileSystem.java:128)
	at org.netbeans.upgrade.AutoUpgrade.doUpgrade(AutoUpgrade.java:195)
	at org.netbeans.upgrade.AutoUpgrade.main(AutoUpgrade.java:82)
	... 13 more
Comment 2 esmithbss 2008-08-15 05:01:09 UTC
Created attachment 67492 [details]
full CLI capture from failed invocation.
Comment 3 esmithbss 2008-08-15 05:03:35 UTC
I tried to launch NB a couple of times before I realized what was happening.

Note that in the CLI capture, there is no reported Cause for the exception.  Apparently it tries to dump the cause, but
dies before it can output it.
Comment 4 Peter Pis 2008-08-18 10:23:28 UTC
Reassigning to "core" for evaluation.
Comment 5 Jiri Skrivanek 2008-08-18 10:53:41 UTC
To santafen: This behaviour is intended. Update centers are always tied to specific NetBeans version and that's why it
doesn't make sense to import older update center to a newer NetBeans version. Also plugins are designed for a particular
version and incompatible changes in NetBeans core may stop these plugins from working.
You can check what is imported in this document http://wiki.netbeans.org/NB65SettingsMigration.

To esmithbss: Please, next time do not mix two different problems into one issue. The cause of your problems can be read
in attached exception "Root /home/esmith/.netbeans/6.1/config does not exist." Please, assure that mentioned folder
really exists. If it doesn't exist, your 6.1 folder has been somehow corrupted and you cannot import your settings at
all. If you encounter other problems, please file a separate issue. Thanks.