Stacktrace when on Tomcat server

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

Stacktrace when on Tomcat server

nquirynen
Hi,

A simple application with 1 page containing some static text won't work
on Tomcat for some reason and I can't figure out why.
It works when running in Eclipse with maven jetty plugin, but when I
deploy it on my Tomcat server I get the stacktrace below when I access
the page.

Anyone an idea what I could have done wrong; never had this before and
can't find the problem.

org.apache.tapestry5.ioc.internal.OperationException
        org.apache.tapestry5.ioc.internal.OperationTrackerImpl.logAndRethrow(OperationTrackerImpl.java:121)
        org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:88)
        org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
        org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
        org.apache.tapestry5.internal.services.TemplateParserImpl.parseTemplate(TemplateParserImpl.java:57)
        $TemplateParser_160e7709e302da.parseTemplate(Unknown Source)
        org.apache.tapestry5.internal.services.ComponentTemplateSourceImpl.parseTemplate(ComponentTemplateSourceImpl.java:175)
        org.apache.tapestry5.internal.services.ComponentTemplateSourceImpl.getTemplate(ComponentTemplateSourceImpl.java:147)
        $ComponentTemplateSource_160e7709e302d9.getTemplate(Unknown Source)
        org.apache.tapestry5.internal.pageload.PageLoaderImpl$4.invoke(PageLoaderImpl.java:229)
        org.apache.tapestry5.internal.pageload.PageLoaderImpl$4.invoke(PageLoaderImpl.java:222)
        org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
        org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
        org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
        org.apache.tapestry5.internal.pageload.PageLoaderImpl.createAssembler(PageLoaderImpl.java:221)
        org.apache.tapestry5.internal.pageload.PageLoaderImpl.getAssembler(PageLoaderImpl.java:211)
        org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:183)
        org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:178)
        org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
        org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
        org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
        org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:177)
        $PageLoader_160e7709e302c6.loadPage(Unknown Source)
        org.apache.tapestry5.internal.services.PageSourceImpl.getPage(PageSourceImpl.java:104)
        $PageSource_160e7709e302c3.getPage(Unknown Source)
        org.apache.tapestry5.internal.services.NonPoolingRequestPageCacheImpl.get(NonPoolingRequestPageCacheImpl.java:82)
        $RequestPageCache_160e7709e302c2.get(Unknown Source)
        $RequestPageCache_160e7709e302bd.get(Unknown Source)
        org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:77)
        $RequestExceptionHandler_160e7709e3028b.handleRequestException(Unknown Source)
        org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:42)
        $RequestHandler_160e7709e3028d.service(Unknown Source)
        org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:902)
        $RequestHandler_160e7709e3028d.service(Unknown Source)
        org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:892)
        $RequestHandler_160e7709e3028d.service(Unknown Source)
        org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90)
        $RequestHandler_160e7709e3028d.service(Unknown Source)
        $RequestHandler_160e7709e30282.service(Unknown Source)
        org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:253)
        org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53)
        $HttpServletRequestHandler_160e7709e30284.service(Unknown Source)
        org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
        $HttpServletRequestFilter_160e7709e30280.service(Unknown Source)
        $HttpServletRequestHandler_160e7709e30284.service(Unknown Source)
        org.apache.tapestry5.services.TapestryModule$1.service(TapestryModule.java:852)
        $HttpServletRequestHandler_160e7709e30284.service(Unknown Source)
        $HttpServletRequestHandler_160e7709e3027f.service(Unknown Source)
        org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:171)

*root cause*

java.lang.ArrayIndexOutOfBoundsException


Reply | Threaded
Open this post in threaded view
|

Re: Stacktrace when on Tomcat server

Thiago H de Paula Figueiredo
On Fri, 14 Nov 2014 07:48:34 -0200, Nathan Quirynen  
<[hidden email]> wrote:

> Hi,

Hi!

> *root cause*
>
> java.lang.ArrayIndexOutOfBoundsException

You left out exactly where the real information in this stack trace is . .  
.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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

Reply | Threaded
Open this post in threaded view
|

Re: Stacktrace when on Tomcat server

nquirynen
The problem is that's all I see in the logs of tomcat... Maybe my
logging is not setup correctly?

On 14/11/14 12:21, Thiago H de Paula Figueiredo wrote:

