Re: exception report

2013-01-08 Thread George Christman
I'd like to also add I'm using the ajaxformloop component. Thanks. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/exception-report-tp5719007p5719210.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: exception report

2013-01-08 Thread George Christman
Hi Howard, I'm now running into a similar issue. Could you explain what you
mean by "serializing the id's of the database entities and not the
serialized versions of the entities themselves"?

This is what I currently have, 

@Entity
public class LineItem implements Serializable {

@Id
@GeneratedValue 
@NonVisual 
@Column(name="lineItemId")
private Long id;

Thanks



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/exception-report-tp5719007p5719209.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: exception report

2013-01-03 Thread Howard Lewis Ship
To be clear, what I was getting at is that you should be serializing the
ids of database entities, not the serialized versions of the entities
themselves.


On Thu, Jan 3, 2013 at 1:37 AM, nhhockeyplayer nashua <
nhhockeypla...@hotmail.com> wrote:

>
>
> well i tried blob and mediumblob... it is a longblob...
> i want to guarantee that the clip a user operates will operate no matter
> the sizebut its nice to be able to see whats actually taking place.the
> performace is adequate
> >Howard Lewis Ship
> Thu, 27 Dec 2012 08:14:28 -0800
> >Have you considered NOT serializing giant blobs of data to the client?
>




-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com


Re: exception report

2012-12-27 Thread Howard Lewis Ship
You probably have a Loop inside a Form; look at the Loop documentation and
determine if and how the Loop and the Form should interact; by default a
Loop inside a Form stores the object iterated over.  It's mean for
Hibernate/JPA entities, where the Loop can use a ValueEncoder to store just
the entity id ... but it often defaults back to serializing the objects,
which is often not what you want.


On Thu, Dec 27, 2012 at 9:18 AM, nhhockeyplayer nashua <
nhhockeypla...@hotmail.com> wrote:

>
> serializing giant blobs of data to the client?
> shit I didnt know I was.
> No wonder I been chasing that damn property higher.
>
> so I remove Serializable from the interface ?
>
> Best regards
> and thanks... KEN
>
> From: nhhockeypla...@hotmail.com
> To: users@tapestry.apache.org
> Subject: RE: exception report
> Date: Thu, 27 Dec 2012 10:39:57 -0500
>
>
>
>
>
> This fixed it
>
> 
> org.mortbay.jetty.Request.maxFormContentSize
> 758122
> 
>
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com


RE: exception report

2012-12-27 Thread nhhockeyplayer nashua

serializing giant blobs of data to the client? 
shit I didnt know I was.
No wonder I been chasing that damn property higher.

so I remove Serializable from the interface ?

Best regards 
and thanks... KEN

From: nhhockeypla...@hotmail.com
To: users@tapestry.apache.org
Subject: RE: exception report
Date: Thu, 27 Dec 2012 10:39:57 -0500





This fixed it


org.mortbay.jetty.Request.maxFormContentSize
758122


  

Re: exception report

2012-12-27 Thread Howard Lewis Ship
Have you considered NOT serializing giant blobs of data to the client?


On Thu, Dec 27, 2012 at 7:52 AM, Cezary Biernacki wrote:

> Yeah i set the breakpoint and it gets triggered... but really nothing to
>> do at that point. And it looks like its coming from tapestry... the
>> IllegalStateException
>>
>
> No, it is clearly coming from Jetty.
> Tapestry just calls standard servlet request API getParameter() method.
>
>
>
>  So you saying my jetty plugin updated itself ?
>>
>
> I believe that the default Maven behaviour is to automatically update
> plugins to the newest version.
>
> Or before your forms were small enough.
>
>
> Cezary
>
>
>
>> Ok here is some more stuff pertaining to your claims...
>>
>> 127.0.0.1 -  -  [27/Dec/2012:14:51:03 +] "GET
>> /tynamo/blob/coach/11/photo HTTP/1.1" 200 123080 "
>> http://localhost:8080/home"; "Mozilla/5.0 (Windows NT 6.1; WOW64;
>> rv:17.0) Gecko/20100101 Firefox/17.0"
>> 127.0.0.1 -  -  [27/Dec/2012:14:51:03 +] "GET
>> /tynamo/blob/coach/5/photo HTTP/1.1" 200 148106 "
>> http://localhost:8080/home"; "Mozilla/5.0 (Windows NT 6.1; WOW64;
>> rv:17.0) Gecko/20100101 Firefox/17.0"
>> 127.0.0.1 -  -  [27/Dec/2012:14:51:03 +] "GET
>> /tynamo/blob/coach/10/photo HTTP/1.1" 200 63676 "
>> http://localhost:8080/home"; "Mozilla/5.0 (Windows NT 6.1; WOW64;
>> rv:17.0) Gecko/20100101 Firefox/17.0"
>> [ERROR] TapestryModule.**RequestExceptionHandler Processing of request
>> failed with uncaught exception: Form too large658122>20
>> java.lang.**IllegalStateException: Form too large658122>20
>>  at org.mortbay.jetty.Request.**extractParameters(Request.**
>> java:1561)
>>  at org.mortbay.jetty.Request.**getParameter(Request.java:859)
>>  at javax.servlet.**ServletRequestWrapper.**getParameter(**
>> ServletRequestWrapper.java:**169)
>>  at org.apache.tapestry5.internal.**services.RequestImpl.**
>> getParameter(RequestImpl.java:**72)
>>  at org.apache.tapestry5.internal.**services.**
>> ComponentEventLinkEncoderImpl.**validateAndConstructComponentE**
>> ventRequest(**ComponentEventLinkEncoderImpl.**java:371)
>>
>
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com


