getModuleNameToStackName(JavaScriptSupportImpl.java:340) NPE

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

getModuleNameToStackName(JavaScriptSupportImpl.java:340) NPE

Ric-01
Hello all,

I hope my last question for today:

After the migration to Tapestry 5.4.3 I got this stacktrace below on
calling any page of our application.

Does anyone else faced this problem, is it known?

Thanks for your help!

Best Regards, Erich


java.lang.NullPointerException

         
org.apache.tapestry5.internal.services.ajax.JavaScriptSupportImpl.getModuleNameToStackName(JavaScriptSupportImpl.java:340)

         
org.apache.tapestry5.internal.services.ajax.JavaScriptSupportImpl.findStackForModule(JavaScriptSupportImpl.java:328)

         
org.apache.tapestry5.internal.services.ajax.JavaScriptSupportImpl.require(JavaScriptSupportImpl.java:451)

         $JavaScriptSupport_24608ff73a27.require(Unknown Source)

         $JavaScriptSupport_24608ff7398f.require(Unknown Source)

org.apache.tapestry5.internal.transform.ImportWorker$ModuleImport.apply(ImportWorker.java:168)

         
org.apache.tapestry5.internal.transform.ImportWorker$5.advise(ImportWorker.java:197)

         
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:92)

         
org.apache.tapestry5.internal.transform.ImportWorker$8.advise(ImportWorker.java:271)

         
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:92)

         
org.apache.tapestry5.corelib.components.ExceptionDisplay.setupRender(ExceptionDisplay.java)

         
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$SetupRenderPhase.invokeComponent(ComponentPageElementImpl.java:174)

         
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.invoke(ComponentPageElementImpl.java:133)

         
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$SetupRenderPhase.render(ComponentPageElementImpl.java:181)

         
org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:79)

         
org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:121)

         $PageRenderQueue_24608ff73a22.render(Unknown Source)

         $PageRenderQueue_24608ff73944.render(Unknown Source)

         
org.apache.tapestry5.internal.services.MarkupRendererTerminator.renderMarkup(MarkupRendererTerminator.java:37)

         
net.atos.kawwaportal.components.services.KawwaPortalComponentsModule$1.renderMarkup(KawwaPortalComponentsModule.java:135)

         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)

         
net.atos.kawwaportal.components.services.KawwaPortalComponentsModule$4.renderMarkup(KawwaPortalComponentsModule.java:194)

         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)

         
org.apache.tapestry5.internal.services.PageNameMetaInjector.renderMarkup(PageNameMetaInjector.java:41)

         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)

         
org.apache.tapestry5.modules.TapestryModule$29.renderMarkup(TapestryModule.java:1807)

         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)

         
org.apache.tapestry5.modules.TapestryModule$28.renderMarkup(TapestryModule.java:1797)

         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)

         
org.apache.tapestry5.modules.TapestryModule$27.renderMarkup(TapestryModule.java:1781)

         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)

         
net.atos.kawwaportal.components.services.KawwaPortalComponentsModule$3.renderMarkup(KawwaPortalComponentsModule.java:179)

         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)

         
org.apache.tapestry5.internal.services.javascript.AddBrowserCompatibilityStyles.renderMarkup(AddBrowserCompatibilityStyles.java:45)

         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)

         
org.apache.tapestry5.internal.services.javascript.ConfigureHTMLElementFilter.renderMarkup(ConfigureHTMLElementFilter.java:45)

         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)

         
org.apache.tapestry5.modules.TapestryModule$26.renderMarkup(TapestryModule.java:1765)

         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)

         
org.got5.tapestry5.jquery.services.js.JSModule$1.renderMarkup(JSModule.java:40)

         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)

         
org.apache.tapestry5.modules.JavaScriptModule$1.renderMarkup(JavaScriptModule.java:268)

         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)

         
org.apache.tapestry5.modules.TapestryModule$25.renderMarkup(TapestryModule.java:1748)

         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)

         
net.atos.kawwaportal.components.services.KawwaPortalComponentsModule$2.renderMarkup(KawwaPortalComponentsModule.java:147)

         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)

         $MarkupRenderer_24608ff73a21.renderMarkup(Unknown Source)

         
org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:47)

         $PageMarkupRenderer_24608ff73a1f.renderPageMarkup(Unknown Source)

         
org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:64)

         $PageResponseRenderer_24608ff739a9.renderPageResponse(Unknown
Source)

         
org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.renderException(DefaultRequestExceptionHandler.java:262)

         
org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:171)

         
$RequestExceptionHandler_24608ff73968.handleRequestException(Unknown Source)

         
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:42)

         $RequestHandler_24608ff7396a.service(Unknown Source)

         
org.apache.tapestry5.modules.TapestryModule$3.service(TapestryModule.java:846)

         $RequestHandler_24608ff7396a.service(Unknown Source)

         
com.worldline.msp.common.services.requestfilter.DashboardPanelRequestFilter.service(DashboardPanelRequestFilter.java:74)

         $RequestHandler_24608ff7396a.service(Unknown Source)

         
org.apache.tapestry5.modules.TapestryModule$2.service(TapestryModule.java:836)

         $RequestHandler_24608ff7396a.service(Unknown Source)

         
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:89)

         $RequestHandler_24608ff7396a.service(Unknown Source)

         
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:105)

         
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:95)

         
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:83)

         
org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:119)

         $RequestHandler_24608ff7396a.service(Unknown Source)

         $RequestHandler_24608ff73953.service(Unknown Source)

         
org.apache.tapestry5.modules.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:256)

         
org.got5.tapestry5.jquery.services.AjaxUploadServletRequestFilter.service(AjaxUploadServletRequestFilter.java:27)

         $HttpServletRequestHandler_24608ff73955.service(Unknown Source)

         
org.apache.tapestry5.upload.internal.services.MultipartServletRequestFilter.service(MultipartServletRequestFilter.java:45)

         $HttpServletRequestHandler_24608ff73955.service(Unknown Source)

         
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)

         $HttpServletRequestFilter_24608ff7394d.service(Unknown Source)

         $HttpServletRequestHandler_24608ff73955.service(Unknown Source)

         
org.tynamo.security.services.impl.SecurityConfiguration.service(SecurityConfiguration.java:69)

         $HttpServletRequestFilter_24608ff73952.service(Unknown Source)

         $HttpServletRequestHandler_24608ff73955.service(Unknown Source)

         
org.apache.tapestry5.modules.TapestryModule$1.service(TapestryModule.java:796)

         $HttpServletRequestHandler_24608ff73955.service(Unknown Source)

         $HttpServletRequestHandler_24608ff7394c.service(Unknown Source)

         
com.worldline.msp.common.services.MspFilterModule.doFilter(MspFilterModule.java:223)

Reply | Threaded
Open this post in threaded view
|

Re: getModuleNameToStackName(JavaScriptSupportImpl.java:340) NPE

Thiago H de Paula Figueiredo
Hello!

From which version did you upgrade? I may be wrong, of course, but I don't
remember any changes being made to JavaScriptSupportImpl since 5.4.0 or
5.4.1.

On Mon, Mar 19, 2018 at 2:50 PM, Erich Gormann <[hidden email]> wrote:

> Hello all,
>
> I hope my last question for today:
>
> After the migration to Tapestry 5.4.3 I got this stacktrace below on
> calling any page of our application.
>
> Does anyone else faced this problem, is it known?
>
> Thanks for your help!
>
> Best Regards, Erich
>
>
> java.lang.NullPointerException
>
>         org.apache.tapestry5.internal.services.ajax.JavaScriptSuppor
> tImpl.getModuleNameToStackName(JavaScriptSupportImpl.java:340)
>
>         org.apache.tapestry5.internal.services.ajax.JavaScriptSuppor
> tImpl.findStackForModule(JavaScriptSupportImpl.java:328)
>
>         org.apache.tapestry5.internal.services.ajax.JavaScriptSuppor
> tImpl.require(JavaScriptSupportImpl.java:451)
>
>         $JavaScriptSupport_24608ff73a27.require(Unknown Source)
>
>         $JavaScriptSupport_24608ff7398f.require(Unknown Source)
>
> org.apache.tapestry5.internal.transform.ImportWorker$ModuleI
> mport.apply(ImportWorker.java:168)
>
>         org.apache.tapestry5.internal.transform.ImportWorker$5.advis
> e(ImportWorker.java:197)
>
>         org.apache.tapestry5.internal.plastic.AbstractMethodInvocati
> on.proceed(AbstractMethodInvocation.java:92)
>
>         org.apache.tapestry5.internal.transform.ImportWorker$8.advis
> e(ImportWorker.java:271)
>
>         org.apache.tapestry5.internal.plastic.AbstractMethodInvocati
> on.proceed(AbstractMethodInvocation.java:92)
>
>         org.apache.tapestry5.corelib.components.ExceptionDisplay.set
> upRender(ExceptionDisplay.java)
>
>         org.apache.tapestry5.internal.structure.ComponentPageElement
> Impl$SetupRenderPhase.invokeComponent(ComponentPageElementImpl.java:174)
>
>         org.apache.tapestry5.internal.structure.ComponentPageElement
> Impl$AbstractPhase.invoke(ComponentPageElementImpl.java:133)
>
>         org.apache.tapestry5.internal.structure.ComponentPageElement
> Impl$SetupRenderPhase.render(ComponentPageElementImpl.java:181)
>
>         org.apache.tapestry5.internal.services.RenderQueueImpl.run(R
> enderQueueImpl.java:79)
>
>         org.apache.tapestry5.internal.services.PageRenderQueueImpl.r
> ender(PageRenderQueueImpl.java:121)
>
>         $PageRenderQueue_24608ff73a22.render(Unknown Source)
>
>         $PageRenderQueue_24608ff73944.render(Unknown Source)
>
>         org.apache.tapestry5.internal.services.MarkupRendererTermina
> tor.renderMarkup(MarkupRendererTerminator.java:37)
>
>         net.atos.kawwaportal.components.services.KawwaPortalComponen
> tsModule$1.renderMarkup(KawwaPortalComponentsModule.java:135)
>
>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>
>         net.atos.kawwaportal.components.services.KawwaPortalComponen
> tsModule$4.renderMarkup(KawwaPortalComponentsModule.java:194)
>
>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>
>         org.apache.tapestry5.internal.services.PageNameMetaInjector.
> renderMarkup(PageNameMetaInjector.java:41)
>
>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>
>         org.apache.tapestry5.modules.TapestryModule$29.renderMarkup(
> TapestryModule.java:1807)
>
>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>
>         org.apache.tapestry5.modules.TapestryModule$28.renderMarkup(
> TapestryModule.java:1797)
>
>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>
>         org.apache.tapestry5.modules.TapestryModule$27.renderMarkup(
> TapestryModule.java:1781)
>
>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>
>         net.atos.kawwaportal.components.services.KawwaPortalComponen
> tsModule$3.renderMarkup(KawwaPortalComponentsModule.java:179)
>
>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>
>         org.apache.tapestry5.internal.services.javascript.AddBrowser
> CompatibilityStyles.renderMarkup(AddBrowserCompatibilityStyles.java:45)
>
>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>
>         org.apache.tapestry5.internal.services.javascript.ConfigureH
> TMLElementFilter.renderMarkup(ConfigureHTMLElementFilter.java:45)
>
>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>
>         org.apache.tapestry5.modules.TapestryModule$26.renderMarkup(
> TapestryModule.java:1765)
>
>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>
>         org.got5.tapestry5.jquery.services.js.JSModule$1.renderMarku
> p(JSModule.java:40)
>
>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>
>         org.apache.tapestry5.modules.JavaScriptModule$1.renderMarkup
> (JavaScriptModule.java:268)
>
>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>
>         org.apache.tapestry5.modules.TapestryModule$25.renderMarkup(
> TapestryModule.java:1748)
>
>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>
>         net.atos.kawwaportal.components.services.KawwaPortalComponen
> tsModule$2.renderMarkup(KawwaPortalComponentsModule.java:147)
>
>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>
>         $MarkupRenderer_24608ff73a21.renderMarkup(Unknown Source)
>
>         org.apache.tapestry5.internal.services.PageMarkupRendererImp
> l.renderPageMarkup(PageMarkupRendererImpl.java:47)
>
>         $PageMarkupRenderer_24608ff73a1f.renderPageMarkup(Unknown Source)
>
>         org.apache.tapestry5.internal.services.PageResponseRendererI
> mpl.renderPageResponse(PageResponseRendererImpl.java:64)
>
>         $PageResponseRenderer_24608ff739a9.renderPageResponse(Unknown
> Source)
>
>         org.apache.tapestry5.internal.services.DefaultRequestExcepti
> onHandler.renderException(DefaultRequestExceptionHandler.java:262)
>
>         org.apache.tapestry5.internal.services.DefaultRequestExcepti
> onHandler.handleRequestException(DefaultRequestExceptionHandler.java:171)
>
>         $RequestExceptionHandler_24608ff73968.handleRequestException(Unknown
> Source)
>
>         org.apache.tapestry5.internal.services.RequestErrorFilter.se
> rvice(RequestErrorFilter.java:42)
>
>         $RequestHandler_24608ff7396a.service(Unknown Source)
>
>         org.apache.tapestry5.modules.TapestryModule$3.service(Tapest
> ryModule.java:846)
>
>         $RequestHandler_24608ff7396a.service(Unknown Source)
>
>         com.worldline.msp.common.services.requestfilter.DashboardPan
> elRequestFilter.service(DashboardPanelRequestFilter.java:74)
>
>         $RequestHandler_24608ff7396a.service(Unknown Source)
>
>         org.apache.tapestry5.modules.TapestryModule$2.service(Tapest
> ryModule.java:836)
>
>         $RequestHandler_24608ff7396a.service(Unknown Source)
>
>         org.apache.tapestry5.internal.services.StaticFilesFilter.ser
> vice(StaticFilesFilter.java:89)
>
>         $RequestHandler_24608ff7396a.service(Unknown Source)
>
>         org.apache.tapestry5.internal.services.CheckForUpdatesFilter
> $2.invoke(CheckForUpdatesFilter.java:105)
>
>         org.apache.tapestry5.internal.services.CheckForUpdatesFilter
> $2.invoke(CheckForUpdatesFilter.java:95)
>
>         org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.
> withRead(ConcurrentBarrier.java:83)
>
>         org.apache.tapestry5.internal.services.CheckForUpdatesFilter
> .service(CheckForUpdatesFilter.java:119)
>
>         $RequestHandler_24608ff7396a.service(Unknown Source)
>
>         $RequestHandler_24608ff73953.service(Unknown Source)
>
>         org.apache.tapestry5.modules.TapestryModule$HttpServletReque
> stHandlerTerminator.service(TapestryModule.java:256)
>
>         org.got5.tapestry5.jquery.services.AjaxUploadServletRequestF
> ilter.service(AjaxUploadServletRequestFilter.java:27)
>
>         $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>
>         org.apache.tapestry5.upload.internal.services.MultipartServl
> etRequestFilter.service(MultipartServletRequestFilter.java:45)
>
>         $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>
>         org.apache.tapestry5.internal.services.IgnoredPathsFilter.se
> rvice(IgnoredPathsFilter.java:62)
>
>         $HttpServletRequestFilter_24608ff7394d.service(Unknown Source)
>
>         $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>
>         org.tynamo.security.services.impl.SecurityConfiguration.serv
> ice(SecurityConfiguration.java:69)
>
>         $HttpServletRequestFilter_24608ff73952.service(Unknown Source)
>
>         $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>
>         org.apache.tapestry5.modules.TapestryModule$1.service(Tapest
> ryModule.java:796)
>
>         $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>
>         $HttpServletRequestHandler_24608ff7394c.service(Unknown Source)
>
>         com.worldline.msp.common.services.MspFilterModule.doFilter(
> MspFilterModule.java:223)
>
>


