Re: Selenium test cases fail building 5.4

2016-02-26 Thread Bob Harner
Yep, sorry we didn't get the docs updated before you ran into that. As you
saw, an older Firefox version is needed. (Or, current Firefox versions work
with upgraded versions of Selenium (v2.52.0) long as a build.gradle is
switched to use Java 1.7 or newer.)
Firefox 42 worked

On Friday, February 26, 2016, Barry Books  wrote:

> I downloaded Firefox version 40 and it at least tries to run the test
> cases but crashes. Is there a preferred version?
>
> On Friday, February 26, 2016, Barry Books  > wrote:
>
>> Now that 5.4 is out I'd like to submit a couple of small patches so I
>> downloaded 5.4 and followed the instructions here
>>
>> https://tapestry.apache.org/building-tapestry-from-source.html
>>
>> everything went smoothly but the following tests fail
>>
>> ActivationContextIntegrationTests. testStartup
>>
>> ActivationContextIntegrationTests2. testStartup
>>
>> DoctypeTests. testStartup
>>
>> PageCatalogTests. testStartup
>>
>> ProductionModeTests. testStartup
>>
>> AppFolderTests. testStartup
>>
>> LinkTransformerIntegrationTest. testStartup
>>
>> ReloadTests. testStartup
>>
>> GridSymbolDemoTests. testStartup
>>
>> When I run gradle build from the command line I get this message in
>> Firefox (version 44.0.2) running on OS X 10.11.3
>>
>> Firefox can't find the file at
>>
chrome://src/content/RemoteRunner.html?sessionId=2b72c3d62fe64efc89a7a00e35e19f1c&multiWindow=true&baseUrl=
>>
http://localhost:9090/&debugMode=false&driverUrl=http://localhost:/selenium-server/driver/
>> .
>>
>> which seems to match this issue which basically says this is deprecated
>> and no longer works
>>
>> https://github.com/SeleniumHQ/selenium/issues/1444
>>
>> Is this the case or is there some other trick that's not in the build
>> instructions?
>>
>>
>>
>>


Re: Selenium test cases fail building 5.4

2016-02-26 Thread Barry Books
Firefox 42 worked

On Friday, February 26, 2016, Barry Books  wrote:

> I downloaded Firefox version 40 and it at least tries to run the test
> cases but crashes. Is there a preferred version?
>
> On Friday, February 26, 2016, Barry Books  > wrote:
>
>> Now that 5.4 is out I'd like to submit a couple of small patches so I
>> downloaded 5.4 and followed the instructions here
>>
>> https://tapestry.apache.org/building-tapestry-from-source.html
>>
>> everything went smoothly but the following tests fail
>>
>> ActivationContextIntegrationTests. testStartup
>>
>> ActivationContextIntegrationTests2. testStartup
>>
>> DoctypeTests. testStartup
>>
>> PageCatalogTests. testStartup
>>
>> ProductionModeTests. testStartup
>>
>> AppFolderTests. testStartup
>>
>> LinkTransformerIntegrationTest. testStartup
>>
>> ReloadTests. testStartup
>>
>> GridSymbolDemoTests. testStartup
>>
>> When I run gradle build from the command line I get this message in
>> Firefox (version 44.0.2) running on OS X 10.11.3
>>
>> Firefox can't find the file at
>> chrome://src/content/RemoteRunner.html?sessionId=2b72c3d62fe64efc89a7a00e35e19f1c&multiWindow=true&baseUrl=
>> http://localhost:9090/&debugMode=false&driverUrl=http://localhost:/selenium-server/driver/
>> .
>>
>> which seems to match this issue which basically says this is deprecated
>> and no longer works
>>
>> https://github.com/SeleniumHQ/selenium/issues/1444
>>
>> Is this the case or is there some other trick that's not in the build
>> instructions?
>>
>>
>>
>>


Re: Selenium test cases fail building 5.4

2016-02-26 Thread Barry Books
I downloaded Firefox version 40 and it at least tries to run the test cases
but crashes. Is there a preferred version?

On Friday, February 26, 2016, Barry Books  wrote:

> Now that 5.4 is out I'd like to submit a couple of small patches so I
> downloaded 5.4 and followed the instructions here
>
> https://tapestry.apache.org/building-tapestry-from-source.html
>
> everything went smoothly but the following tests fail
>
> ActivationContextIntegrationTests. testStartup
>
> ActivationContextIntegrationTests2. testStartup
>
> DoctypeTests. testStartup
>
> PageCatalogTests. testStartup
>
> ProductionModeTests. testStartup
>
> AppFolderTests. testStartup
>
> LinkTransformerIntegrationTest. testStartup
>
> ReloadTests. testStartup
>
> GridSymbolDemoTests. testStartup
>
> When I run gradle build from the command line I get this message in
> Firefox (version 44.0.2) running on OS X 10.11.3
>
> Firefox can't find the file at
> chrome://src/content/RemoteRunner.html?sessionId=2b72c3d62fe64efc89a7a00e35e19f1c&multiWindow=true&baseUrl=
> http://localhost:9090/&debugMode=false&driverUrl=http://localhost:/selenium-server/driver/
> .
>
> which seems to match this issue which basically says this is deprecated
> and no longer works
>
> https://github.com/SeleniumHQ/selenium/issues/1444
>
> Is this the case or is there some other trick that's not in the build
> instructions?
>
>
>
>


Selenium test cases fail building 5.4

2016-02-26 Thread Barry Books
Now that 5.4 is out I'd like to submit a couple of small patches so I
downloaded 5.4 and followed the instructions here

https://tapestry.apache.org/building-tapestry-from-source.html

everything went smoothly but the following tests fail

ActivationContextIntegrationTests. testStartup

ActivationContextIntegrationTests2. testStartup

DoctypeTests. testStartup

PageCatalogTests. testStartup

ProductionModeTests. testStartup

AppFolderTests. testStartup

LinkTransformerIntegrationTest. testStartup

ReloadTests. testStartup

GridSymbolDemoTests. testStartup

When I run gradle build from the command line I get this message in Firefox
(version 44.0.2) running on OS X 10.11.3

Firefox can't find the file at
chrome://src/content/RemoteRunner.html?sessionId=2b72c3d62fe64efc89a7a00e35e19f1c&multiWindow=true&baseUrl=
http://localhost:9090/&debugMode=false&driverUrl=http://localhost:/selenium-server/driver/
.

which seems to match this issue which basically says this is deprecated and
no longer works

https://github.com/SeleniumHQ/selenium/issues/1444

Is this the case or is there some other trick that's not in the build
instructions?


Re: Calling method after CommitAfter call

2016-02-26 Thread Thiago H de Paula Figueiredo

On Fri, 26 Feb 2016 07:54:47 -0300, g kuczera  wrote:


But I feel quite ashamed of this solution. It's like forcing the inner
mechanism of Tapestry's Hibernate Wrapper (or even the Hibernate by   
itself,

it's flow) to commit the thing before it is appropriate.


I disagree. Tapestry-Hibernate is a thin wrapper to begin with. What  
you're doing is very normal usage of both Tapestry and Hibernate.


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

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Calling method after CommitAfter call

2016-02-26 Thread Dmitry Gusev
Hi,

The tapestry-jpa-transactions module doesn't use any JPA interceptors, its
before/after commit hooks are implemented in the same advice that opens and
commits transactions for @CommitAfter. In theory you could do the same for
Hibernate too.

But in your case you could extract business logic that deals with
applicationDao to another service's method, put @CommitAfter annotation on
that method, and you're done, i.e.:

public void onFormSubmit(Object observable, Object o)
{
Application application = (Application) o;
applicationService.updateUser(application, user);

// transaction will be committed here
publisher.sendApplicationSubmittedMessage(
user.getId(), application.getId());
}

public interface ApplicationService
{
@CommitAfter
void updateUser(Application application, User user);
}

On Fri, Feb 26, 2016 at 1:54 PM, g kuczera  wrote:

> Thanks for the comprehensive answer. Right now I am testing the
> HibernateSessionManager usage.
> I added it as the field in my page:
>   @Inject
>   private HibernateSessionManager hibernateSessionManager;
>
> and then I commit it in the onFormSubmit method:
>
>   public void onFormSubmit(Object observable, Object o) {
> Application application = (Application) o;
> application.setUser(user);
> applicationDao.save(application);
> hibernateSessionManager.commit();
>
> publisher.sendApplicationSubmittedMessage(user.getId(),
> application.getId());
>   }
>
> But I feel quite ashamed of this solution. It's like forcing the inner
> mechanism of Tapestry's Hibernate Wrapper (or even the Hibernate by itself,
> it's flow) to commit the thing before it is appropriate.
>
> However switching from Hibernate to JPA is not an option for me and
> Interceptors, if I understand them well, seems like an overhead.
>
> 2016-02-25 15:52 GMT+01:00 Thiago H de Paula Figueiredo <
> thiag...@gmail.com>
> :
>
> > On Thu, 25 Feb 2016 11:30:44 -0300, g kuczera 
> wrote:
> >
> > In the end I gave up implementing the JPA, because I do not want to mix
> >> these two different approaches (Hibernate sessions and JPA).
> >>
> >
> > The suggestion would be using JPA instead of Hibernate, not mixing them.
> >
> > So I have one questions: where do I find the HibernateSessionManager
> >> implementation?
> >>
> >
> >
> >
> https://github.com/apache/tapestry5/blob/master/tapestry-hibernate-core/src/main/java/org/apache/tapestry5/internal/hibernate/HibernateSessionManagerImpl.java
> >
> > It looks that I can't use regular
> >> session.getTransaction().commit() becase it gives me *Transaction not
> >> successfully started *error.
> >>
> >
> > In this case, you should start the transaction manually, just as you
> > commit it manually.
> >
> > I have been reading about these (hibernate and tapestry) machanisms and
> it
> >> looks that every thread has it's own session, which is being managed by
> >> HibernateSessionManager. I am not pretty sure how to obtain that
> manager,
> >> to safely commit the transaction.
> >>
> >
> > It's a Tapestry-IoC service, so you can @Inject it in your pages or have
> > it automatically injected into your services' constructors.
> >
> >
> > --
> > Thiago H. de Paula Figueiredo
> > Tapestry, Java and Hibernate consultant and developer
> > http://machina.com.br
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>



-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com


Re: Calling method after CommitAfter call

2016-02-26 Thread g kuczera
Thanks for the comprehensive answer. Right now I am testing the
HibernateSessionManager usage.
I added it as the field in my page:
  @Inject
  private HibernateSessionManager hibernateSessionManager;

and then I commit it in the onFormSubmit method:

  public void onFormSubmit(Object observable, Object o) {
Application application = (Application) o;
application.setUser(user);
applicationDao.save(application);
hibernateSessionManager.commit();

publisher.sendApplicationSubmittedMessage(user.getId(),
application.getId());
  }

But I feel quite ashamed of this solution. It's like forcing the inner
mechanism of Tapestry's Hibernate Wrapper (or even the Hibernate by itself,
it's flow) to commit the thing before it is appropriate.

However switching from Hibernate to JPA is not an option for me and
Interceptors, if I understand them well, seems like an overhead.

2016-02-25 15:52 GMT+01:00 Thiago H de Paula Figueiredo 
:

> On Thu, 25 Feb 2016 11:30:44 -0300, g kuczera  wrote:
>
> In the end I gave up implementing the JPA, because I do not want to mix
>> these two different approaches (Hibernate sessions and JPA).
>>
>
> The suggestion would be using JPA instead of Hibernate, not mixing them.
>
> So I have one questions: where do I find the HibernateSessionManager
>> implementation?
>>
>
>
> https://github.com/apache/tapestry5/blob/master/tapestry-hibernate-core/src/main/java/org/apache/tapestry5/internal/hibernate/HibernateSessionManagerImpl.java
>
> It looks that I can't use regular
>> session.getTransaction().commit() becase it gives me *Transaction not
>> successfully started *error.
>>
>
> In this case, you should start the transaction manually, just as you
> commit it manually.
>
> I have been reading about these (hibernate and tapestry) machanisms and it
>> looks that every thread has it's own session, which is being managed by
>> HibernateSessionManager. I am not pretty sure how to obtain that manager,
>> to safely commit the transaction.
>>
>
> It's a Tapestry-IoC service, so you can @Inject it in your pages or have
> it automatically injected into your services' constructors.
>
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: [5.3.7] Application stops working after some time

2016-02-26 Thread Nathan Quirynen

Hi,

No index does not persist anything. But it's not a problem with the 
index page I think. It looks like a more global problem as when trying 
to access any page I get this error, only it will not say 'Index' in the 
following, but the name of the page I try to access instead.


[ERROR] ioc.Registry java.lang.ArrayIndexOutOfBoundsException
[ERROR] ioc.Registry Operations trace:
[ERROR] ioc.Registry [ 1] Constructing instance of page class 
[hidden].pages.Index
[ERROR] ioc.Registry [ 2] Creating ComponentAssembler for [hidden].pages.Index
[ERROR] ioc.Registry [ 3] Parsing component template 
classpath:[hidden]/pages/Index.tml
[ERROR] TapestryModule.RequestExceptionHandler Unexpected runtime

Don't think it has to do with the session as it also gives the error 
when just going to a page in the application for the first time.


On 26/02/16 10:58, Eugen wrote:

Hi,
do You have some session persistencies in the Index page? Is it the time of
SessionTimeout?

2016-02-26 10:47 GMT+01:00 Nathan Quirynen :


Forgot to say that this error is thrown when trying to access any page.



On 26/02/16 10:37, Nathan Quirynen wrote:


Hi,

I have a weird problem where an application stops working after some
random time. A restart of Tomcat "fixes" it temporarily.

Anyone know where the problem could be?

[ERROR] ioc.Registry java.lang.ArrayIndexOutOfBoundsException
[ERROR] ioc.Registry Operations trace:
[ERROR] ioc.Registry [ 1] Constructing instance of page class
[hidden].pages.Index
[ERROR] ioc.Registry [ 2] Creating ComponentAssembler for
[hidden].pages.Index
[ERROR] ioc.Registry [ 3] Parsing component template
classpath:[hidden]/pages/Index.tml
[ERROR] TapestryModule.RequestExceptionHandler Unexpected runtime
exception: null
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_42d7f228eb.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_42d7f228ea.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_42d7f228d4.loadPage(Unknown Source)

   at
org.apache.tapestry5.internal.services.PageSourceImpl.getPage(PageSourceImpl.java:104)

   at $PageSource_42d7f228d1.getPage(Unknown Source)

   at
org.apache.tapestry5.internal.services.NonPoolingRequestPageCacheImpl.get(NonPoolingRequestPageCacheImpl.java:82)

   at $RequestPageCache_42d7f228d0.get(Unknown Source)

   at $RequestPageCache_42d7f228cb.get(Unknown Source)

   at
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:55)

   at
org.apache.tapestry5.services.TapestryModule$38.handle(TapestryModule.java:)

   at $PageRenderRequestHandler_42d7f228cf.handle(Unknown Source)

   at $PageRenderRequestHandler_42d7f228c9.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 $ComponentR

Re: [5.3.7] Application stops working after some time

2016-02-26 Thread Eugen
Hi,
do You have some session persistencies in the Index page? Is it the time of
SessionTimeout?

2016-02-26 10:47 GMT+01:00 Nathan Quirynen :

> Forgot to say that this error is thrown when trying to access any page.
>
>
>
> On 26/02/16 10:37, Nathan Quirynen wrote:
>
>> Hi,
>>
>> I have a weird problem where an application stops working after some
>> random time. A restart of Tomcat "fixes" it temporarily.
>>
>> Anyone know where the problem could be?
>>
>> [ERROR] ioc.Registry java.lang.ArrayIndexOutOfBoundsException
>> [ERROR] ioc.Registry Operations trace:
>> [ERROR] ioc.Registry [ 1] Constructing instance of page class
>> [hidden].pages.Index
>> [ERROR] ioc.Registry [ 2] Creating ComponentAssembler for
>> [hidden].pages.Index
>> [ERROR] ioc.Registry [ 3] Parsing component template
>> classpath:[hidden]/pages/Index.tml
>> [ERROR] TapestryModule.RequestExceptionHandler Unexpected runtime
>> exception: null
>> 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_42d7f228eb.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_42d7f228ea.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_42d7f228d4.loadPage(Unknown Source)
>>
>>   at
>> org.apache.tapestry5.internal.services.PageSourceImpl.getPage(PageSourceImpl.java:104)
>>
>>   at $PageSource_42d7f228d1.getPage(Unknown Source)
>>
>>   at
>> org.apache.tapestry5.internal.services.NonPoolingRequestPageCacheImpl.get(NonPoolingRequestPageCacheImpl.java:82)
>>
>>   at $RequestPageCache_42d7f228d0.get(Unknown Source)
>>
>>   at $RequestPageCache_42d7f228cb.get(Unknown Source)
>>
>>   at
>> org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:55)
>>
>>   at
>> org.apache.tapestry5.services.TapestryModule$38.handle(TapestryModule.java:)
>>
>>   at $PageRenderRequestHandler_42d7f228cf.handle(Unknown Source)
>>
>>   at $PageRenderRequestHandler_42d7f228c9.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_42d7f228ca.handlePageRender(Unknown Source)
>>
>>   at $ComponentRequestHandler_42d7f22886.handlePageRender(Unknown Source)
>>
>>   at
>> org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)
>>
>>   at $Dispatcher_42d7f22889.dispatch(Unknown Source)
>>
>>   at $Dispatcher_42d7f22882.dispatch(Unknown Source)
>>
>>   at
>> org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:302)
>>
>> 
>>
>>
>
> -
> To unsub

Re: [5.3.7] Application stops working after some time

2016-02-26 Thread Nathan Quirynen

Forgot to say that this error is thrown when trying to access any page.


On 26/02/16 10:37, Nathan Quirynen wrote:

Hi,

I have a weird problem where an application stops working after some 
random time. A restart of Tomcat "fixes" it temporarily.


Anyone know where the problem could be?

[ERROR] ioc.Registry java.lang.ArrayIndexOutOfBoundsException
[ERROR] ioc.Registry Operations trace:
[ERROR] ioc.Registry [ 1] Constructing instance of page class 
[hidden].pages.Index
[ERROR] ioc.Registry [ 2] Creating ComponentAssembler for 
[hidden].pages.Index
[ERROR] ioc.Registry [ 3] Parsing component template 
classpath:[hidden]/pages/Index.tml
[ERROR] TapestryModule.RequestExceptionHandler Unexpected runtime 
exception: null

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_42d7f228eb.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_42d7f228ea.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_42d7f228d4.loadPage(Unknown Source)

  at 
org.apache.tapestry5.internal.services.PageSourceImpl.getPage(PageSourceImpl.java:104)


  at $PageSource_42d7f228d1.getPage(Unknown Source)

  at 
org.apache.tapestry5.internal.services.NonPoolingRequestPageCacheImpl.get(NonPoolingRequestPageCacheImpl.java:82)


  at $RequestPageCache_42d7f228d0.get(Unknown Source)

  at $RequestPageCache_42d7f228cb.get(Unknown Source)

  at 
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:55)


  at 
org.apache.tapestry5.services.TapestryModule$38.handle(TapestryModule.java:)


  at $PageRenderRequestHandler_42d7f228cf.handle(Unknown Source)

  at $PageRenderRequestHandler_42d7f228c9.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_42d7f228ca.handlePageRender(Unknown Source)

  at $ComponentRequestHandler_42d7f22886.handlePageRender(Unknown Source)

  at 
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)


  at $Dispatcher_42d7f22889.dispatch(Unknown Source)

  at $Dispatcher_42d7f22882.dispatch(Unknown Source)

  at 
org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:302)







-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



[5.3.7] Application stops working after some time

2016-02-26 Thread Nathan Quirynen

Hi,

I have a weird problem where an application stops working after some 
random time. A restart of Tomcat "fixes" it temporarily.


Anyone know where the problem could be?

[ERROR] ioc.Registry java.lang.ArrayIndexOutOfBoundsException
[ERROR] ioc.Registry Operations trace:
[ERROR] ioc.Registry [ 1] Constructing instance of page class 
[hidden].pages.Index
[ERROR] ioc.Registry [ 2] Creating ComponentAssembler for 
[hidden].pages.Index
[ERROR] ioc.Registry [ 3] Parsing component template 
classpath:[hidden]/pages/Index.tml
[ERROR] TapestryModule.RequestExceptionHandler Unexpected runtime 
exception: null

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_42d7f228eb.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_42d7f228ea.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_42d7f228d4.loadPage(Unknown Source)

  at 
org.apache.tapestry5.internal.services.PageSourceImpl.getPage(PageSourceImpl.java:104)


  at $PageSource_42d7f228d1.getPage(Unknown Source)

  at 
org.apache.tapestry5.internal.services.NonPoolingRequestPageCacheImpl.get(NonPoolingRequestPageCacheImpl.java:82)


  at $RequestPageCache_42d7f228d0.get(Unknown Source)

  at $RequestPageCache_42d7f228cb.get(Unknown Source)

  at 
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:55)


  at 
org.apache.tapestry5.services.TapestryModule$38.handle(TapestryModule.java:)


  at $PageRenderRequestHandler_42d7f228cf.handle(Unknown Source)

  at $PageRenderRequestHandler_42d7f228c9.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_42d7f228ca.handlePageRender(Unknown Source)

  at $ComponentRequestHandler_42d7f22886.handlePageRender(Unknown Source)

  at 
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)


  at $Dispatcher_42d7f22889.dispatch(Unknown Source)

  at $Dispatcher_42d7f22882.dispatch(Unknown Source)

  at 
org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:302)