Re: exception report

2012-12-27 Thread Cezary Biernacki

Yeah i set the breakpoint and it gets triggered... but really nothing to do at 
that point. And it looks like its coming from tapestry... the 
IllegalStateException


No, it is clearly coming from Jetty.
Tapestry just calls standard servlet request API getParameter() method.



So you saying my jetty plugin updated itself ?


I believe that the default Maven behaviour is to automatically update 
plugins to the newest version.


Or before your forms were small enough.


Cezary



Ok here is some more stuff pertaining to your claims...

127.0.0.1 -  -  [27/Dec/2012:14:51:03 +] "GET /tynamo/blob/coach/11/photo HTTP/1.1" 200 123080 
"http://localhost:8080/home"; "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 
Firefox/17.0"
127.0.0.1 -  -  [27/Dec/2012:14:51:03 +] "GET /tynamo/blob/coach/5/photo HTTP/1.1" 200 148106 
"http://localhost:8080/home"; "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 
Firefox/17.0"
127.0.0.1 -  -  [27/Dec/2012:14:51:03 +] "GET /tynamo/blob/coach/10/photo HTTP/1.1" 200 63676 
"http://localhost:8080/home"; "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 
Firefox/17.0"
[ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with 
uncaught exception: Form too large658122>20
java.lang.IllegalStateException: Form too large658122>20
 at org.mortbay.jetty.Request.extractParameters(Request.java:1561)
 at org.mortbay.jetty.Request.getParameter(Request.java:859)
 at 
javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:169)
 at 
org.apache.tapestry5.internal.services.RequestImpl.getParameter(RequestImpl.java:72)
 at 
org.apache.tapestry5.internal.services.ComponentEventLinkEncoderImpl.validateAndConstructComponentEventRequest(ComponentEventLinkEncoderImpl.java:371)



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



RE: exception report

2012-12-27 Thread nhhockeyplayer nashua

This fixed it


org.mortbay.jetty.Request.maxFormContentSize
758122

  

RE: exception report

2012-12-27 Thread nhhockeyplayer nashua

Thanks Cezary,

Would you happen to know the configuration?

I am using eclipse helios... maven-3

and I run my apps our of the debug-configurations dialogue from within eclipse.

I am thinking somehow there is a parameter I can specify somehow within the 
debug configuration for the maven project.

Or instrument the maven pom itself for the project somehow ?

Best regards 
and thanks... KEN

From: nhhockeypla...@hotmail.com
To: users@tapestry.apache.org
Subject: RE: exception report
Date: Thu, 27 Dec 2012 09:58:51 -0500





Ok I am rendering a gallery of 24 objects... sizable BLOB's with huge photo 
images up to 30mb plys.

Why would there be restrictions on my form size ?

And how and where do I configure such a constraint?

Best regards 
and thanks... KEN

From: nhhockeypla...@hotmail.com
To: users@tapestry.apache.org
Subject: RE: exception report
Date: Thu, 27 Dec 2012 09:56:39 -0500





Thanks Cezary,

Yeah i set the breakpoint and it gets triggered... but really nothing to do at 
that point. And it looks like its coming from tapestry... the 
IllegalStateException

So you saying my jetty plugin updated itself ?

Ok here is some more stuff pertaining to your claims...

127.0.0.1 -  -  [27/Dec/2012:14:51:03 +] "GET /tynamo/blob/coach/11/photo 
HTTP/1.1" 200 123080 "http://localhost:8080/home"; "Mozilla/5.0 (Windows NT 6.1; 
WOW64; rv:17.0) Gecko/20100101 Firefox/17.0"
127.0.0.1 -  -  [27/Dec/2012:14:51:03 +] "GET /tynamo/blob/coach/5/photo 
HTTP/1.1" 200 148106 "http://localhost:8080/home"; "Mozilla/5.0 (Windows NT 6.1; 
WOW64; rv:17.0) Gecko/20100101 Firefox/17.0"
127.0.0.1 -  -  [27/Dec/2012:14:51:03 +] "GET /tynamo/blob/coach/10/photo 
HTTP/1.1" 200 63676 "http://localhost:8080/home"; "Mozilla/5.0 (Windows NT 6.1; 
WOW64; rv:17.0) Gecko/20100101 Firefox/17.0"
[ERROR] TapestryModule.RequestExceptionHandler Processing of request failed 
with uncaught exception: Form too large658122>20
java.lang.IllegalStateException: Form too large658122>20
at org.mortbay.jetty.Request.extractParameters(Request.java:1561)
at org.mortbay.jetty.Request.getParameter(Request.java:859)
at 
javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:169)
at 
org.apache.tapestry5.internal.services.RequestImpl.getParameter(RequestImpl.java:72)
at 
org.apache.tapestry5.internal.services.ComponentEventLinkEncoderImpl.validateAndConstructComponentEventRequest(ComponentEventLinkEncoderImpl.java:371)
at 
org.apache.tapestry5.internal.services.ComponentEventLinkEncoderImpl.decodeComponentEventRequest(ComponentEventLinkEncoderImpl.java:329)
at 
org.apache.tapestry5.internal.services.linktransform.LinkTransformerInterceptor.decodeComponentEventRequest(LinkTransformerInterceptor.java:58)
at 
$ComponentEventLinkEncoder_482c33ee18a9.decodeComponentEventRequest(Unknown 
Source)
at 
org.apache.tapestry5.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:42)
at $Dispatcher_482c33ee18aa.dispatch(Unknown Source)
at $Dispatcher_482c33ee18a2.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_482c33ee18a3.service(Unknown Source)
at 
org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:902)
at $RequestHandler_482c33ee18a3.service(Unknown Source)
at 
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:892)
at $RequestHandler_482c33ee18a3.service(Unknown Source)
at 
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90)
at $RequestHandler_482c33ee18a3.service(Unknown Source)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:105)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:95)
at 
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:119)
at $RequestHandler_482c33ee18a3.service(Unknown Source)
at $RequestHandler_482c33ee1871.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_482c33ee1873.service(Unknown Source)
at 
org.tynamo.security.services.impl.SecurityConfiguration$1.call(SecurityConfiguration.java:58)
at 
org.tynamo.security.services.impl.SecurityConfiguration$1.call(SecurityConfiguration.jav

RE: exception report

2012-12-27 Thread nhhockeyplayer nashua

Ok I am rendering a gallery of 24 objects... sizable BLOB's with huge photo 
images up to 30mb plys.

Why would there be restrictions on my form size ?

And how and where do I configure such a constraint?

Best regards 
and thanks... KEN

From: nhhockeypla...@hotmail.com
To: users@tapestry.apache.org
Subject: RE: exception report
Date: Thu, 27 Dec 2012 09:56:39 -0500





Thanks Cezary,

Yeah i set the breakpoint and it gets triggered... but really nothing to do at 
that point. And it looks like its coming from tapestry... the 
IllegalStateException

So you saying my jetty plugin updated itself ?

Ok here is some more stuff pertaining to your claims...

127.0.0.1 -  -  [27/Dec/2012:14:51:03 +] "GET /tynamo/blob/coach/11/photo 
HTTP/1.1" 200 123080 "http://localhost:8080/home"; "Mozilla/5.0 (Windows NT 6.1; 
WOW64; rv:17.0) Gecko/20100101 Firefox/17.0"
127.0.0.1 -  -  [27/Dec/2012:14:51:03 +] "GET /tynamo/blob/coach/5/photo 
HTTP/1.1" 200 148106 "http://localhost:8080/home"; "Mozilla/5.0 (Windows NT 6.1; 
WOW64; rv:17.0) Gecko/20100101 Firefox/17.0"
127.0.0.1 -  -  [27/Dec/2012:14:51:03 +] "GET /tynamo/blob/coach/10/photo 
HTTP/1.1" 200 63676 "http://localhost:8080/home"; "Mozilla/5.0 (Windows NT 6.1; 
WOW64; rv:17.0) Gecko/20100101 Firefox/17.0"
[ERROR] TapestryModule.RequestExceptionHandler Processing of request failed 
with uncaught exception: Form too large658122>20
java.lang.IllegalStateException: Form too large658122>20
at org.mortbay.jetty.Request.extractParameters(Request.java:1561)
at org.mortbay.jetty.Request.getParameter(Request.java:859)
at 
javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:169)
at 
org.apache.tapestry5.internal.services.RequestImpl.getParameter(RequestImpl.java:72)
at 
org.apache.tapestry5.internal.services.ComponentEventLinkEncoderImpl.validateAndConstructComponentEventRequest(ComponentEventLinkEncoderImpl.java:371)
at 
org.apache.tapestry5.internal.services.ComponentEventLinkEncoderImpl.decodeComponentEventRequest(ComponentEventLinkEncoderImpl.java:329)
at 
org.apache.tapestry5.internal.services.linktransform.LinkTransformerInterceptor.decodeComponentEventRequest(LinkTransformerInterceptor.java:58)
at 
$ComponentEventLinkEncoder_482c33ee18a9.decodeComponentEventRequest(Unknown 
Source)
at 
org.apache.tapestry5.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:42)
at $Dispatcher_482c33ee18aa.dispatch(Unknown Source)
at $Dispatcher_482c33ee18a2.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_482c33ee18a3.service(Unknown Source)
at 
org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:902)
at $RequestHandler_482c33ee18a3.service(Unknown Source)
at 
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:892)
at $RequestHandler_482c33ee18a3.service(Unknown Source)
at 
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90)
at $RequestHandler_482c33ee18a3.service(Unknown Source)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:105)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:95)
at 
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:119)
at $RequestHandler_482c33ee18a3.service(Unknown Source)
at $RequestHandler_482c33ee1871.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_482c33ee1873.service(Unknown Source)
at 
org.tynamo.security.services.impl.SecurityConfiguration$1.call(SecurityConfiguration.java:58)
at 
org.tynamo.security.services.impl.SecurityConfiguration$1.call(SecurityConfiguration.java:53)
at 
org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at 
org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at 
org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:380)
at 
org.tynamo.security.services.impl.SecurityConfiguration.service(SecurityConfiguration.java:53)
at $HttpServletRequestFilter_482c33ee186e.service(Unknown Source)
at $HttpServletRequestHandler_482c33ee1873.service(Unknown Source)
at 
org.apache.tapestry5.upload.

RE: exception report

2012-12-27 Thread nhhockeyplayer nashua

Thanks Cezary,

Yeah i set the breakpoint and it gets triggered... but really nothing to do at 
that point. And it looks like its coming from tapestry... the 
IllegalStateException

So you saying my jetty plugin updated itself ?

Ok here is some more stuff pertaining to your claims...

127.0.0.1 -  -  [27/Dec/2012:14:51:03 +] "GET /tynamo/blob/coach/11/photo 
HTTP/1.1" 200 123080 "http://localhost:8080/home"; "Mozilla/5.0 (Windows NT 6.1; 
WOW64; rv:17.0) Gecko/20100101 Firefox/17.0"
127.0.0.1 -  -  [27/Dec/2012:14:51:03 +] "GET /tynamo/blob/coach/5/photo 
HTTP/1.1" 200 148106 "http://localhost:8080/home"; "Mozilla/5.0 (Windows NT 6.1; 
WOW64; rv:17.0) Gecko/20100101 Firefox/17.0"
127.0.0.1 -  -  [27/Dec/2012:14:51:03 +] "GET /tynamo/blob/coach/10/photo 
HTTP/1.1" 200 63676 "http://localhost:8080/home"; "Mozilla/5.0 (Windows NT 6.1; 
WOW64; rv:17.0) Gecko/20100101 Firefox/17.0"
[ERROR] TapestryModule.RequestExceptionHandler Processing of request failed 
with uncaught exception: Form too large658122>20
java.lang.IllegalStateException: Form too large658122>20
at org.mortbay.jetty.Request.extractParameters(Request.java:1561)
at org.mortbay.jetty.Request.getParameter(Request.java:859)
at 
javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:169)
at 
org.apache.tapestry5.internal.services.RequestImpl.getParameter(RequestImpl.java:72)
at 
org.apache.tapestry5.internal.services.ComponentEventLinkEncoderImpl.validateAndConstructComponentEventRequest(ComponentEventLinkEncoderImpl.java:371)
at 
org.apache.tapestry5.internal.services.ComponentEventLinkEncoderImpl.decodeComponentEventRequest(ComponentEventLinkEncoderImpl.java:329)
at 
org.apache.tapestry5.internal.services.linktransform.LinkTransformerInterceptor.decodeComponentEventRequest(LinkTransformerInterceptor.java:58)
at 
$ComponentEventLinkEncoder_482c33ee18a9.decodeComponentEventRequest(Unknown 
Source)
at 
org.apache.tapestry5.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:42)
at $Dispatcher_482c33ee18aa.dispatch(Unknown Source)
at $Dispatcher_482c33ee18a2.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_482c33ee18a3.service(Unknown Source)
at 
org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:902)
at $RequestHandler_482c33ee18a3.service(Unknown Source)
at 
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:892)
at $RequestHandler_482c33ee18a3.service(Unknown Source)
at 
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90)
at $RequestHandler_482c33ee18a3.service(Unknown Source)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:105)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:95)
at 
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:119)
at $RequestHandler_482c33ee18a3.service(Unknown Source)
at $RequestHandler_482c33ee1871.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_482c33ee1873.service(Unknown Source)
at 
org.tynamo.security.services.impl.SecurityConfiguration$1.call(SecurityConfiguration.java:58)
at 
org.tynamo.security.services.impl.SecurityConfiguration$1.call(SecurityConfiguration.java:53)
at 
org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at 
org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at 
org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:380)
at 
org.tynamo.security.services.impl.SecurityConfiguration.service(SecurityConfiguration.java:53)
at $HttpServletRequestFilter_482c33ee186e.service(Unknown Source)
at $HttpServletRequestHandler_482c33ee1873.service(Unknown Source)
at 
org.apache.tapestry5.upload.internal.services.MultipartServletRequestFilter.service(MultipartServletRequestFilter.java:44)
at $HttpServletRequestHandler_482c33ee1873.service(Unknown Source)
at 
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
at $HttpServletRequestFilter_482c33ee186f.service(Unknown Source)
at $HttpServletRequestHandler_482c33ee1873.service(Unknown Source)
at 
org.apache.tapestry5.services.TapestryModule$1.service(TapestryModule.java:852)
at