--
Thiago
Reply | Threaded
Open this post in threaded view
|

Re: getModuleNameToStackName(JavaScriptSupportImpl.java:340) NPE

Ric-01
Hello Thiago,

I migrated coming from 5.3.8 and I saw, that it is recommended now to
put all assets in the META-INF directory and js libs in a modules sub
dir under above.
But if one keeps the old structure for assets, according to the docs
only a warning should be raised, no exception, or an I wrong?


Regards, Erich

Am 19.03.2018 20:07, schrieb Thiago H. de Paula Figueiredo:

> Hello!
>
> > From which version did you upgrade? I may be wrong, of course, but I don't
> remember any changes being made to JavaScriptSupportImpl since 5.4.0 or
> 5.4.1.
>
> On Mon, Mar 19, 2018 at 2:50 PM, Erich Gormann<[hidden email]>  wrote:
>
>> Hello all,
>>
>> I hope my last question for today:
>>
>> After the migration to Tapestry 5.4.3 I got this stacktrace below on
>> calling any page of our application.
>>
>> Does anyone else faced this problem, is it known?
>>
>> Thanks for your help!
>>
>> Best Regards, Erich
>>
>>
>> java.lang.NullPointerException
>>
>>          org.apache.tapestry5.internal.services.ajax.JavaScriptSuppor
>> tImpl.getModuleNameToStackName(JavaScriptSupportImpl.java:340)
>>
>>          org.apache.tapestry5.internal.services.ajax.JavaScriptSuppor
>> tImpl.findStackForModule(JavaScriptSupportImpl.java:328)
>>
>>          org.apache.tapestry5.internal.services.ajax.JavaScriptSuppor
>> tImpl.require(JavaScriptSupportImpl.java:451)
>>
>>          $JavaScriptSupport_24608ff73a27.require(Unknown Source)
>>
>>          $JavaScriptSupport_24608ff7398f.require(Unknown Source)
>>
>> org.apache.tapestry5.internal.transform.ImportWorker$ModuleI
>> mport.apply(ImportWorker.java:168)
>>
>>          org.apache.tapestry5.internal.transform.ImportWorker$5.advis
>> e(ImportWorker.java:197)
>>
>>          org.apache.tapestry5.internal.plastic.AbstractMethodInvocati
>> on.proceed(AbstractMethodInvocation.java:92)
>>
>>          org.apache.tapestry5.internal.transform.ImportWorker$8.advis
>> e(ImportWorker.java:271)
>>
>>          org.apache.tapestry5.internal.plastic.AbstractMethodInvocati
>> on.proceed(AbstractMethodInvocation.java:92)
>>
>>          org.apache.tapestry5.corelib.components.ExceptionDisplay.set
>> upRender(ExceptionDisplay.java)
>>
>>          org.apache.tapestry5.internal.structure.ComponentPageElement
>> Impl$SetupRenderPhase.invokeComponent(ComponentPageElementImpl.java:174)
>>
>>          org.apache.tapestry5.internal.structure.ComponentPageElement
>> Impl$AbstractPhase.invoke(ComponentPageElementImpl.java:133)
>>
>>          org.apache.tapestry5.internal.structure.ComponentPageElement
>> Impl$SetupRenderPhase.render(ComponentPageElementImpl.java:181)
>>
>>          org.apache.tapestry5.internal.services.RenderQueueImpl.run(R
>> enderQueueImpl.java:79)
>>
>>          org.apache.tapestry5.internal.services.PageRenderQueueImpl.r
>> ender(PageRenderQueueImpl.java:121)
>>
>>          $PageRenderQueue_24608ff73a22.render(Unknown Source)
>>
>>          $PageRenderQueue_24608ff73944.render(Unknown Source)
>>
>>          org.apache.tapestry5.internal.services.MarkupRendererTermina
>> tor.renderMarkup(MarkupRendererTerminator.java:37)
>>
>>          net.atos.kawwaportal.components.services.KawwaPortalComponen
>> tsModule$1.renderMarkup(KawwaPortalComponentsModule.java:135)
>>
>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>
>>          net.atos.kawwaportal.components.services.KawwaPortalComponen
>> tsModule$4.renderMarkup(KawwaPortalComponentsModule.java:194)
>>
>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>
>>          org.apache.tapestry5.internal.services.PageNameMetaInjector.
>> renderMarkup(PageNameMetaInjector.java:41)
>>
>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>
>>          org.apache.tapestry5.modules.TapestryModule$29.renderMarkup(
>> TapestryModule.java:1807)
>>
>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>
>>          org.apache.tapestry5.modules.TapestryModule$28.renderMarkup(
>> TapestryModule.java:1797)
>>
>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>
>>          org.apache.tapestry5.modules.TapestryModule$27.renderMarkup(
>> TapestryModule.java:1781)
>>
>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>
>>          net.atos.kawwaportal.components.services.KawwaPortalComponen
>> tsModule$3.renderMarkup(KawwaPortalComponentsModule.java:179)
>>
>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>
>>          org.apache.tapestry5.internal.services.javascript.AddBrowser
>> CompatibilityStyles.renderMarkup(AddBrowserCompatibilityStyles.java:45)
>>
>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>
>>          org.apache.tapestry5.internal.services.javascript.ConfigureH
>> TMLElementFilter.renderMarkup(ConfigureHTMLElementFilter.java:45)
>>
>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>
>>          org.apache.tapestry5.modules.TapestryModule$26.renderMarkup(
>> TapestryModule.java:1765)
>>
>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>
>>          org.got5.tapestry5.jquery.services.js.JSModule$1.renderMarku
>> p(JSModule.java:40)
>>
>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>
>>          org.apache.tapestry5.modules.JavaScriptModule$1.renderMarkup
>> (JavaScriptModule.java:268)
>>
>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>
>>          org.apache.tapestry5.modules.TapestryModule$25.renderMarkup(
>> TapestryModule.java:1748)
>>
>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>
>>          net.atos.kawwaportal.components.services.KawwaPortalComponen
>> tsModule$2.renderMarkup(KawwaPortalComponentsModule.java:147)
>>
>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>
>>          $MarkupRenderer_24608ff73a21.renderMarkup(Unknown Source)
>>
>>          org.apache.tapestry5.internal.services.PageMarkupRendererImp
>> l.renderPageMarkup(PageMarkupRendererImpl.java:47)
>>
>>          $PageMarkupRenderer_24608ff73a1f.renderPageMarkup(Unknown Source)
>>
>>          org.apache.tapestry5.internal.services.PageResponseRendererI
>> mpl.renderPageResponse(PageResponseRendererImpl.java:64)
>>
>>          $PageResponseRenderer_24608ff739a9.renderPageResponse(Unknown
>> Source)
>>
>>          org.apache.tapestry5.internal.services.DefaultRequestExcepti
>> onHandler.renderException(DefaultRequestExceptionHandler.java:262)
>>
>>          org.apache.tapestry5.internal.services.DefaultRequestExcepti
>> onHandler.handleRequestException(DefaultRequestExceptionHandler.java:171)
>>
>>          $RequestExceptionHandler_24608ff73968.handleRequestException(Unknown
>> Source)
>>
>>          org.apache.tapestry5.internal.services.RequestErrorFilter.se
>> rvice(RequestErrorFilter.java:42)
>>
>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>
>>          org.apache.tapestry5.modules.TapestryModule$3.service(Tapest
>> ryModule.java:846)
>>
>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>
>>          com.worldline.msp.common.services.requestfilter.DashboardPan
>> elRequestFilter.service(DashboardPanelRequestFilter.java:74)
>>
>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>
>>          org.apache.tapestry5.modules.TapestryModule$2.service(Tapest
>> ryModule.java:836)
>>
>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>
>>          org.apache.tapestry5.internal.services.StaticFilesFilter.ser
>> vice(StaticFilesFilter.java:89)
>>
>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>
>>          org.apache.tapestry5.internal.services.CheckForUpdatesFilter
>> $2.invoke(CheckForUpdatesFilter.java:105)
>>
>>          org.apache.tapestry5.internal.services.CheckForUpdatesFilter
>> $2.invoke(CheckForUpdatesFilter.java:95)
>>
>>          org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.
>> withRead(ConcurrentBarrier.java:83)
>>
>>          org.apache.tapestry5.internal.services.CheckForUpdatesFilter
>> .service(CheckForUpdatesFilter.java:119)
>>
>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>
>>          $RequestHandler_24608ff73953.service(Unknown Source)
>>
>>          org.apache.tapestry5.modules.TapestryModule$HttpServletReque
>> stHandlerTerminator.service(TapestryModule.java:256)
>>
>>          org.got5.tapestry5.jquery.services.AjaxUploadServletRequestF
>> ilter.service(AjaxUploadServletRequestFilter.java:27)
>>
>>          $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>
>>          org.apache.tapestry5.upload.internal.services.MultipartServl
>> etRequestFilter.service(MultipartServletRequestFilter.java:45)
>>
>>          $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>
>>          org.apache.tapestry5.internal.services.IgnoredPathsFilter.se
>> rvice(IgnoredPathsFilter.java:62)
>>
>>          $HttpServletRequestFilter_24608ff7394d.service(Unknown Source)
>>
>>          $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>
>>          org.tynamo.security.services.impl.SecurityConfiguration.serv
>> ice(SecurityConfiguration.java:69)
>>
>>          $HttpServletRequestFilter_24608ff73952.service(Unknown Source)
>>
>>          $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>
>>          org.apache.tapestry5.modules.TapestryModule$1.service(Tapest
>> ryModule.java:796)
>>
>>          $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>
>>          $HttpServletRequestHandler_24608ff7394c.service(Unknown Source)
>>
>>          com.worldline.msp.common.services.MspFilterModule.doFilter(
>> MspFilterModule.java:223)
>>
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: getModuleNameToStackName(JavaScriptSupportImpl.java:340) NPE

