You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by zack1403 <za...@gmail.com> on 2009/07/24 19:27:03 UTC

Intermittent Stax Exception

This issue is popping up randomly on my production app and I cant relate it
to any change.  The exception is also deep rooted in tapestry.  I can post
code if necessary but it is a very simple isolated page and the exception is
occurring at line 1 of the tml.  Any ideas?

Exception: http://pastebin.com/m757f075b

Thanks in advance,
Zack
-- 
View this message in context: http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p24648581.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: Intermittent Stax Exception

Posted by zack1403 <za...@gmail.com>.
Thanks for the points felix.  The real issue is that the exception is
intermittent.  I've closed the bug 2 times only to be opened again when
customers start calling. The page is incredibly simple and I can safely say
everything is split up as much as possible.  Its a simple unsubscribe page
very disconnected from the rest of the app. All my machines are on java 6.
Luckily I dont work on any non unix based systems so case sensitivity is not
an issue.

Is there still no way to turn off live class reloading?

Thanks again,
Zack


Felix Gonschorek-2 wrote:
> 
> hi zack,
> 
> i'am very sorry to hear that it was'nt possible to find a solution and
> that you 
> are going to switch the framework. we've had problems too but luckily we
> were 
> able to solve them all so far.
> 
> since we are using tapestry we are way more productive than with other 
> frameworks or technologies before - i wish you could tell the same.
> 
> here are some more tipps:
> 
> - somtimes the page or page class rewriting fails - mostly if you access 
> services, session state object or symbols in event methods in nested
> method 
> calls. in these cases i divide and remove parts from the code until it
> starts to 
> work again and then i split up the method calls in several lines like:
> 
> before:
> boolean result = myService1.serviceCall1(myOhterService2.serviceCall2());
> 
> after:
> Bean b = myOtherService2.serviceCall2();
> boolean result = myService1.serviceCall1(b);
> 
> - make absolutely sure, that you have the right dependencies in your path
> (maven 
> dependency tree).
> 
> - use the latest jdk version
> 
> - since you posted a stack trace with filesystem related problems before:
> check 
> the lower/UPPER case names of files (classes/tml/gfx). we have people over
> here 
> working with windows and since the windows filesystems don't make a
> differeence 
> between uppper and lower case problems occur first on unix machines.
> 
> I am sure that you already knew my points, but maybe you missed one.
> 
> I hope that you will finally find a solution.
> 
> 
> Felix
> 

-- 
View this message in context: http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p25051435.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: Intermittent Stax Exception

Posted by Felix Gonschorek <fe...@ggmedia.net>.
hi zack,

i'am very sorry to hear that it was'nt possible to find a solution and that you 
are going to switch the framework. we've had problems too but luckily we were 
able to solve them all so far.

since we are using tapestry we are way more productive than with other 
frameworks or technologies before - i wish you could tell the same.

here are some more tipps:

- somtimes the page or page class rewriting fails - mostly if you access 
services, session state object or symbols in event methods in nested method 
calls. in these cases i divide and remove parts from the code until it starts to 
work again and then i split up the method calls in several lines like:

before:
boolean result = myService1.serviceCall1(myOhterService2.serviceCall2());

after:
Bean b = myOtherService2.serviceCall2();
boolean result = myService1.serviceCall1(b);

- make absolutely sure, that you have the right dependencies in your path (maven 
dependency tree).

- use the latest jdk version

- since you posted a stack trace with filesystem related problems before: check 
the lower/UPPER case names of files (classes/tml/gfx). we have people over here 
working with windows and since the windows filesystems don't make a differeence 
between uppper and lower case problems occur first on unix machines.

I am sure that you already knew my points, but maybe you missed one.

I hope that you will finally find a solution.


Felix



zack1403 schrieb:
> Ummm alright well I guess this is just a bug? We are switching the site
> slowly back over to a more mature framework without all the bugs.  I am
> having to rewrite this isolated page in php to get it working in the mean
> time.  I guess I bet on the wrong horse with tapestry.
> 
> Zack

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


