Topic
  • 4 replies
  • Latest Post - ‏2011-04-10T23:58:08Z by SystemAdmin
SystemAdmin
SystemAdmin
106 Posts

Pinned topic Having difficulties running Build Application on WorkLight Server on new build

‏2011-04-08T10:24:30Z |
Hi all,
I'm having difficulties with module 3 of the training material. Specifically, when attemping a Build application on Worklight server, i get a :
Application Build Failed!!!
ERROR

The server logs are suggesting some kindof gadget exception. I can see the HelloWorkLight app is present in <WL Home>/server/widget-resources..

Anybody have any ideas what's wrong with my build ?
server/server.log shows:
2011-04-08 10:55:46,501 ERROR WidgetResource (http-8080-1:5d8ec0f0-938f-4ef4-872f-03358afb206b) java.lang.NullPointerException
com.worklight.gadgets.GadgetDeployedException: java.lang.NullPointerException
at com.worklight.gadgets.bean.WidgetServiceBean\$1.run(WidgetServiceBean.java:116)
at com.worklight.gadgets.bean.WidgetServiceBean\$1.run(WidgetServiceBean.java:98)
at com.srndpt.core.util.RssBrokerUtils.doInTransaction(RssBrokerUtils.java:181) at com.worklight.gadgets.bean.WidgetServiceBean.deployWidget(WidgetServiceBean.java:98)
at com.worklight.server.ws.services.WidgetResource.deployApplication(WidgetResource.java:57)
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:597)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
at com.worklight.server.ws.servlet.WorklightServletDispatcher.service(WorklightServletDispatcher.java:19)
at com.worklight.server.ws.servlet.WorklightDevelopmentServletDispatcher.service(WorklightDevelopmentServletDispatcher.java:2
4)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.worklight.auth.impl.AuthenticationFilter\$1.execute(AuthenticationFilter.java:111)
at com.worklight.auth.impl.AuthenticationServiceBean.accessResource(AuthenticationServiceBean.java:76)
at com.worklight.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:133)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol\$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint\$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NullPointerException
at com.worklight.gadgets.bean.WidgetServiceBean.getAppEnvs(WidgetServiceBean.java:184)
at com.worklight.gadgets.bean.WidgetServiceBean.validateAppEnvsAreEnabled(WidgetServiceBean.java:163)
at com.worklight.gadgets.bean.WidgetServiceBean.handleGadgetAppDeployment(WidgetServiceBean.java:130)
at com.worklight.gadgets.bean.WidgetServiceBean.access\$300(WidgetServiceBean.java:52)
at com.worklight.gadgets.bean.WidgetServiceBean\$1.run(WidgetServiceBean.java:111)
... 37 more
  • IdanAdar
    IdanAdar
    40 Posts

    Re: Having difficulties running Build Application on WorkLight Server on new build

    ‏2011-04-10T06:11:22Z  
    Hello Ant,

    Could you please tell me which version of WorkLight Server and plug-in are you using?
  • SystemAdmin
    SystemAdmin
    106 Posts

    Re: Having difficulties running Build Application on WorkLight Server on new build

    ‏2011-04-10T10:54:53Z  
    Hi Idan,
    I'm using build version 4.0.3.37 for the WorkLight Server and 3.3.1.201008151710 version of the worklight studio feature.
    Thanks
  • IdanAdar
    IdanAdar
    40 Posts

    Re: Having difficulties running Build Application on WorkLight Server on new build

    ‏2011-04-10T11:04:42Z  
    Hi again Ant,

    Judging from the version numbers you have mentioned, this can very well explain the Build failure you have experienced. :)

    First, you've probably meant you are using build 4.0.3.72 of WorkLight Srever, as this is the latest version available on dev.worklight.com
    Second, version 3.3.1 of Ecplise Studio plug-in is not compatible with version 4.x.x.

    Please:
    1. Make sure again you are using version 4.0.3.72 of WorkLight Server.
    2. Upgrade to version 4.0.3.72 of the Eclipse Studio plug-in.

    note: database name has changed from "worklight" to "worklight4".

    Instructions and installation files as well as updated training material are all available @ http://dev.worklight.com

    Please feel free to ask any further questions!
  • SystemAdmin
    SystemAdmin
    106 Posts

    Re: Having difficulties running Build Application on WorkLight Server on new build

    ‏2011-04-10T23:58:08Z  
    Thanks Idan, That has fixed my problem