Re: exception report

2012-12-27 Thread Neil Pierson
Unsubscribe. 



On Dec 27, 2012, at 8:07 AM, nhhockeyplayer nashua  
wrote:

> 
> it would be nice if I knew WHICH parameter
> 

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



Re: exception report

2012-12-27 Thread Cezary Biernacki

it would be nice if I knew WHICH parameter


Probably 't:component-trace', but I believe it would fail for any parameter.
I am not sure what is happening, but my guess is that your Jetty was 
recently upgraded,
and now fails during parameter extraction (are your POSTed forms 
relatively large, e.g. more than 1000 parameters?).


Probably Tapestry first gets an IllegalStateException trying to get 
parameters during normal rendering
than again NullPointerException (because Jetty does not properly sets 
internal request state after previous exception)

during rendering the exception page.

To check whether my speculations are correct, try setting a breakpoint 
triggered by throwing IllegalStateException

and see if Jetty throws one.

Best regards,
Cezary




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



RE: exception report

2012-12-27 Thread nhhockeyplayer nashua

it would be nice if I knew WHICH parameter
  

Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread Thiago H. de Paula Figueiredo

On Mon, 30 Apr 2012 21:58:59 -0300, TechniciuM  wrote:


Hi Thiago.


Hi!

Suprisingly I have been left with some old Hibernate libs in my stack,  
so I had to delete them manually as they haven't been seen by my IDE. I  
have done it, but the issue persists, but I have got a couple of issues  
here that I
wanted to share with you, and I think are the main reason why my app  
fails to process it in the right way.