Thiago H de Paula Figueiredo
On Mon, Mar 19, 2018 at 4:27 PM, Erich Gormann <[hidden email]> wrote:

> Hello Thiago,
>

Hello!


> I migrated coming from 5.3.8 and I saw, that it is recommended now to put
> all assets in the META-INF directory and js libs in a modules sub dir under
> above.
>

You also need to update our references to these files in Java code.


> But if one keeps the old structure for assets, according to the docs only
> a warning should be raised, no exception, or an I wrong?
>

There will be exceptions complaining that public assets (i.e. ones supposed
to be downloaded by browsers) are not in /META-INF/assets.


>
>
> Regards, Erich
>
>
> Am 19.03.2018 20:07, schrieb Thiago H. de Paula Figueiredo:
>
>> Hello!
>>
>> > From which version did you upgrade? I may be wrong, of course, but I
>> don't
>> remember any changes being made to JavaScriptSupportImpl since 5.4.0 or
>> 5.4.1.
>>
>> On Mon, Mar 19, 2018 at 2:50 PM, Erich Gormann<[hidden email]>
>> wrote:
>>
>> Hello all,
>>>
>>> I hope my last question for today:
>>>
>>> After the migration to Tapestry 5.4.3 I got this stacktrace below on
>>> calling any page of our application.
>>>
>>> Does anyone else faced this problem, is it known?
>>>
>>> Thanks for your help!
>>>
>>> Best Regards, Erich
>>>
>>>
>>> java.lang.NullPointerException
>>>
>>>          org.apache.tapestry5.internal.services.ajax.JavaScriptSuppor
>>> tImpl.getModuleNameToStackName(JavaScriptSupportImpl.java:340)
>>>
>>>          org.apache.tapestry5.internal.services.ajax.JavaScriptSuppor
>>> tImpl.findStackForModule(JavaScriptSupportImpl.java:328)
>>>
>>>          org.apache.tapestry5.internal.services.ajax.JavaScriptSuppor
>>> tImpl.require(JavaScriptSupportImpl.java:451)
>>>
>>>          $JavaScriptSupport_24608ff73a27.require(Unknown Source)
>>>
>>>          $JavaScriptSupport_24608ff7398f.require(Unknown Source)
>>>
>>> org.apache.tapestry5.internal.transform.ImportWorker$ModuleI
>>> mport.apply(ImportWorker.java:168)
>>>
>>>          org.apache.tapestry5.internal.transform.ImportWorker$5.advis
>>> e(ImportWorker.java:197)
>>>
>>>          org.apache.tapestry5.internal.plastic.AbstractMethodInvocati
>>> on.proceed(AbstractMethodInvocation.java:92)
>>>
>>>          org.apache.tapestry5.internal.transform.ImportWorker$8.advis
>>> e(ImportWorker.java:271)
>>>
>>>          org.apache.tapestry5.internal.plastic.AbstractMethodInvocati
>>> on.proceed(AbstractMethodInvocation.java:92)
>>>
>>>          org.apache.tapestry5.corelib.components.ExceptionDisplay.set
>>> upRender(ExceptionDisplay.java)
>>>
>>>          org.apache.tapestry5.internal.structure.ComponentPageElement
>>> Impl$SetupRenderPhase.invokeComponent(ComponentPageElementImpl.java:174)
>>>
>>>          org.apache.tapestry5.internal.structure.ComponentPageElement
>>> Impl$AbstractPhase.invoke(ComponentPageElementImpl.java:133)
>>>
>>>          org.apache.tapestry5.internal.structure.ComponentPageElement
>>> Impl$SetupRenderPhase.render(ComponentPageElementImpl.java:181)
>>>
>>>          org.apache.tapestry5.internal.services.RenderQueueImpl.run(R
>>> enderQueueImpl.java:79)
>>>
>>>          org.apache.tapestry5.internal.services.PageRenderQueueImpl.r
>>> ender(PageRenderQueueImpl.java:121)
>>>
>>>          $PageRenderQueue_24608ff73a22.render(Unknown Source)
>>>
>>>          $PageRenderQueue_24608ff73944.render(Unknown Source)
>>>
>>>          org.apache.tapestry5.internal.services.MarkupRendererTermina
>>> tor.renderMarkup(MarkupRendererTerminator.java:37)
>>>
>>>          net.atos.kawwaportal.components.services.KawwaPortalComponen
>>> tsModule$1.renderMarkup(KawwaPortalComponentsModule.java:135)
>>>
>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>
>>>          net.atos.kawwaportal.components.services.KawwaPortalComponen
>>> tsModule$4.renderMarkup(KawwaPortalComponentsModule.java:194)
>>>
>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>
>>>          org.apache.tapestry5.internal.services.PageNameMetaInjector.
>>> renderMarkup(PageNameMetaInjector.java:41)
>>>
>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>
>>>          org.apache.tapestry5.modules.TapestryModule$29.renderMarkup(
>>> TapestryModule.java:1807)
>>>
>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>
>>>          org.apache.tapestry5.modules.TapestryModule$28.renderMarkup(
>>> TapestryModule.java:1797)
>>>
>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>
>>>          org.apache.tapestry5.modules.TapestryModule$27.renderMarkup(
>>> TapestryModule.java:1781)
>>>
>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>
>>>          net.atos.kawwaportal.components.services.KawwaPortalComponen
>>> tsModule$3.renderMarkup(KawwaPortalComponentsModule.java:179)
>>>
>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>
>>>          org.apache.tapestry5.internal.services.javascript.AddBrowser
>>> CompatibilityStyles.renderMarkup(AddBrowserCompatibilityStyles.java:45)
>>>
>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>
>>>          org.apache.tapestry5.internal.services.javascript.ConfigureH
>>> TMLElementFilter.renderMarkup(ConfigureHTMLElementFilter.java:45)
>>>
>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>
>>>          org.apache.tapestry5.modules.TapestryModule$26.renderMarkup(
>>> TapestryModule.java:1765)
>>>
>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>
>>>          org.got5.tapestry5.jquery.services.js.JSModule$1.renderMarku
>>> p(JSModule.java:40)
>>>
>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>
>>>          org.apache.tapestry5.modules.JavaScriptModule$1.renderMarkup
>>> (JavaScriptModule.java:268)
>>>
>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>
>>>          org.apache.tapestry5.modules.TapestryModule$25.renderMarkup(
>>> TapestryModule.java:1748)
>>>
>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>
>>>          net.atos.kawwaportal.components.services.KawwaPortalComponen
>>> tsModule$2.renderMarkup(KawwaPortalComponentsModule.java:147)
>>>
>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>
>>>          $MarkupRenderer_24608ff73a21.renderMarkup(Unknown Source)
>>>
>>>          org.apache.tapestry5.internal.services.PageMarkupRendererImp
>>> l.renderPageMarkup(PageMarkupRendererImpl.java:47)
>>>
>>>          $PageMarkupRenderer_24608ff73a1f.renderPageMarkup(Unknown
>>> Source)
>>>
>>>          org.apache.tapestry5.internal.services.PageResponseRendererI
>>> mpl.renderPageResponse(PageResponseRendererImpl.java:64)
>>>
>>>          $PageResponseRenderer_24608ff739a9.renderPageResponse(Unknown
>>> Source)
>>>
>>>          org.apache.tapestry5.internal.services.DefaultRequestExcepti
>>> onHandler.renderException(DefaultRequestExceptionHandler.java:262)
>>>
>>>          org.apache.tapestry5.internal.services.DefaultRequestExcepti
>>> onHandler.handleRequestException(DefaultRequestExceptionHand
>>> ler.java:171)
>>>
>>>          $RequestExceptionHandler_24608ff73968.handleRequestExceptio
>>> n(Unknown
>>> Source)
>>>
>>>          org.apache.tapestry5.internal.services.RequestErrorFilter.se
>>> rvice(RequestErrorFilter.java:42)
>>>
>>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>>
>>>          org.apache.tapestry5.modules.TapestryModule$3.service(Tapest
>>> ryModule.java:846)
>>>
>>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>>
>>>          com.worldline.msp.common.services.requestfilter.DashboardPan
>>> elRequestFilter.service(DashboardPanelRequestFilter.java:74)
>>>
>>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>>
>>>          org.apache.tapestry5.modules.TapestryModule$2.service(Tapest
>>> ryModule.java:836)
>>>
>>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>>
>>>          org.apache.tapestry5.internal.services.StaticFilesFilter.ser
>>> vice(StaticFilesFilter.java:89)
>>>
>>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>>
>>>          org.apache.tapestry5.internal.services.CheckForUpdatesFilter
>>> $2.invoke(CheckForUpdatesFilter.java:105)
>>>
>>>          org.apache.tapestry5.internal.services.CheckForUpdatesFilter
>>> $2.invoke(CheckForUpdatesFilter.java:95)
>>>
>>>          org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.
>>> withRead(ConcurrentBarrier.java:83)
>>>
>>>          org.apache.tapestry5.internal.services.CheckForUpdatesFilter
>>> .service(CheckForUpdatesFilter.java:119)
>>>
>>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>>
>>>          $RequestHandler_24608ff73953.service(Unknown Source)
>>>
>>>          org.apache.tapestry5.modules.TapestryModule$HttpServletReque
>>> stHandlerTerminator.service(TapestryModule.java:256)
>>>
>>>          org.got5.tapestry5.jquery.services.AjaxUploadServletRequestF
>>> ilter.service(AjaxUploadServletRequestFilter.java:27)
>>>
>>>          $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>>
>>>          org.apache.tapestry5.upload.internal.services.MultipartServl
>>> etRequestFilter.service(MultipartServletRequestFilter.java:45)
>>>
>>>          $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>>
>>>          org.apache.tapestry5.internal.services.IgnoredPathsFilter.se
>>> rvice(IgnoredPathsFilter.java:62)
>>>
>>>          $HttpServletRequestFilter_24608ff7394d.service(Unknown Source)
>>>
>>>          $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>>
>>>          org.tynamo.security.services.impl.SecurityConfiguration.serv
>>> ice(SecurityConfiguration.java:69)
>>>
>>>          $HttpServletRequestFilter_24608ff73952.service(Unknown Source)
>>>
>>>          $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>>
>>>          org.apache.tapestry5.modules.TapestryModule$1.service(Tapest
>>> ryModule.java:796)
>>>
>>>          $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>>
>>>          $HttpServletRequestHandler_24608ff7394c.service(Unknown Source)
>>>
>>>          com.worldline.msp.common.services.MspFilterModule.doFilter(
>>> MspFilterModule.java:223)
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
Thiago
Reply | Threaded
Open this post in threaded view
|