Re: Intermittent Stax Exception

Posted by zack1403 <za...@gmail.com>.
Ummm alright well I guess this is just a bug? We are switching the site
slowly back over to a more mature framework without all the bugs.  I am
having to rewrite this isolated page in php to get it working in the mean
time.  I guess I bet on the wrong horse with tapestry.

Zack
-- 
View this message in context: http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p25049792.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: Intermittent Stax Exception

Posted by zack1403 <za...@gmail.com>.
Thanks for the help felix!  I regularly check the dependency hierarchy to
make sure there are not any big conflicts.  Commons-collections is
conflicted but thats it.  Nothing in woodstox or javassist.  I have had so
many issues like this lately with tapestry.  Its incredibly annoying and
time wasting.

Zack


Did you check that you don't have any dependencies which override tapestry 
dependencies? i had several time problems with woodstox and javassist when
there 
where wrong (mostly older) versions resolved (versions differing from
tapestry's 
(transitive) dependencies). the maven tree dependencies view in the eclipse 
m2eclipse plugin always helped me to solve the problems - i excluded the 
dependencies from other artifacts.


felix

-- 
View this message in context: http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p24867903.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: Intermittent Stax Exception

Posted by Felix Gonschorek <fe...@ggmedia.net>.
Did you check that you don't have any dependencies which override tapestry 
dependencies? i had several time problems with woodstox and javassist when there 
where wrong (mostly older) versions resolved (versions differing from tapestry's 
(transitive) dependencies). the maven tree dependencies view in the eclipse 
m2eclipse plugin always helped me to solve the problems - i excluded the 
dependencies from other artifacts.


felix

zack1403 schrieb:
> Hey guys this has actually become a big issue as it is breaking a substantial
> part of our app.  There is not a single line of my code in the trace.  Ive
> tried upgrading to the most recent snapshot with the same results.  It
> really looks like its a problem with woodstox.  Can anyone help me out?
> 
> Zack
> 
> 
> zack1403 wrote:
>> I am actually able to reproduce one situation where it shows up.  If I
>> modify the source of ViewEmail.tml the exception shows up.  A restart
>> promptly fixes it.  This is just one instance, as it will show up from
>> time to time on production which is not being modified.  
>>
>> I'm not sure it is an issue with the file system as it is showing up on
>> multiple machines and containers.  The example described above is using
>> the jetty:run goal and my production machine is using Tomcat.  Is it
>> possible Stax is trying to something funky and causing that exception?
>>
>> Zack
>>
>>
> 

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


Re: Intermittent Stax Exception

Posted by zack1403 <za...@gmail.com>.
Hey guys this has actually become a big issue as it is breaking a substantial
part of our app.  There is not a single line of my code in the trace.  Ive
tried upgrading to the most recent snapshot with the same results.  It
really looks like its a problem with woodstox.  Can anyone help me out?

Zack


zack1403 wrote:
> 
> I am actually able to reproduce one situation where it shows up.  If I
> modify the source of ViewEmail.tml the exception shows up.  A restart
> promptly fixes it.  This is just one instance, as it will show up from
> time to time on production which is not being modified.  
> 
> I'm not sure it is an issue with the file system as it is showing up on
> multiple machines and containers.  The example described above is using
> the jetty:run goal and my production machine is using Tomcat.  Is it
> possible Stax is trying to something funky and causing that exception?
> 
> Zack
> 
> 

-- 
View this message in context: http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p24851235.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: Intermittent Stax Exception

Posted by zack1403 <za...@gmail.com>.
I am actually able to reproduce one situation where it shows up.  If I modify
the source of ViewEmail.tml the exception shows up.  A restart promptly
fixes it.  This is just one instance, as it will show up from time to time
on production which is not being modified.  

