ImageDescriptor createImage throws a NullPointerException [message #113256] |
Mon, 24 November 2008 09:59  |
Eclipse User |
|
|
|
Originally posted by: m.schnelle.msit-solutions.com
Hello,
i have a problem with the ImageDescriptor
If i'm loading a image via the ImageDescriptorImage, the Descriptor
method createImage throws a NullPointerException.
It seems that the images are missing in the binary build but I added
the image folder to the build.properties.
Have i overlooked anything in the configuration?
thanks for your help.
- Markus
|
|
|
|
|
|
Re: ImageDescriptor createImage throws a NullPointerException [message #113543 is a reply to message #113353] |
Wed, 26 November 2008 05:22  |
Eclipse User |
|
|
|
Originally posted by: m.schnelle.msit-solutions.com
Hello Rüdiger,
you are right. i should write the plugin id case sensitive. :-)
Ok thanks a lot.
- Markus
Rüdiger Herrmann wrote:
> there is no such thing as a "binary build". If running from within
> Eclipse, usually you don't need to configure anything.
>
> The problem probably lies within your code
> (artworkmanager.Images.registerImage)
>
> HTH
> Rüdiger
>
> Markus Schnelle wrote:
>> Hello,
>>
>> the Runtime Environment is eclipse ide
>> I'm using the Image Class from the Rap Demo Project.
>> I think the problem is that the image isn't in the binary build and i
>> have forget
>> to configure something.
>>
>> here the stackstrace.
>>
>> java.lang.RuntimeException: java.lang.ExceptionInInitializerError
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.handleUIThre adException(RWTLifeCycle.java:291)
>>
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.executeUIThr ead(RWTLifeCycle.java:271)
>>
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.execute(RWTL ifeCycle.java:154)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler$1.r un(LifeCycleServiceHandler.java:61)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:193)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:185)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:150)
>>
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:45 )
>>
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:33)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:157)
>>
>> at
>> org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:101)
>>
>> at
>> org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:63)
>> at
>> org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:51)
>>
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>> at
>> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
>>
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
>>
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
>>
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>> at
>> org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
>>
>> at
>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
>> at
>> org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
>>
>> at
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
>> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
>> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
>> at org.mortbay.http.HttpServer.service(HttpServer.java:909)
>> at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
>> at
>> org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
>> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
>> at
>> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
>> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
>> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
>> Caused by: java.lang.ExceptionInInitializerError
>> at
>> artworkmanager.ApplicationWorkbenchWindowAdvisor.createBanne r(ApplicationWorkbenchWindowAdvisor.java:86)
>>
>> at
>> artworkmanager.ApplicationWorkbenchWindowAdvisor.createWindo wContents(ApplicationWorkbenchWindowAdvisor.java:68)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchWindow.createContents(Workb enchWindow.java:959)
>>
>> at org.eclipse.jface.window.Window.create(Window.java:434)
>> at
>> org.eclipse.ui.internal.Workbench$17.runWithException(Workbe nch.java:963)
>> at
>> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:32)
>>
>> at
>> org.eclipse.rwt.internal.lifecycle.UICallBackManager.addSync (UICallBackManager.java:135)
>>
>> at org.eclipse.swt.widgets.Display$2.run(Display.java:652)
>> at
>> org.eclipse.rwt.internal.lifecycle.UICallBackServiceHandler. runNonUIThreadWithFakeContext(UICallBackServiceHandler.java: 423)
>>
>> at
>> org.eclipse.rwt.lifecycle.UICallBack.runNonUIThreadWithFakeC ontext(UICallBack.java:44)
>>
>> at org.eclipse.swt.widgets.Display.syncExec(Display.java:650)
>> at
>> org.eclipse.ui.internal.StartupThreading.runWithoutException s(StartupThreading.java:110)
>>
>> at
>> org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:960)
>>
>> at
>> org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.java:1793)
>>
>> at
>> org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1729)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:188)
>>
>> at
>> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:790)
>>
>> at
>> org.eclipse.ui.internal.Workbench$25.runWithException(Workbe nch.java:1335)
>>
>> at
>> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:32)
>>
>> at
>> org.eclipse.rwt.internal.lifecycle.UICallBackManager.addSync (UICallBackManager.java:135)
>>
>> at org.eclipse.swt.widgets.Display$2.run(Display.java:652)
>> at
>> org.eclipse.rwt.internal.lifecycle.UICallBackServiceHandler. runNonUIThreadWithFakeContext(UICallBackServiceHandler.java: 423)
>>
>> at
>> org.eclipse.rwt.lifecycle.UICallBack.runNonUIThreadWithFakeC ontext(UICallBack.java:44)
>>
>> at org.eclipse.swt.widgets.Display.syncExec(Display.java:650)
>> at
>> org.eclipse.ui.internal.StartupThreading.runWithoutException s(StartupThreading.java:110)
>>
>> at org.eclipse.ui.internal.Workbench.init(Workbench.java:1330)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2309)
>> at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:22 00)
>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:425)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>>
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:408)
>>
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:157)
>> at artworkmanager.Application.createUI(Application.java:18)
>> at
>> org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:92)
>>
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:228)
>>
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:116)
>>
>> at java.lang.Thread.run(Thread.java:619)
>> Caused by: java.lang.NullPointerException
>> at artworkmanager.Images.registerImage(Images.java:51)
>> at artworkmanager.Images.<clinit>(Images.java:38)
>> ... 37 more
>>
>>
>>
>>
>> Rüdiger Herrmann wrote:
>>> Markus,
>>>
>>> what is your runtime environment? Eclipse ID or deployed war archive?
>>> Please send the stack trace.
>>>
>>> Cheers,
>>> Rüdiger
>>>
>>> Markus Schnelle wrote:
>>>> Hello,
>>>>
>>>> i have a problem with the ImageDescriptor
>>>> If i'm loading a image via the ImageDescriptorImage, the Descriptor
>>>> method createImage throws a NullPointerException.
>>>> It seems that the images are missing in the binary build but I
>>>> added the image folder to the build.properties.
>>>> Have i overlooked anything in the configuration?
>>>>
>>>> thanks for your help.
>>>> - Markus
|
|
|
Powered by
FUDForum. Page generated in 0.25605 seconds