[jira] Created: (MEVENIDE-667) After installing maven ide plugin standard create java class / create jave interface wizards hang

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

[jira] Created: (MEVENIDE-667) After installing maven ide plugin standard create java class / create jave interface wizards hang

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

After installing maven ide plugin standard create java class / create jave interface wizards hang
-------------------------------------------------------------------------------------------------

                 Key: MEVENIDE-667
                 URL: http://jira.codehaus.org/browse/MEVENIDE-667
             Project: mevenide
          Issue Type: Bug
          Components: mevenide-netbeans
    Affects Versions: NB_3.1
         Environment: OS ubuntu 8.04 (hardy)
Product Version: NetBeans IDE 6.0.1 (Build 080320)
Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_GB (nb)
Maven ide plugin 3.1.3 (from netbeans update center)
            Reporter: Martin Fuzzey
            Assignee: Milos Kleint
         Attachments: st

When the maven plugin is installed the Create Java Class dialog blocks after clicking on the finish button.
The dialog is NOT dismissed but an empty .java file is created.
Manually clicking the close button in the window decoration really closes the dialog (but the generated java file is still empty)
The problem occurs even if the current project does NOT use the maven plugin

Uninstalling the maven plugin fixes the problem.
When the maven plugin is reinstalled the problem occurs again after a netbeans restart

Attached is thread dump when problem occurs (not sure how usefull it is)



--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MEVENIDE-667) After installing maven ide plugin standard create java class / create jave interface wizards hang

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MEVENIDE-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=146976#action_146976 ]

Martin Fuzzey commented on MEVENIDE-667:
----------------------------------------

I've done a little more investigation and it seems to be that when the maven plugin is installed netbeans looks for log4j on the classpath via freemaker and can't find it.
SEVERE [global]
java.lang.ClassNotFoundException: org.apache.log4j.Logger
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.netbeans.ProxyClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Caused: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
        at freemarker.log.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:65)
        at freemarker.log.Logger.getLogger(Logger.java:255)
        at freemarker.template.utility.SecurityUtilities.<clinit>(SecurityUtilities.java:67)
        at freemarker.ext.beans.BeansWrapper.<clinit>(BeansWrapper.java:146)
        at freemarker.template.ObjectWrapper.<clinit>(ObjectWrapper.java:69)
        at freemarker.core.Configurable.<init>(Configurable.java:132)
        at freemarker.template.Configuration.<init>(Configuration.java:109)
        at freemarker.template.Configuration.<clinit>(Configuration.java:96)
        at org.netbeans.libs.freemarker.FreemarkerEngine.initFreeMarkerConfiguration(Unknown Source)
        at org.netbeans.libs.freemarker.FreemarkerEngine.eval(Unknown Source)
        at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:232)
        at org.netbeans.modules.templates.ScriptingCreateFromTemplateHandler.createFromTemplate(Unknown Source)
        at org.openide.loaders.MultiDataObject.handleCreateFromTemplate(Unknown Source)
        at org.openide.loaders.DefaultDataObject.handleCreateFromTemplate(Unknown Source)
        at org.openide.loaders.DataObject$CreateAction.run(Unknown Source)
        at org.openide.loaders.DataObjectPool$1WrapAtomicAction.run(Unknown Source)
        at org.openide.filesystems.EventControl.runAtomicAction(Unknown Source)
        at org.openide.filesystems.FileSystem.runAtomicAction(Unknown Source)
        at org.openide.loaders.DataObjectPool.runAtomicAction(Unknown Source)
        at org.openide.loaders.DataObject.invokeAtomicAction(Unknown Source)
        at org.openide.loaders.DataObject.createFromTemplate(Unknown Source)
        at org.openide.loaders.DataObject.createFromTemplate(Unknown Source)
        at org.netbeans.modules.java.project.NewJavaFileWizardIterator.instantiate(NewJavaFileWizardIterator.java:158)
        at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(Unknown Source)
        at org.openide.loaders.TemplateWizard.handleInstantiate(Unknown Source)
        at org.openide.loaders.TemplateWizard.instantiateNewObjects(Unknown Source)
        at org.openide.loaders.TemplateWizardIterImpl.instantiate(Unknown Source)
        at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(Unknown Source)
        at org.openide.WizardDescriptor.callInstantiateOpen(Unknown Source)
        at org.openide.WizardDescriptor.callInstantiate(Unknown Source)
        at org.openide.WizardDescriptor.access$1600(Unknown Source)
        at org.openide.WizardDescriptor$Listener$2$1.run(Unknown Source)
        at org.openide.WizardDescriptor$Listener$2.run(Unknown Source)
        at org.openide.WizardDescriptor.lazyValidate(Unknown Source)
        at org.openide.WizardDescriptor.access$1200(Unknown Source)
        at org.openide.WizardDescriptor$Listener.actionPerformed(Unknown Source)

I've also attached the full messages.log


> After installing maven ide plugin standard create java class / create jave interface wizards hang
> -------------------------------------------------------------------------------------------------
>
>                 Key: MEVENIDE-667
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-667
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide-netbeans
>    Affects Versions: NB_3.1
>         Environment: OS ubuntu 8.04 (hardy)
> Product Version: NetBeans IDE 6.0.1 (Build 080320)
> Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
> System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_GB (nb)
> Maven ide plugin 3.1.3 (from netbeans update center)
>            Reporter: Martin Fuzzey
>            Assignee: Milos Kleint
>         Attachments: messages.log, st
>
>
> When the maven plugin is installed the Create Java Class dialog blocks after clicking on the finish button.
> The dialog is NOT dismissed but an empty .java file is created.
> Manually clicking the close button in the window decoration really closes the dialog (but the generated java file is still empty)
> The problem occurs even if the current project does NOT use the maven plugin
> Uninstalling the maven plugin fixes the problem.
> When the maven plugin is reinstalled the problem occurs again after a netbeans restart
> Attached is thread dump when problem occurs (not sure how usefull it is)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Updated: (MEVENIDE-667) After installing maven ide plugin standard create java class / create jave interface wizards hang

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/MEVENIDE-667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Fuzzey updated MEVENIDE-667:
-----------------------------------

    Attachment: messages.log

> After installing maven ide plugin standard create java class / create jave interface wizards hang
> -------------------------------------------------------------------------------------------------
>
>                 Key: MEVENIDE-667
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-667
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide-netbeans
>    Affects Versions: NB_3.1
>         Environment: OS ubuntu 8.04 (hardy)
> Product Version: NetBeans IDE 6.0.1 (Build 080320)
> Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
> System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_GB (nb)
> Maven ide plugin 3.1.3 (from netbeans update center)
>            Reporter: Martin Fuzzey
>            Assignee: Milos Kleint
>         Attachments: messages.log, st
>
>
> When the maven plugin is installed the Create Java Class dialog blocks after clicking on the finish button.
> The dialog is NOT dismissed but an empty .java file is created.
> Manually clicking the close button in the window decoration really closes the dialog (but the generated java file is still empty)
> The problem occurs even if the current project does NOT use the maven plugin
> Uninstalling the maven plugin fixes the problem.
> When the maven plugin is reinstalled the problem occurs again after a netbeans restart
> Attached is thread dump when problem occurs (not sure how usefull it is)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MEVENIDE-667) After installing maven ide plugin standard create java class / create jave interface wizards hang

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MEVENIDE-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=147270#action_147270 ]

Milos Kleint commented on MEVENIDE-667:
---------------------------------------

do you have some other plugins installled?
I assume it's something with your specific setup as otherwise I would have this reported earlier (and I can create java file myself without any problems).

Is the java you have coming from ubuntu? or is it stock download from sun?


> After installing maven ide plugin standard create java class / create jave interface wizards hang
> -------------------------------------------------------------------------------------------------
>
>                 Key: MEVENIDE-667
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-667
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide-netbeans
>    Affects Versions: NB_3.1
>         Environment: OS ubuntu 8.04 (hardy)
> Product Version: NetBeans IDE 6.0.1 (Build 080320)
> Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
> System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_GB (nb)
> Maven ide plugin 3.1.3 (from netbeans update center)
>            Reporter: Martin Fuzzey
>            Assignee: Milos Kleint
>         Attachments: messages.log, st
>
>
> When the maven plugin is installed the Create Java Class dialog blocks after clicking on the finish button.
> The dialog is NOT dismissed but an empty .java file is created.
> Manually clicking the close button in the window decoration really closes the dialog (but the generated java file is still empty)
> The problem occurs even if the current project does NOT use the maven plugin
> Uninstalling the maven plugin fixes the problem.
> When the maven plugin is reinstalled the problem occurs again after a netbeans restart
> Attached is thread dump when problem occurs (not sure how usefull it is)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MEVENIDE-667) After installing maven ide plugin standard create java class / create jave interface wizards hang

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MEVENIDE-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=147525#action_147525 ]

Milos Kleint commented on MEVENIDE-667:
---------------------------------------

I imagine that the embedded build (in 3.1.3 as default mode) which is running in the same VM as the IDE could cause the problem by modifying System properties or something.

In any case, the maven embedder (a 3rd party binary) does contain log4j classes, however the IDE's module with freemarker shall be completely shielded from it by the module system. In you case it seems not to be the case. The bug shall be probably filed against the netbeans module system. But I guess they will also need more details about your setup.

> After installing maven ide plugin standard create java class / create jave interface wizards hang
> -------------------------------------------------------------------------------------------------
>
>                 Key: MEVENIDE-667
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-667
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide-netbeans
>    Affects Versions: NB_3.1
>         Environment: OS ubuntu 8.04 (hardy)
> Product Version: NetBeans IDE 6.0.1 (Build 080320)
> Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
> System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_GB (nb)
> Maven ide plugin 3.1.3 (from netbeans update center)
>            Reporter: Martin Fuzzey
>            Assignee: Milos Kleint
>         Attachments: messages.log, st
>
>
> When the maven plugin is installed the Create Java Class dialog blocks after clicking on the finish button.
> The dialog is NOT dismissed but an empty .java file is created.
> Manually clicking the close button in the window decoration really closes the dialog (but the generated java file is still empty)
> The problem occurs even if the current project does NOT use the maven plugin
> Uninstalling the maven plugin fixes the problem.
> When the maven plugin is reinstalled the problem occurs again after a netbeans restart
> Attached is thread dump when problem occurs (not sure how usefull it is)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email