> On Fri, 14 Nov 2014 07:48:34 -0200, Nathan Quirynen
> <[hidden email]> wrote:
>
>> Hi,
>
> Hi!
>
>> *root cause*
>>
>> java.lang.ArrayIndexOutOfBoundsException
>
> You left out exactly where the real information in this stack trace is
> . . .
>


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

Reply | Threaded
Open this post in threaded view
|

Re: Stacktrace when on Tomcat server

chris@opencsta.org
Put logback in your pom.XML
Presuming u use 5.4
On 14/11/2014 11:36 pm, "Nathan Quirynen" <[hidden email]>
wrote:

> The problem is that's all I see in the logs of tomcat... Maybe my
> logging is not setup correctly?
>
> On 14/11/14 12:21, Thiago H de Paula Figueiredo wrote:
> > On Fri, 14 Nov 2014 07:48:34 -0200, Nathan Quirynen
> > <[hidden email]> wrote:
> >
> >> Hi,
> >
> > Hi!
> >
> >> *root cause*
> >>
> >> java.lang.ArrayIndexOutOfBoundsException
> >
> > You left out exactly where the real information in this stack trace is
> > . . .
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Stacktrace when on Tomcat server

nquirynen
In reply to this post by Thiago H de Paula Figueiredo
Maybe this helps... it's not much more than what I originally sent, but
there is no more...
This is all I see in the tomcat logs:

[ERROR] ioc.Registry java.lang.ArrayIndexOutOfBoundsException
[ERROR] ioc.Registry Operations trace:
[ERROR] ioc.Registry [ 1] Constructing instance of page class
com.example.pages.Index
[ERROR] ioc.Registry [ 2] Creating ComponentAssembler for
com.example.pages.Index
[ERROR] ioc.Registry [ 3] Parsing component template
classpath:com/example/pages/Index.tml
[ERROR] TapestryModule.RequestExceptionHandler Processing of request
failed with uncaught exception:
org.apache.tapestry5.ioc.internal.OperationException
org.apache.tapestry5.ioc.internal.OperationException
        at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.logAndRethrow(OperationTrackerImpl.java:121)
        at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:88)
        at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
        at
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
        at
org.apache.tapestry5.internal.services.TemplateParserImpl.parseTemplate(TemplateParserImpl.java:57)
        at $TemplateParser_160e7709e302da.parseTemplate(Unknown Source)
        at
org.apache.tapestry5.internal.services.ComponentTemplateSourceImpl.parseTemplate(ComponentTemplateSourceImpl.java:175)
        at
org.apache.tapestry5.internal.services.ComponentTemplateSourceImpl.getTemplate(ComponentTemplateSourceImpl.java:147)
        at $ComponentTemplateSource_160e7709e302d9.getTemplate(Unknown
Source)
        at
org.apache.tapestry5.internal.pageload.PageLoaderImpl$4.invoke(PageLoaderImpl.java:229)
        at
org.apache.tapestry5.internal.pageload.PageLoaderImpl$4.invoke(PageLoaderImpl.java:222)
        at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
        at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
        at
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
        at
org.apache.tapestry5.internal.pageload.PageLoaderImpl.createAssembler(PageLoaderImpl.java:221)
        at
org.apache.tapestry5.internal.pageload.PageLoaderImpl.getAssembler(PageLoaderImpl.java:211)
        at
org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:183)
        at
org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:178)
        at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
        at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
        at
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
        at
org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:177)
        at $PageLoader_160e7709e302c6.loadPage(Unknown Source)
        at
org.apache.tapestry5.internal.services.PageSourceImpl.getPage(PageSourceImpl.java:104)
        at $PageSource_160e7709e302c3.getPage(Unknown Source)
        at
org.apache.tapestry5.internal.services.NonPoolingRequestPageCacheImpl.get(NonPoolingRequestPageCacheImpl.java:82)
        at $RequestPageCache_160e7709e302c2.get(Unknown Source)
        at $RequestPageCache_160e7709e302bd.get(Unknown Source)
        at
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:55)
        at
org.apache.tapestry5.services.TapestryModule$38.handle(TapestryModule.java:2222)
        at $PageRenderRequestHandler_160e7709e302c1.handle(Unknown Source)
        at $PageRenderRequestHandler_160e7709e302bb.handle(Unknown Source)
        at
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
        at
org.apache.tapestry5.services.InitializeActivePageName.handlePageRender(InitializeActivePageName.java:47)
        at
