Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add Mle configuration to existing project #110

Open
fewtrees opened this issue Sep 26, 2017 · 13 comments
Open

Unable to add Mle configuration to existing project #110

fewtrees opened this issue Sep 26, 2017 · 13 comments

Comments

@fewtrees
Copy link

null
java.lang.NullPointerException
at org.mule.tooling.esb.framework.MuleFrameworkConfigurable.addSupport(MuleFrameworkConfigurable.java:51)
at com.intellij.framework.addSupport.impl.AddSupportForSingleFrameworkDialog$2.run(AddSupportForSingleFrameworkDialog.java:130)
at com.intellij.openapi.application.RunResult.run(RunResult.java:35)
at com.intellij.openapi.application.WriteAction.execute(WriteAction.java:38)
at com.intellij.framework.addSupport.impl.AddSupportForSingleFrameworkDialog.addSupport(AddSupportForSingleFrameworkDialog.java:133)
at com.intellij.framework.addSupport.impl.AddSupportForSingleFrameworkDialog.doOKAction(AddSupportForSingleFrameworkDialog.java:90)
at com.intellij.openapi.ui.DialogWrapper$OkAction.doAction(DialogWrapper.java:1867)
at com.intellij.openapi.ui.DialogWrapper$DialogWrapperAction.actionPerformed(DialogWrapper.java:1828)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6541)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6306)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4897)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:821)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:645)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)
at java.awt.Dialog.show(Dialog.java:1084)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:736)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:458)
at com.intellij.openapi.ui.DialogWrapper.invokeShow(DialogWrapper.java:1686)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1635)
at com.intellij.openapi.ui.DialogWrapper.showAndGet(DialogWrapper.java:1650)
at org.mule.tooling.esb.framework.MuleFrameworkDetector$MuleFrameworkDetected$1.run(MuleFrameworkDetector.java:141)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:314)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:416)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:821)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:649)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

@javaduke
Copy link
Collaborator

Can you please help me understand how do I reproduce this issue? Can you provide the step-by-step direction?

@fewtrees
Copy link
Author

fewtrees commented Sep 26, 2017 via email

@javaduke
Copy link
Collaborator

Ah, interesting, thank you for this information, I'll try to reproduce it and see if it can be easily fixed. The truth is that I've never tested the plugin with Mule CE, so it could be that it is not 100% supported.

@javaduke
Copy link
Collaborator

I tried but was unable to reproduce the issue. I downloaded and installed Mule CE 3.8.1 on my laptop. Then I created a Maven-based project outside of IntelliJ and imported it using New Project From Existing Sources command. After importing, IntelliJ recognized the Mule app and showed the SDK selection dialog. I created new SDK based on 3.8.1 and selected it. Everything worked as expected. I used the latest version of IntelliJ CE 2017.2.5 and the latest version of the Mule plugin 0.13.

@fewtrees
Copy link
Author

fewtrees commented Sep 27, 2017 via email

@fewtrees
Copy link
Author

fewtrees commented Sep 27, 2017 via email

@javaduke
Copy link
Collaborator

Sorry, I don't see any screenshots here...

@javaduke
Copy link
Collaborator

I was finally able to reproduce the problem, I'm working on a fix.

@javaduke
Copy link
Collaborator

I think I was able to reproduce the problem, but only on one of my environments, the other one is still working correctly. Can you please upload your screenshots somewhere, where I can see them? I just want to make sure I'm taking right steps to reproduce the issue. It seems like for some reason you have what IntelliJ thinks is a Mule library, but it does not have an SDK configured.

@javaduke
Copy link
Collaborator

I have an update - apparently it works differently in IDEA 2017.2, that's why I was unable to reproduce. Which version of IDEA do you have?

javaduke pushed a commit to javaduke/mule-intellij-plugins that referenced this issue Sep 30, 2017
@javaduke javaduke mentioned this issue Sep 30, 2017
machaval pushed a commit that referenced this issue Sep 30, 2017
* Mule Home NPE fix

Issues #110 and #111

* Version change to 2017.2.5
@fewtrees
Copy link
Author

fewtrees commented Sep 30, 2017 via email

@fewtrees
Copy link
Author

fewtrees commented Sep 30, 2017 via email

@javaduke
Copy link
Collaborator

javaduke commented Oct 1, 2017

Hmmm, there's clearly something I'm missing. I was able to reproduce it on 2017.1 and then I upgraded to 2017.2.5 and the upgrade fixed it. I added the null check to avoid the NPE, but the MULE_HOME would still be null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants