ClassNotFoundException in 5383

Hi Dmitry

Today, I wanted to create some forms with the UI designer but had to abort very soon due to the exception below.

Etienne

com.intellij.uiDesigner.HSpacer
java.lang.ClassNotFoundException: com.intellij.uiDesigner.HSpacer
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:40)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at com.intellij.uiDesigner.designSurface.InsertComponentProcessor.createInsertedComponent(InsertComponentProcessor.java:223)
at com.intellij.uiDesigner.designSurface.InsertComponentProcessor.processComponentInsert(InsertComponentProcessor.java:82)
at com.intellij.uiDesigner.designSurface.InsertComponentProcessor.processComponentInsert(InsertComponentProcessor.java:207)
at com.intellij.uiDesigner.designSurface.InsertComponentProcessor.processMouseEvent(InsertComponentProcessor.java:201)
at com.intellij.uiDesigner.designSurface.MainProcessor.processMouseEvent(MainProcessor.java:158)
at com.intellij.uiDesigner.designSurface.GlassLayer.processMouseEvent(GlassLayer.java:24)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3889)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:149)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:21)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:12)
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)

3 comments
Comment actions Permalink

Go to Settings -> GUI Designer and check 'Automatically copy form
runtime classes...'.

etienne wrote:

Hi Dmitry

Today, I wanted to create some forms with the UI designer but had to abort very soon due to the exception below.

Etienne

com.intellij.uiDesigner.HSpacer
java.lang.ClassNotFoundException: com.intellij.uiDesigner.HSpacer
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:40)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at com.intellij.uiDesigner.designSurface.InsertComponentProcessor.createInsertedComponent(InsertComponentProcessor.java:223)
at com.intellij.uiDesigner.designSurface.InsertComponentProcessor.processComponentInsert(InsertComponentProcessor.java:82)
at com.intellij.uiDesigner.designSurface.InsertComponentProcessor.processComponentInsert(InsertComponentProcessor.java:207)
at com.intellij.uiDesigner.designSurface.InsertComponentProcessor.processMouseEvent(InsertComponentProcessor.java:201)
at com.intellij.uiDesigner.designSurface.MainProcessor.processMouseEvent(MainProcessor.java:158)
at com.intellij.uiDesigner.designSurface.GlassLayer.processMouseEvent(GlassLayer.java:24)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3889)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:149)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:21)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:12)
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)


--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0
Comment actions Permalink

Hello etienne,

e> Today, I wanted to create some forms with the UI designer but had to
e> abort very soon due to the exception below.
e>
e> Etienne
e>
e> com.intellij.uiDesigner.HSpacer
e> java.lang.ClassNotFoundException: com.intellij.uiDesigner.HSpacer
e> at

This is a bug in 5383 which will be fixed in the next EAP build. "Copy forms
runtime", unfortunately, will not help.

--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hi Dmitry

Thanks for the heads-up.

etienne

0

Please sign in to leave a comment.