This is the the new log
http://shrib.com/GebWbwlN


As you could already see for yourself, the exact same error happened. You  
still have a mismatch of Hibernate JARs in your classpath. This isn't  
related to Tapestry at all, so I think this thread should end here.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread TechniciuM
Hi Thiago.

Suprisingly I have been left with some old Hibernate libs in my stack, so I
had to delete them manually as they haven't been seen by my IDE. I have done
it, but the issue persists, but I have got a couple of issues here that I
wanted to share with you, and I think are the main reason why my app fails
to process it in the right way.

This is the the new log 

http://shrib.com/GebWbwlN

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5677252.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread Thiago H. de Paula Figueiredo

On Mon, 30 Apr 2012 18:58:57 -0300, TechniciuM  wrote:


This is what I wanted at first to post :
http://shrib.com/902LeAu6


java.lang.IncompatibleClassChangeError: org/hibernate/cfg/ExtendedMappings
	at  
org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings(AnnotationConfiguration.java:182)


Again, most probably incompatible Hibernate JAR versions.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread TechniciuM
This is what I wanted at first to post :

http://shrib.com/902LeAu6

This is my issue.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5677101.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread TechniciuM
Lol :) I couldn't see I didn't close the listener tag. :D

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5677078.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread Kalle Korhonen
And from the same log:

Caused by: org.dom4j.DocumentException: Error on line 32 of document
: Element type "listener" must be followed by either attribute
specifications, ">" or "/>". Nested exception: Element type "listener"
must be followed by either attribute specifications, ">" or "/>".
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2208)
... 176 more

do read the error messages.

Kalle

On Mon, Apr 30, 2012 at 2:39 PM, TechniciuM  wrote:
> But why is that? Do I have to make my own service in order that to work? So
> far my xml was parsing just fine, but when I implemented the entities like I
> did, it throws me that exception.
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5677063.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>

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



Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread TechniciuM
But why is that? Do I have to make my own service in order that to work? So
far my xml was parsing just fine, but when I implemented the entities like I
did, it throws me that exception.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5677063.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread Thiago H. de Paula Figueiredo

On Mon, 30 Apr 2012 18:10:10 -0300, TechniciuM  wrote:


This is the log of my Tomcat server, Thiago, http://shrib.com/45eMiypR .


It's quite obvious what the problem is in the log:

Caused by: java.lang.RuntimeException: Exception constructing service  
'HibernateSessionSource': Error invoking service builder method  
org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionSource(Logger,  
List, RegistryShutdownHub) (at HibernateCoreModule.java:123) (for service  
'HibernateSessionSource'): Could not parse configuration:  
/hibernate.cfg.xml


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread TechniciuM
This is the log of my Tomcat server, Thiago, http://shrib.com/45eMiypR .



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5677005.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread Thiago H. de Paula Figueiredo

On Mon, 30 Apr 2012 15:29:24 -0300, TechniciuM  wrote:

I run it using NetBeans IDE. Apache Tomcat is added to the server list.  
When I start the project, it is automatically built.


So the Tomcat log is probably sent to the NetBeans console. You should  
take a look there.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread TechniciuM
I run it using NetBeans IDE. Apache Tomcat is added to the server list. When
I start the project, it is automatically built. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5676579.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread Thiago H. de Paula Figueiredo

On Mon, 30 Apr 2012 14:45:01 -0300, TechniciuM  wrote:


@Thiago
I have 4 logs here from my Apache Tomcat server. Is that what you need?


