[core] ExceptionInInitializerError causing NetBeans not to start

View: New views
4 Messages — Rating Filter:   Alert me  

[core] ExceptionInInitializerError causing NetBeans not to start

by Allan Lykke Christensen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi y'all,

I'm wondering if anyone has had the problem of getting an
ExceptionInInitializerError when starting NetBeans. It happened after
I installed a bunch of plug-ins.  The error is causing that I can't
start NetBeans at all. Anybody got a work around or do I need to clean
my userdir?

Stacktrace:

org.apache.commons.logging.LogConfigurationException: Invalid class
loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.
        at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:385)
Caused: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Invalid class
loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.
(Caused by org.apache.commons.logging.LogConfigurationException:
Invalid class loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.)
        at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
Caused: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Invalid class
loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.
(Caused by org.apache.commons.logging.LogConfigurationException:
Invalid class loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.)
(Caused by org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Invalid class
loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.
(Caused by org.apache.commons.logging.LogConfigurationException:
Invalid class loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.))
        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
        at net.fortuna.ical4j.data.CalendarBuilder.<clinit>(Unknown Source)
Caused: java.lang.ExceptionInInitializerError
        at org.netbeans.modules.tasklist.usertasks.translators.ICalImportFormat.read(ICalImportFormat.java:139)
        at org.netbeans.modules.tasklist.usertasks.model.UserTaskList.readDocument(UserTaskList.java:336)
        at org.netbeans.modules.tasklist.usertasks.model.UserTaskList.readDocument(UserTaskList.java:372)
        at org.netbeans.modules.tasklist.usertasks.model.UserTaskList.getDefault(UserTaskList.java:160)
        at org.netbeans.modules.tasklist.usertasks.UserTaskView.readExternal(UserTaskView.java:299)
        at org.openide.windows.TopComponent$Replacer.readObject(TopComponent.java:1442)
        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:585)
        at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
        at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.readSerial(XMLSettingsSupport.java:542)
        at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:574)
        at org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:415)
        at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:513)
        at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:618)
        at org.netbeans.core.windows.PersistenceHandler.getTopComponentForID(PersistenceHandler.java:422)
        at org.netbeans.core.windows.PersistenceHandler.load(PersistenceHandler.java:147)
        at org.netbeans.core.windows.WindowSystemImpl.load(WindowSystemImpl.java:69)
[catch] at org.netbeans.core.NonGui$3.run(NonGui.java:205)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Re: [core] ExceptionInInitializerError causing NetBeans not to start

by Petr Nejedly :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Allan Lykke Christensen napsal(a):
> Hi y'all,
>
> I'm wondering if anyone has had the problem of getting an
> ExceptionInInitializerError when starting NetBeans. It happened after
> I installed a bunch of plug-ins.  The error is causing that I can't
> start NetBeans at all. Anybody got a work around or do I need to clean
> my userdir?

> at net.fortuna.ical4j.data.CalendarBuilder.<clinit>(Unknown Source)

This is the module that causes your problem.
Remove that module (either by removing the jar in $USERDIR/modules
or by setting $USERDIR/config/Modules/the-module-code-base.xml's
<param name="enabled">false</param>

--
Petr "Nenik" Nejedly, NetBeans/Sun Microsystems, http://www.netbeans.org
355/113 -- Not the famous irrational number PI, but an incredible simulation!

Re: [core] ExceptionInInitializerError causing NetBeans not to start

by Allan Lykke Christensen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Petr,

I solved it by removing the "User Tasks" module. However, I'd love to
get the module working again as it was one of my favourite modules.
Not sure which module it is clashing with - anyway to easily determine
the dependencies of each module so that I can disable the other
modules?

Kind regards,
 Allan


On 14/12/2007, Petr Nejedly <Petr.Nejedly@...> wrote:

> Allan Lykke Christensen napsal(a):
> > Hi y'all,
> >
> > I'm wondering if anyone has had the problem of getting an
> > ExceptionInInitializerError when starting NetBeans. It happened after
> > I installed a bunch of plug-ins.  The error is causing that I can't
> > start NetBeans at all. Anybody got a work around or do I need to clean
> > my userdir?
>
> >       at net.fortuna.ical4j.data.CalendarBuilder.<clinit>(Unknown Source)
>
> This is the module that causes your problem.
> Remove that module (either by removing the jar in $USERDIR/modules
> or by setting $USERDIR/config/Modules/the-module-code-base.xml's
> <param name="enabled">false</param>
>
> --
> Petr "Nenik" Nejedly, NetBeans/Sun Microsystems, http://www.netbeans.org
> 355/113 -- Not the famous irrational number PI, but an incredible simulation!
>

Re: [core] ExceptionInInitializerError causing NetBeans not to start

by Allan Lykke Christensen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Petr,

I solved it by removing the "User Tasks" module. However, I'd love to
get the module working again as it was one of my favourite modules.
Not sure which module it is clashing with - anyway to easily determine
the dependencies of each module so that I can disable the other
modules?

Kind regards,
 Allan


On 14/12/2007, Petr Nejedly <Petr.Nejedly@...> wrote:

> Allan Lykke Christensen napsal(a):
> > Hi y'all,
> >
> > I'm wondering if anyone has had the problem of getting an
> > ExceptionInInitializerError when starting NetBeans. It happened after
> > I installed a bunch of plug-ins.  The error is causing that I can't
> > start NetBeans at all. Anybody got a work around or do I need to clean
> > my userdir?
>
> >       at net.fortuna.ical4j.data.CalendarBuilder.<clinit>(Unknown Source)
>
> This is the module that causes your problem.
> Remove that module (either by removing the jar in $USERDIR/modules
> or by setting $USERDIR/config/Modules/the-module-code-base.xml's
> <param name="enabled">false</param>
>
> --
> Petr "Nenik" Nejedly, NetBeans/Sun Microsystems, http://www.netbeans.org
> 355/113 -- Not the famous irrational number PI, but an incredible simulation!
>