Re: getModuleNameToStackName(JavaScriptSupportImpl.java:340) NPE

JumpStart
Here’s an example (first-name-color-switcher.js) where it’s in META-INF/modules...

        http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/javascript       

…and here’s an example (person-list.js) where it’s in the normal source tree, ending up in classes…

        http://jumpstart.doublenegative.com.au/jumpstart/together/ajaxcomponentscrud/persons

HTH,

Geoff

> On 21 Mar 2018, at 2:09 AM, Thiago H. de Paula Figueiredo <[hidden email]> wrote:
>
> On Mon, Mar 19, 2018 at 4:27 PM, Erich Gormann <[hidden email] <mailto:[hidden email]>> wrote:
>
>> Hello Thiago,
>>
>
> Hello!
>
>
>> I migrated coming from 5.3.8 and I saw, that it is recommended now to put
>> all assets in the META-INF directory and js libs in a modules sub dir under
>> above.
>>
>
> You also need to update our references to these files in Java code.
>
>
>> But if one keeps the old structure for assets, according to the docs only
>> a warning should be raised, no exception, or an I wrong?
>>
>
> There will be exceptions complaining that public assets (i.e. ones supposed
> to be downloaded by browsers) are not in /META-INF/assets.
>
>
>>
>>
>> Regards, Erich
>>
>>
>> Am 19.03.2018 20:07, schrieb Thiago H. de Paula Figueiredo:
>>
>>> Hello!
>>>
>>>> From which version did you upgrade? I may be wrong, of course, but I
>>> don't
>>> remember any changes being made to JavaScriptSupportImpl since 5.4.0 or
>>> 5.4.1.
>>>
>>> On Mon, Mar 19, 2018 at 2:50 PM, Erich Gormann<[hidden email]>
>>> wrote:
>>>
>>> Hello all,
>>>>
>>>> I hope my last question for today:
>>>>
>>>> After the migration to Tapestry 5.4.3 I got this stacktrace below on
>>>> calling any page of our application.
>>>>
>>>> Does anyone else faced this problem, is it known?
>>>>
>>>> Thanks for your help!
>>>>
>>>> Best Regards, Erich
>>>>
>>>>
>>>> java.lang.NullPointerException
>>>>
>>>>         org.apache.tapestry5.internal.services.ajax.JavaScriptSuppor
>>>> tImpl.getModuleNameToStackName(JavaScriptSupportImpl.java:340)
>>>>
>>>>         org.apache.tapestry5.internal.services.ajax.JavaScriptSuppor
>>>> tImpl.findStackForModule(JavaScriptSupportImpl.java:328)
>>>>
>>>>         org.apache.tapestry5.internal.services.ajax.JavaScriptSuppor
>>>> tImpl.require(JavaScriptSupportImpl.java:451)
>>>>
>>>>         $JavaScriptSupport_24608ff73a27.require(Unknown Source)
>>>>
>>>>         $JavaScriptSupport_24608ff7398f.require(Unknown Source)
>>>>
>>>> org.apache.tapestry5.internal.transform.ImportWorker$ModuleI
>>>> mport.apply(ImportWorker.java:168)
>>>>
>>>>         org.apache.tapestry5.internal.transform.ImportWorker$5.advis
>>>> e(ImportWorker.java:197)
>>>>
>>>>         org.apache.tapestry5.internal.plastic.AbstractMethodInvocati
>>>> on.proceed(AbstractMethodInvocation.java:92)
>>>>
>>>>         org.apache.tapestry5.internal.transform.ImportWorker$8.advis
>>>> e(ImportWorker.java:271)
>>>>
>>>>         org.apache.tapestry5.internal.plastic.AbstractMethodInvocati
>>>> on.proceed(AbstractMethodInvocation.java:92)
>>>>
>>>>         org.apache.tapestry5.corelib.components.ExceptionDisplay.set
>>>> upRender(ExceptionDisplay.java)
>>>>
>>>>         org.apache.tapestry5.internal.structure.ComponentPageElement
>>>> Impl$SetupRenderPhase.invokeComponent(ComponentPageElementImpl.java:174)
>>>>
>>>>         org.apache.tapestry5.internal.structure.ComponentPageElement
>>>> Impl$AbstractPhase.invoke(ComponentPageElementImpl.java:133)
>>>>
>>>>         org.apache.tapestry5.internal.structure.ComponentPageElement
>>>> Impl$SetupRenderPhase.render(ComponentPageElementImpl.java:181)
>>>>
>>>>         org.apache.tapestry5.internal.services.RenderQueueImpl.run(R
>>>> enderQueueImpl.java:79)
>>>>
>>>>         org.apache.tapestry5.internal.services.PageRenderQueueImpl.r
>>>> ender(PageRenderQueueImpl.java:121)
>>>>
>>>>         $PageRenderQueue_24608ff73a22.render(Unknown Source)
>>>>
>>>>         $PageRenderQueue_24608ff73944.render(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.internal.services.MarkupRendererTermina
>>>> tor.renderMarkup(MarkupRendererTerminator.java:37)
>>>>
>>>>         net.atos.kawwaportal.components.services.KawwaPortalComponen
>>>> tsModule$1.renderMarkup(KawwaPortalComponentsModule.java:135)
>>>>
>>>>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>
>>>>         net.atos.kawwaportal.components.services.KawwaPortalComponen
>>>> tsModule$4.renderMarkup(KawwaPortalComponentsModule.java:194)
>>>>
>>>>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.internal.services.PageNameMetaInjector.
>>>> renderMarkup(PageNameMetaInjector.java:41)
>>>>
>>>>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.modules.TapestryModule$29.renderMarkup(
>>>> TapestryModule.java:1807)
>>>>
>>>>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.modules.TapestryModule$28.renderMarkup(
>>>> TapestryModule.java:1797)
>>>>
>>>>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.modules.TapestryModule$27.renderMarkup(
>>>> TapestryModule.java:1781)
>>>>
>>>>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>
>>>>         net.atos.kawwaportal.components.services.KawwaPortalComponen
>>>> tsModule$3.renderMarkup(KawwaPortalComponentsModule.java:179)
>>>>
>>>>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.internal.services.javascript.AddBrowser
>>>> CompatibilityStyles.renderMarkup(AddBrowserCompatibilityStyles.java:45)
>>>>
>>>>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.internal.services.javascript.ConfigureH
>>>> TMLElementFilter.renderMarkup(ConfigureHTMLElementFilter.java:45)
>>>>
>>>>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.modules.TapestryModule$26.renderMarkup(
>>>> TapestryModule.java:1765)
>>>>
>>>>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>
>>>>         org.got5.tapestry5.jquery.services.js.JSModule$1.renderMarku
>>>> p(JSModule.java:40)
>>>>
>>>>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.modules.JavaScriptModule$1.renderMarkup
>>>> (JavaScriptModule.java:268)
>>>>
>>>>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.modules.TapestryModule$25.renderMarkup(
>>>> TapestryModule.java:1748)
>>>>
>>>>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>
>>>>         net.atos.kawwaportal.components.services.KawwaPortalComponen
>>>> tsModule$2.renderMarkup(KawwaPortalComponentsModule.java:147)
>>>>
>>>>         $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>
>>>>         $MarkupRenderer_24608ff73a21.renderMarkup(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.internal.services.PageMarkupRendererImp
>>>> l.renderPageMarkup(PageMarkupRendererImpl.java:47)
>>>>
>>>>         $PageMarkupRenderer_24608ff73a1f.renderPageMarkup(Unknown
>>>> Source)
>>>>
>>>>         org.apache.tapestry5.internal.services.PageResponseRendererI
>>>> mpl.renderPageResponse(PageResponseRendererImpl.java:64)
>>>>
>>>>         $PageResponseRenderer_24608ff739a9.renderPageResponse(Unknown
>>>> Source)
>>>>
>>>>         org.apache.tapestry5.internal.services.DefaultRequestExcepti
>>>> onHandler.renderException(DefaultRequestExceptionHandler.java:262)
>>>>
>>>>         org.apache.tapestry5.internal.services.DefaultRequestExcepti
>>>> onHandler.handleRequestException(DefaultRequestExceptionHand
>>>> ler.java:171)
>>>>
>>>>         $RequestExceptionHandler_24608ff73968.handleRequestExceptio
>>>> n(Unknown
>>>> Source)
>>>>
>>>>         org.apache.tapestry5.internal.services.RequestErrorFilter.se
>>>> rvice(RequestErrorFilter.java:42)
>>>>
>>>>         $RequestHandler_24608ff7396a.service(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.modules.TapestryModule$3.service(Tapest
>>>> ryModule.java:846)
>>>>
>>>>         $RequestHandler_24608ff7396a.service(Unknown Source)
>>>>
>>>>         com.worldline.msp.common.services.requestfilter.DashboardPan
>>>> elRequestFilter.service(DashboardPanelRequestFilter.java:74)
>>>>
>>>>         $RequestHandler_24608ff7396a.service(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.modules.TapestryModule$2.service(Tapest
>>>> ryModule.java:836)
>>>>
>>>>         $RequestHandler_24608ff7396a.service(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.internal.services.StaticFilesFilter.ser
>>>> vice(StaticFilesFilter.java:89)
>>>>
>>>>         $RequestHandler_24608ff7396a.service(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.internal.services.CheckForUpdatesFilter
>>>> $2.invoke(CheckForUpdatesFilter.java:105)
>>>>
>>>>         org.apache.tapestry5.internal.services.CheckForUpdatesFilter
>>>> $2.invoke(CheckForUpdatesFilter.java:95)
>>>>
>>>>         org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.
>>>> withRead(ConcurrentBarrier.java:83)
>>>>
>>>>         org.apache.tapestry5.internal.services.CheckForUpdatesFilter
>>>> .service(CheckForUpdatesFilter.java:119)
>>>>
>>>>         $RequestHandler_24608ff7396a.service(Unknown Source)
>>>>
>>>>         $RequestHandler_24608ff73953.service(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.modules.TapestryModule$HttpServletReque
>>>> stHandlerTerminator.service(TapestryModule.java:256)
>>>>
>>>>         org.got5.tapestry5.jquery.services.AjaxUploadServletRequestF
>>>> ilter.service(AjaxUploadServletRequestFilter.java:27)
>>>>
>>>>         $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.upload.internal.services.MultipartServl
>>>> etRequestFilter.service(MultipartServletRequestFilter.java:45)
>>>>
>>>>         $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.internal.services.IgnoredPathsFilter.se
>>>> rvice(IgnoredPathsFilter.java:62)
>>>>
>>>>         $HttpServletRequestFilter_24608ff7394d.service(Unknown Source)
>>>>
>>>>         $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>>>
>>>>         org.tynamo.security.services.impl.SecurityConfiguration.serv
>>>> ice(SecurityConfiguration.java:69)
>>>>
>>>>         $HttpServletRequestFilter_24608ff73952.service(Unknown Source)
>>>>
>>>>         $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>>>
>>>>         org.apache.tapestry5.modules.TapestryModule$1.service(Tapest
>>>> ryModule.java:796)
>>>>
>>>>         $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>>>
>>>>         $HttpServletRequestHandler_24608ff7394c.service(Unknown Source)
>>>>
>>>>         com.worldline.msp.common.services.MspFilterModule.doFilter(
>>>> MspFilterModule.java:223)
>>>>
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>
>
> --
> Thiago

Reply | Threaded
Open this post in threaded view
|

Re: getModuleNameToStackName(JavaScriptSupportImpl.java:340) NPE

Ric-01
Hello Geoff and Thiago,

thanks a lot for explantion and example.
I found the error: it was a new method which I had to implement in my
types inherting from the Tapestry javascript stack class, but stil
returned null instead of empty list

Regards, Erich



Am 21.03.2018 03:13, schrieb JumpStart:

> Here’s an example (first-name-color-switcher.js) where it’s in META-INF/modules...
>
> http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/javascript       
>
> …and here’s an example (person-list.js) where it’s in the normal source tree, ending up in classes…
>
> http://jumpstart.doublenegative.com.au/jumpstart/together/ajaxcomponentscrud/persons
>
> HTH,
>
> Geoff
>
>> On 21 Mar 2018, at 2:09 AM, Thiago H. de Paula Figueiredo<[hidden email]>  wrote:
>>
>> On Mon, Mar 19, 2018 at 4:27 PM, Erich Gormann<[hidden email]<mailto:[hidden email]>>  wrote:
>>
>>> Hello Thiago,
>>>
>> Hello!
>>
>>
>>> I migrated coming from 5.3.8 and I saw, that it is recommended now to put
>>> all assets in the META-INF directory and js libs in a modules sub dir under
>>> above.
>>>
>> You also need to update our references to these files in Java code.
>>
>>
>>> But if one keeps the old structure for assets, according to the docs only
>>> a warning should be raised, no exception, or an I wrong?
>>>
>> There will be exceptions complaining that public assets (i.e. ones supposed
>> to be downloaded by browsers) are not in /META-INF/assets.
>>
>>
>>>
>>> Regards, Erich
>>>
>>>
>>> Am 19.03.2018 20:07, schrieb Thiago H. de Paula Figueiredo:
>>>
>>>> Hello!
>>>>
>>>>>  From which version did you upgrade? I may be wrong, of course, but I
>>>> don't
>>>> remember any changes being made to JavaScriptSupportImpl since 5.4.0 or
>>>> 5.4.1.
>>>>
>>>> On Mon, Mar 19, 2018 at 2:50 PM, Erich Gormann<[hidden email]>
>>>> wrote:
>>>>
>>>> Hello all,
>>>>> I hope my last question for today:
>>>>>
>>>>> After the migration to Tapestry 5.4.3 I got this stacktrace below on
>>>>> calling any page of our application.
>>>>>
>>>>> Does anyone else faced this problem, is it known?
>>>>>
>>>>> Thanks for your help!
>>>>>
>>>>> Best Regards, Erich
>>>>>
>>>>>
>>>>> java.lang.NullPointerException
>>>>>
>>>>>          org.apache.tapestry5.internal.services.ajax.JavaScriptSuppor
>>>>> tImpl.getModuleNameToStackName(JavaScriptSupportImpl.java:340)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.ajax.JavaScriptSuppor
>>>>> tImpl.findStackForModule(JavaScriptSupportImpl.java:328)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.ajax.JavaScriptSuppor
>>>>> tImpl.require(JavaScriptSupportImpl.java:451)
>>>>>
>>>>>          $JavaScriptSupport_24608ff73a27.require(Unknown Source)
>>>>>
>>>>>          $JavaScriptSupport_24608ff7398f.require(Unknown Source)
>>>>>
>>>>> org.apache.tapestry5.internal.transform.ImportWorker$ModuleI
>>>>> mport.apply(ImportWorker.java:168)
>>>>>
>>>>>          org.apache.tapestry5.internal.transform.ImportWorker$5.advis
>>>>> e(ImportWorker.java:197)
>>>>>
>>>>>          org.apache.tapestry5.internal.plastic.AbstractMethodInvocati
>>>>> on.proceed(AbstractMethodInvocation.java:92)
>>>>>
>>>>>          org.apache.tapestry5.internal.transform.ImportWorker$8.advis
>>>>> e(ImportWorker.java:271)
>>>>>
>>>>>          org.apache.tapestry5.internal.plastic.AbstractMethodInvocati
>>>>> on.proceed(AbstractMethodInvocation.java:92)
>>>>>
>>>>>          org.apache.tapestry5.corelib.components.ExceptionDisplay.set
>>>>> upRender(ExceptionDisplay.java)
>>>>>
>>>>>          org.apache.tapestry5.internal.structure.ComponentPageElement
>>>>> Impl$SetupRenderPhase.invokeComponent(ComponentPageElementImpl.java:174)
>>>>>
>>>>>          org.apache.tapestry5.internal.structure.ComponentPageElement
>>>>> Impl$AbstractPhase.invoke(ComponentPageElementImpl.java:133)
>>>>>
>>>>>          org.apache.tapestry5.internal.structure.ComponentPageElement
>>>>> Impl$SetupRenderPhase.render(ComponentPageElementImpl.java:181)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.RenderQueueImpl.run(R
>>>>> enderQueueImpl.java:79)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.PageRenderQueueImpl.r
>>>>> ender(PageRenderQueueImpl.java:121)
>>>>>
>>>>>          $PageRenderQueue_24608ff73a22.render(Unknown Source)
>>>>>
>>>>>          $PageRenderQueue_24608ff73944.render(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.MarkupRendererTermina
>>>>> tor.renderMarkup(MarkupRendererTerminator.java:37)
>>>>>
>>>>>          net.atos.kawwaportal.components.services.KawwaPortalComponen
>>>>> tsModule$1.renderMarkup(KawwaPortalComponentsModule.java:135)
>>>>>
>>>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>>
>>>>>          net.atos.kawwaportal.components.services.KawwaPortalComponen
>>>>> tsModule$4.renderMarkup(KawwaPortalComponentsModule.java:194)
>>>>>
>>>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.PageNameMetaInjector.
>>>>> renderMarkup(PageNameMetaInjector.java:41)
>>>>>
>>>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.modules.TapestryModule$29.renderMarkup(
>>>>> TapestryModule.java:1807)
>>>>>
>>>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.modules.TapestryModule$28.renderMarkup(
>>>>> TapestryModule.java:1797)
>>>>>
>>>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.modules.TapestryModule$27.renderMarkup(
>>>>> TapestryModule.java:1781)
>>>>>
>>>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>>
>>>>>          net.atos.kawwaportal.components.services.KawwaPortalComponen
>>>>> tsModule$3.renderMarkup(KawwaPortalComponentsModule.java:179)
>>>>>
>>>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.javascript.AddBrowser
>>>>> CompatibilityStyles.renderMarkup(AddBrowserCompatibilityStyles.java:45)
>>>>>
>>>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.javascript.ConfigureH
>>>>> TMLElementFilter.renderMarkup(ConfigureHTMLElementFilter.java:45)
>>>>>
>>>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.modules.TapestryModule$26.renderMarkup(
>>>>> TapestryModule.java:1765)
>>>>>
>>>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>>
>>>>>          org.got5.tapestry5.jquery.services.js.JSModule$1.renderMarku
>>>>> p(JSModule.java:40)
>>>>>
>>>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.modules.JavaScriptModule$1.renderMarkup
>>>>> (JavaScriptModule.java:268)
>>>>>
>>>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.modules.TapestryModule$25.renderMarkup(
>>>>> TapestryModule.java:1748)
>>>>>
>>>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>>
>>>>>          net.atos.kawwaportal.components.services.KawwaPortalComponen
>>>>> tsModule$2.renderMarkup(KawwaPortalComponentsModule.java:147)
>>>>>
>>>>>          $MarkupRenderer_24608ff73a25.renderMarkup(Unknown Source)
>>>>>
>>>>>          $MarkupRenderer_24608ff73a21.renderMarkup(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.PageMarkupRendererImp
>>>>> l.renderPageMarkup(PageMarkupRendererImpl.java:47)
>>>>>
>>>>>          $PageMarkupRenderer_24608ff73a1f.renderPageMarkup(Unknown
>>>>> Source)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.PageResponseRendererI
>>>>> mpl.renderPageResponse(PageResponseRendererImpl.java:64)
>>>>>
>>>>>          $PageResponseRenderer_24608ff739a9.renderPageResponse(Unknown
>>>>> Source)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.DefaultRequestExcepti
>>>>> onHandler.renderException(DefaultRequestExceptionHandler.java:262)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.DefaultRequestExcepti
>>>>> onHandler.handleRequestException(DefaultRequestExceptionHand
>>>>> ler.java:171)
>>>>>
>>>>>          $RequestExceptionHandler_24608ff73968.handleRequestExceptio
>>>>> n(Unknown
>>>>> Source)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.RequestErrorFilter.se
>>>>> rvice(RequestErrorFilter.java:42)
>>>>>
>>>>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.modules.TapestryModule$3.service(Tapest
>>>>> ryModule.java:846)
>>>>>
>>>>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>>>>
>>>>>          com.worldline.msp.common.services.requestfilter.DashboardPan
>>>>> elRequestFilter.service(DashboardPanelRequestFilter.java:74)
>>>>>
>>>>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.modules.TapestryModule$2.service(Tapest
>>>>> ryModule.java:836)
>>>>>
>>>>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.StaticFilesFilter.ser
>>>>> vice(StaticFilesFilter.java:89)
>>>>>
>>>>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.CheckForUpdatesFilter
>>>>> $2.invoke(CheckForUpdatesFilter.java:105)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.CheckForUpdatesFilter
>>>>> $2.invoke(CheckForUpdatesFilter.java:95)
>>>>>
>>>>>          org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.
>>>>> withRead(ConcurrentBarrier.java:83)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.CheckForUpdatesFilter
>>>>> .service(CheckForUpdatesFilter.java:119)
>>>>>
>>>>>          $RequestHandler_24608ff7396a.service(Unknown Source)
>>>>>
>>>>>          $RequestHandler_24608ff73953.service(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.modules.TapestryModule$HttpServletReque
>>>>> stHandlerTerminator.service(TapestryModule.java:256)
>>>>>
>>>>>          org.got5.tapestry5.jquery.services.AjaxUploadServletRequestF
>>>>> ilter.service(AjaxUploadServletRequestFilter.java:27)
>>>>>
>>>>>          $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.upload.internal.services.MultipartServl
>>>>> etRequestFilter.service(MultipartServletRequestFilter.java:45)
>>>>>
>>>>>          $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.internal.services.IgnoredPathsFilter.se
>>>>> rvice(IgnoredPathsFilter.java:62)
>>>>>
>>>>>          $HttpServletRequestFilter_24608ff7394d.service(Unknown Source)
>>>>>
>>>>>          $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>>>>
>>>>>          org.tynamo.security.services.impl.SecurityConfiguration.serv
>>>>> ice(SecurityConfiguration.java:69)
>>>>>
>>>>>          $HttpServletRequestFilter_24608ff73952.service(Unknown Source)
>>>>>
>>>>>          $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>>>>
>>>>>          org.apache.tapestry5.modules.TapestryModule$1.service(Tapest
>>>>> ryModule.java:796)
>>>>>
>>>>>          $HttpServletRequestHandler_24608ff73955.service(Unknown Source)
>>>>>
>>>>>          $HttpServletRequestHandler_24608ff7394c.service(Unknown Source)
>>>>>
>>>>>          com.worldline.msp.common.services.MspFilterModule.doFilter(
>>>>> MspFilterModule.java:223)
>>>>>
>>>>>
>>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>
>>
>> --
>> Thiago
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]