$ComponentRequestHandler_160e7709e302bc.handlePageRender(Unknown Source)
        at
$ComponentRequestHandler_160e7709e3028f.handlePageRender(Unknown Source)
        at
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)
        at $Dispatcher_160e7709e30292.dispatch(Unknown Source)
        at $Dispatcher_160e7709e3028c.dispatch(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:302)
        at
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
        at $RequestHandler_160e7709e3028d.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:902)
        at $RequestHandler_160e7709e3028d.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:892)
        at $RequestHandler_160e7709e3028d.service(Unknown Source)
        at
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90)
        at $RequestHandler_160e7709e3028d.service(Unknown Source)
        at $RequestHandler_160e7709e30282.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:253)
        at
org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53)
        at $HttpServletRequestHandler_160e7709e30284.service(Unknown Source)
        at
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
        at $HttpServletRequestFilter_160e7709e30280.service(Unknown Source)
        at $HttpServletRequestHandler_160e7709e30284.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$1.service(TapestryModule.java:852)
        at $HttpServletRequestHandler_160e7709e30284.service(Unknown Source)
        at $HttpServletRequestHandler_160e7709e3027f.service(Unknown Source)
        at
org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:171)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
        at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
        at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[ERROR] ioc.Registry [ 2] Creating ComponentAssembler for
org.apache.tapestry5.corelib.pages.ExceptionReport
[ERROR] ioc.Registry [ 3] Parsing component template
classpath:org/apache/tapestry5/corelib/pages/ExceptionReport.tml


On 14/11/14 12:21, Thiago H de Paula Figueiredo wrote:

> On Fri, 14 Nov 2014 07:48:34 -0200, Nathan Quirynen
> <[hidden email]> wrote:
>
>> Hi,
>
> Hi!
>
>> *root cause*
>>
>> java.lang.ArrayIndexOutOfBoundsException
>
> You left out exactly where the real information in this stack trace is
> . . .
>

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

Reply | Threaded
Open this post in threaded view
|

Re: Stacktrace when on Tomcat server

Andreas Ernst
Am 14.11.14 um 13:44 schrieb Nathan Quirynen:

> Maybe this helps... it's not much more than what I originally sent, but
> there is no more...
> This is all I see in the tomcat logs:
>
> [ERROR] ioc.Registry java.lang.ArrayIndexOutOfBoundsException
> [ERROR] ioc.Registry Operations trace:
> [ERROR] ioc.Registry [ 1] Constructing instance of page class
> com.example.pages.Index
> [ERROR] ioc.Registry [ 2] Creating ComponentAssembler for
> com.example.pages.Index
> [ERROR] ioc.Registry [ 3] Parsing component template
> classpath:com/example/pages/Index.tml

Show your Index.tml

--
ae | Andreas Ernst | IT Spektrum
Postfach 5, 65612 Beselich
Schupbacher Str. 32, 65614 Beselich, Germany
Tel: +49-6484-91002 Fax: +49-6484-91003
[hidden email] | www.ae-online.de
www.tachyon-online.de

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

Reply | Threaded
Open this post in threaded view
|

Re: Stacktrace when on Tomcat server

Daniel Jue
Yes, I'm guessing it's something malformed in your page template.

On Fri, Nov 14, 2014 at 2:03 PM, Andreas Ernst <[hidden email]> wrote:

> Am 14.11.14 um 13:44 schrieb Nathan Quirynen:
>
>> Maybe this helps... it's not much more than what I originally sent, but
>> there is no more...
>> This is all I see in the tomcat logs:
>>
>> [ERROR] ioc.Registry java.lang.ArrayIndexOutOfBoundsException
>> [ERROR] ioc.Registry Operations trace:
>> [ERROR] ioc.Registry [ 1] Constructing instance of page class
>> com.example.pages.Index
>> [ERROR] ioc.Registry [ 2] Creating ComponentAssembler for
>> com.example.pages.Index
>> [ERROR] ioc.Registry [ 3] Parsing component template
>> classpath:com/example/pages/Index.tml
>>
>
> Show your Index.tml
>
> --
> ae | Andreas Ernst | IT Spektrum
> Postfach 5, 65612 Beselich
> Schupbacher Str. 32, 65614 Beselich, Germany
> Tel: +49-6484-91002 Fax: +49-6484-91003
> [hidden email] | www.ae-online.de
> www.tachyon-online.de
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>