No. I want the console or log, but just the part containing the full stack  
trace of the problem and nothing more. How do you run your Tomcat while  
developing, by the way?


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread TechniciuM
It all goes fine untill I implemented that Fruits extends Article. That's
where it stopped and shows me that kind of exception. I am using Tap 5.2.(
all taps liba ) and Hibernate 3.6.0 (Hibernate core 3.6.0, Hibernate JPA 2.0
Final, Hibernate c3p0 3.6.0, Hibernate annotations 3.2.0 ).


@Thiago

I have 4 logs here from my Apache Tomcat server. Is that what you need?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5676497.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread Kalle Korhonen
On Mon, Apr 30, 2012 at 9:33 AM, TechniciuM  wrote:
> The thing is I don't think JARs are mixed. Main reason for this behavior

Which versions of T5 and Hibernate are you using? I don't think it has
anything to do with your entities but the IncompatibleClassChangeError
you see in the trace.

Kalle

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



Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread Thiago H. de Paula Figueiredo

On Mon, 30 Apr 2012 13:33:36 -0300, TechniciuM  wrote:


So the main reason is I think the inheritance, ie I am not using extended
mapping. What do you think, Thiago?


Without the full stack trace from the console or log, I can't say  
anything. ;)


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread TechniciuM
The thing is I don't think JARs are mixed. Main reason for this behavior
could be possibly find in the following scenario:
When I implemented this like inheritance:
@Entity
@Table(name = "Article")
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class Articleimplements Serializable
{
@Id @GeneratedValue(strategy=GenerationType.AUTO)
@Basic(optional = false)
@Column(name = "ART_ID")
private Long id;
   
@Basic(optional = false)
@Column(name = "ART_NAME")
private String name;
   
@Basic(optional = true)
@Column(name = "ART_COST")
private double cost;
   
@Basic(optional = true)
@Column(name = "ART_DESC")
private String description;
   
@Basic(optional = true)
@Column(name = "ART_IMG")
private String image;
...

@Entity
@Table(name="Fruits")
@AttributeOverrides({
@AttributeOverride(name="name", column=@Column(name="ART_NAME")),
@AttributeOverride(name="cost", column=@Column(name="ART_COST")),
@AttributeOverride(name="description", column=@Column(name="ART_DESC")),
@AttributeOverride(name="image", column=@Column(name="ART_IMG"))
})
@IdClass(Article.class)

public class Fruits extends Article {
   
   
@Id @GeneratedValue(strategy=GenerationType.IDENTITY)
@Basic(optional = false)
@Column(name = "FRU_ID")
private long fruitID;
   
@Basic(optional = false)
@Column(name = "FRU_FROZEN")
private String fruitFrozen;

and I wanted to list all the fruits, like this 

public class ShowFruits
{
@Persist(value="flash")
@Property
private String tag;

@Property
private Fruits fruit;

@Property
private Article article;

   
   
@Inject
private Session _hibernate;

@SessionState
@Property
private Korisnik _User;

@Property
private boolean _ifUSerExists;

@InjectPage
private ShowFruits _showFruits;


/**
 * Returns the list of the fruits articles
 * @return list
 */
public List getFruits()
{
List l;
if(tag == null || tag.isEmpty())
l = _hibernate.createCriteria(Fruit.class).list();
else
l = _hibernate.createCriteria(Fruit.class)
.add(Restrictions.like("tags", tag,
MatchMode.ANYWHERE)).list();
System.out.println(l.size());
return l;
}

/**
 * Sets tag
 * @param tag tag
 */
public void setData(String tag)
{
this.tag = tag;
}


/**
 * Returns the image
 * @return image path
 */
public String getImagePath()
{
if(fruit.getImage() == null || fruit.getImage().isEmpty())
return "gfx/no_image.jpg";
return "gfx/"+fruit.getImage();
}


and the showFruits.tml

http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>



${fruit.name}

Re: Exception report Tapestry + Hibernate HTTP 500

2012-04-30 Thread Thiago H. de Paula Figueiredo

Hi!

Please get the stack trace from the console or log instead of the Tapestry  
page error. In addition, it looks like you have mixed Hibernate JAR  
versions.




Error invoking service builder method
org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionSource(Logger,
List, RegistryShutdownHub) (at HibernateCoreModule.java:123) (for service
'HibernateSessionSource'): org/hibernate/cfg/ExtendedMappings [at
classpath:org/apache/tapestry5/corelib/components/ExceptionDisplay.tml,  
line

3]


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: Exception Report must not contain a form

2011-12-06 Thread Stephan Windmüller
On 06.12.2011 13:09, Muhammad Gelbana wrote:

> What version of tapestry is that ?
> Would you kindly state tapestry's version in the subject ? :)

I'm sorry. The Tapestry version here is 5.2.6.

Regards
 Stephan



signature.asc
Description: OpenPGP digital signature


Re: Exception Report must not contain a form

2011-12-06 Thread Muhammad Gelbana
What version of tapestry is that ?
Would you kindly state tapestry's version in the subject ? :)

Thanks.

On Tue, Dec 6, 2011 at 1:20 AM, Alejandro Scandroli <
alejandroscandr...@gmail.com> wrote:

> I have seen this "Form components may not be placed inside other Form
> components."  error way too many times.
> The problem is that your ExceptionReport page has a form that is
> trying to add a new FormSupport to the environment but there is one
> already there.
> The FormSupport that is already on the environment is from the form
> that failed and threw exception.
>
> If you can't avoid having a form in your ExceptionReport page you can
> try adding a fail safe to revert back to Tapestry's default
> ExceptionReport when there is an exception in the exception page.
>
> I've just filed JIRA issue
> (http://jira.codehaus.org/browse/TYNAMO-107) to fix this in Tynamo's
> tapestry-exceptionpage.
> The patch is just around the corner.
>
> Cheers.
> Alejandro.
>
>
>
> On Mon, Dec 5, 2011 at 10:23 AM, Stephan Windmüller
>  wrote:
> > On 30.11.2011 15:55, I wrote:
> >
> >> However, now the ExceptionReport page itself throws an exception when
> >> the orginal exception occurs on a page which already has a form:
> >
> > Does anybody have an idea why this is happening or how I can fix it?
> >
> > Regards
> >  Stephan
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
*Regards,*
*Muhammad Gelbana
Java Developer*


Re: Exception Report must not contain a form

2011-12-06 Thread Stephan Windmüller
On 06.12.2011 00:20, Alejandro Scandroli wrote:

> I have seen this "Form components may not be placed inside other Form
> components."  error way too many times.
> The problem is that your ExceptionReport page has a form that is
> trying to add a new FormSupport to the environment but there is one
> already there.
> The FormSupport that is already on the environment is from the form
> that failed and threw exception.

Thanks for the tip, I solved it for now with this code in the
ExceptionReport page:

| void setupRender() {
|   if (environment.peek(FormSupport.class) != null) {
| environment.pop(FormSupport.class);
|   }
| }

- Stephan



signature.asc
Description: OpenPGP digital signature


Re: Exception Report must not contain a form

2011-12-05 Thread Alejandro Scandroli
I have seen this "Form components may not be placed inside other Form
components."  error way too many times.
The problem is that your ExceptionReport page has a form that is
trying to add a new FormSupport to the environment but there is one
already there.
The FormSupport that is already on the environment is from the form
that failed and threw exception.

If you can't avoid having a form in your ExceptionReport page you can
try adding a fail safe to revert back to Tapestry's default
ExceptionReport when there is an exception in the exception page.

I've just filed JIRA issue
(http://jira.codehaus.org/browse/TYNAMO-107) to fix this in Tynamo's
tapestry-exceptionpage.
The patch is just around the corner.

Cheers.
Alejandro.



On Mon, Dec 5, 2011 at 10:23 AM, Stephan Windmüller
 wrote:
> On 30.11.2011 15:55, I wrote:
>
>> However, now the ExceptionReport page itself throws an exception when
>> the orginal exception occurs on a page which already has a form:
>
> Does anybody have an idea why this is happening or how I can fix it?
>
> Regards
>  Stephan
>

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



Re: Exception Report must not contain a form

2011-12-05 Thread Stephan Windmüller
On 30.11.2011 15:55, I wrote:

> However, now the ExceptionReport page itself throws an exception when
> the orginal exception occurs on a page which already has a form:

Does anybody have an idea why this is happening or how I can fix it?

Regards
 Stephan



signature.asc
Description: OpenPGP digital signature