I'm not sure it is an issue with the file system as it is showing up on
multiple machines and containers.  The example described above is using the
jetty:run goal and my production machine is using Tomcat.  Is it possible
Stax is trying to something funky and causing that exception?

Zack


Thiago H. de Paula Figueiredo wrote:
> 
> Em Fri, 24 Jul 2009 14:27:03 -0300, zack1403 <za...@gmail.com>  
> escreveu:
> 
>> This issue is popping up randomly on my production app and I cant relate  
>> it to any change.  The exception is also deep rooted in tapestry.  I can  
>> post code if necessary but it is a very simple isolated page and the  
>> exception is occurring at line 1 of the tml.  Any ideas?
> 
> Caused by: java.lang.NullPointerException
> 	at java.io.UnixFileSystem.resolve(UnixFileSystem.java:92)
> 	at java.io.UnixFileSystem.resolve(UnixFileSystem.java:118)
> 	at java.io.File.getAbsolutePath(File.java:501)
> 
> The exception root is inside a Java class and it surely looks like a file  
> system issue.
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p24648952.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: Intermittent Stax Exception

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Fri, 24 Jul 2009 14:27:03 -0300, zack1403 <za...@gmail.com>  
escreveu:

> This issue is popping up randomly on my production app and I cant relate  
> it to any change.  The exception is also deep rooted in tapestry.  I can  
> post code if necessary but it is a very simple isolated page and the  
> exception is occurring at line 1 of the tml.  Any ideas?

Caused by: java.lang.NullPointerException
	at java.io.UnixFileSystem.resolve(UnixFileSystem.java:92)
	at java.io.UnixFileSystem.resolve(UnixFileSystem.java:118)
	at java.io.File.getAbsolutePath(File.java:501)

The exception root is inside a Java class and it surely looks like a file  
system issue.

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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


Re: Intermittent Stax Exception

Posted by Otho <ta...@googlemail.com>.
Sounds like it. But then again it seems to only occur on a certain page.

Mind posting the code? Is there a large object tree pulled in? Or do you
have a SessionState object in your page which grows and gets referenced too
long?


2009/8/19 martijn.list <ma...@gmail.com>

> Could the NPE be caused by an out-of-memory? A NPE can sometimes be thrown
> on an out of memory.
>
> Martijn
>
>
> zack1403 wrote:
>
>> The page works fine for ~24 hours before this exception starts to show up.
>> If
>> the user.home property was not set it would probably error out first
>> thing. I am not setting it anywhere else either.
>>
>> Thanks,
>> Zack
>>
>>
>> martijn.list wrote:
>>
>>> Afaics resolve only throws a NullPointerException when either parent or
>>> child is null. The line numbers from the Stack trace do not exactly line up
>>> with my Java so I don't know at what line the exception actually occurs. I
>>> don't think child can be null because it is is the result of File.getPath().
>>> So, parent must be null (I guess :). That would suggest that
>>> System.getProperty("user.dir") returns null (this is the parent from the
>>> overloaded resolve(File f)).
>>>
>>> Just a wild guess
>>>
>>> Could it be that somewhere, somehow inside your code or code from a
>>> library user.dir is set to null?
>>>
>>> Martijn Brinkers
>>>
>>> --
>>> Djigzo open source email encryption
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>>>
>>
>
> --
> Djigzo open source email encryption
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Intermittent Stax Exception

Posted by "martijn.list" <ma...@gmail.com>.
Could the NPE be caused by an out-of-memory? A NPE can sometimes be 
thrown on an out of memory.

Martijn

zack1403 wrote:
> The page works fine for ~24 hours before this exception starts to show up. If
> the user.home property was not set it would probably error out first thing. 
> I am not setting it anywhere else either.
> 
> Thanks,
> Zack
> 
> 
> martijn.list wrote:
>> Afaics resolve only throws a NullPointerException when either parent or 
>> child is null. The line numbers from the Stack trace do not exactly line 
>> up with my Java so I don't know at what line the exception actually 
>> occurs. I don't think child can be null because it is is the result of 
>> File.getPath(). So, parent must be null (I guess :). That would suggest 
>> that System.getProperty("user.dir") returns null (this is the parent 
>> from the overloaded resolve(File f)).
>>
>> Just a wild guess
>>
>> Could it be that somewhere, somehow inside your code or code from a 
>> library user.dir is set to null?
>>
>> Martijn Brinkers
>>
>> -- 
>> Djigzo open source email encryption
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
> 


-- 
Djigzo open source email encryption

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


Re: Intermittent Stax Exception

Posted by zack1403 <za...@gmail.com>.
Yes


martijn.list wrote:
> 
> Is your application the only web application running in the Servlet 
> container?
> 
> Martijn
> 
> 

-- 
View this message in context: http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p25051825.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: Intermittent Stax Exception

Posted by "martijn.list" <ma...@gmail.com>.
Is your application the only web application running in the Servlet 
container?

Martijn

zack1403 wrote:
> The page works fine for ~24 hours before this exception starts to show up. If
> the user.home property was not set it would probably error out first thing. 
> I am not setting it anywhere else either.
> 
> Thanks,
> Zack
> 
> 
> martijn.list wrote:
>> Afaics resolve only throws a NullPointerException when either parent or 
>> child is null. The line numbers from the Stack trace do not exactly line 
>> up with my Java so I don't know at what line the exception actually 
>> occurs. I don't think child can be null because it is is the result of 
>> File.getPath(). So, parent must be null (I guess :). That would suggest 
>> that System.getProperty("user.dir") returns null (this is the parent 
>> from the overloaded resolve(File f)).
>>
>> Just a wild guess
>>
>> Could it be that somewhere, somehow inside your code or code from a 
>> library user.dir is set to null?
>>
>> Martijn Brinkers
>>
>> -- 
>> Djigzo open source email encryption
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
> 


-- 
Djigzo open source email encryption

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


Re: Intermittent Stax Exception

Posted by zack1403 <za...@gmail.com>.
The page works fine for ~24 hours before this exception starts to show up. If
the user.home property was not set it would probably error out first thing. 
I am not setting it anywhere else either.

Thanks,
Zack


martijn.list wrote:
> 
> Afaics resolve only throws a NullPointerException when either parent or 
> child is null. The line numbers from the Stack trace do not exactly line 
> up with my Java so I don't know at what line the exception actually 
> occurs. I don't think child can be null because it is is the result of 
> File.getPath(). So, parent must be null (I guess :). That would suggest 
> that System.getProperty("user.dir") returns null (this is the parent 
> from the overloaded resolve(File f)).
> 
> Just a wild guess
> 
> Could it be that somewhere, somehow inside your code or code from a 
> library user.dir is set to null?
> 
> Martijn Brinkers
> 
> -- 
> Djigzo open source email encryption
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p25051489.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: Intermittent Stax Exception

Posted by "martijn.list" <ma...@gmail.com>.
zack1403 wrote:
> This issue is popping up randomly on my production app and I cant relate it
> to any change.  The exception is also deep rooted in tapestry.  I can post
> code if necessary but it is a very simple isolated page and the exception is
> occurring at line 1 of the tml.  Any ideas?
> 
> Exception: http://pastebin.com/m757f075b

Afaics resolve only throws a NullPointerException when either parent or 
child is null. The line numbers from the Stack trace do not exactly line 
up with my Java so I don't know at what line the exception actually 
occurs. I don't think child can be null because it is is the result of 
File.getPath(). So, parent must be null (I guess :). That would suggest 
that System.getProperty("user.dir") returns null (this is the parent 
from the overloaded resolve(File f)).

Just a wild guess

Could it be that somewhere, somehow inside your code or code from a 
library user.dir is set to null?

Martijn Brinkers

-- 
Djigzo open source email encryption

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