You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Jörn Nettingsmeier <ne...@apache.org> on 2007/04/12 15:02:57 UTC
spurious NPEs during login, but no apparent malfunction
hi everyone!
i've just updated my local copy and also the rework-pubconf branch, and
both produce funny NPEs:
java.lang.NullPointerException
at
org.apache.cocoon.environment.AbstractEnvironment.release(AbstractEnvironment.java:561)
at
org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.release(MutableEnvironmentFacade.java:314)
at
org.apache.cocoon.generation.FileGenerator.recycle(FileGenerator.java:64)
at
org.apache.avalon.excalibur.pool.InstrumentedResourceLimitingPool.put(InstrumentedResourceLimitingPool.java:407)
at
org.apache.avalon.excalibur.component.PoolableComponentHandler.doPut(PoolableComponentHandler.java:212)
they happen the moment i log into a publication. jetty starts ok, and i
can view the welcome pages as well without any errors.
what makes this issue rather likeable is that there is no apparent
problem - the lenya gui comes up just fine, and everything works as it
should...
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: spurious NPEs during login, but no apparent malfunction
Posted by Andreas Hartmann <an...@apache.org>.
Andreas Hartmann schrieb:
> Andreas Hartmann schrieb:
>> Andreas Hartmann schrieb:
>>> Jörn Nettingsmeier schrieb:
>>>> hi everyone!
>>>>
>>>>
>>>> i've just updated my local copy and also the rework-pubconf branch, and
>>>> both produce funny NPEs:
>>>>
>>>> java.lang.NullPointerException
>>>> at
>>>> org.apache.cocoon.environment.AbstractEnvironment.release(AbstractEnvironment.java:561)
>
> [...]
>
>>>> they happen the moment i log into a publication. jetty starts ok, and i
>>>> can view the welcome pages as well without any errors.
>>>> what makes this issue rather likeable is that there is no apparent
>>>> problem - the lenya gui comes up just fine, and everything works as it
>>>> should...
>>> I can confirm this. I guess it's a pipeline/CInclude issue, probably in
>>> the collection or news module. I will keep an eye on it and try to debug
>>> if it persists.
>> It seems that they only occur on the homepage, but also when the news
>> overview is commented out. No idea yet ...
>
> Sorry, I forgot to comment out the news header.
>
> The NPEs are related to the news inclusion.
It seems to be a Cocoon problem
(https://issues.apache.org/jira/browse/COCOON-889).
I added a workaround.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: spurious NPEs during login, but no apparent malfunction
Posted by Andreas Hartmann <an...@apache.org>.
Andreas Hartmann schrieb:
> Andreas Hartmann schrieb:
>> Jörn Nettingsmeier schrieb:
>>> hi everyone!
>>>
>>>
>>> i've just updated my local copy and also the rework-pubconf branch, and
>>> both produce funny NPEs:
>>>
>>> java.lang.NullPointerException
>>> at
>>> org.apache.cocoon.environment.AbstractEnvironment.release(AbstractEnvironment.java:561)
[...]
>>> they happen the moment i log into a publication. jetty starts ok, and i
>>> can view the welcome pages as well without any errors.
>>> what makes this issue rather likeable is that there is no apparent
>>> problem - the lenya gui comes up just fine, and everything works as it
>>> should...
>> I can confirm this. I guess it's a pipeline/CInclude issue, probably in
>> the collection or news module. I will keep an eye on it and try to debug
>> if it persists.
>
> It seems that they only occur on the homepage, but also when the news
> overview is commented out. No idea yet ...
Sorry, I forgot to comment out the news header.
The NPEs are related to the news inclusion.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Trunk not compiling with Java 1.4/WinXP
Posted by Andreas Hartmann <an...@apache.org>.
Josias Thöny schrieb:
> Jonathan Addison wrote:
>> Hi Devs,
>>
>> Has anyone else had a problem building after the recent commits? Is
>> this a Java 1.4/1.5 issue?
>>
>> Thanks for any hints.
>>
>> Jonathan
>>
>> C:\src\lenya-1.4.x\src\modules\news\java\src\org\apache\lenya\modules\news\usecases\Edit.java:40:
>> cannot resolve symbol
>> symbol : method valueOf (short)
>> location: class java.lang.Short
>> setParameter(INCLUDE_ITEM_NUMBER,
>> Short.valueOf(news.getIncludeItemNumber()));
>>
>> ^
>> C:\src\lenya-1.4.x\src\modules\news\java\src\org\apache\lenya\modules\news\useca
>>
>> ses\Edit.java:44: cannot resolve symbol
>> symbol : method valueOf (int)
>> location: class java.lang.Integer
>> numbers.add(Integer.valueOf(i));
>> ^
>> 2 errors
>>
>> BUILD FAILED
>
> It should be fixed now, please try again.
> And thanks for reporting.
Thanks for the fix!
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Trunk not compiling with Java 1.4/WinXP
Posted by Josias Thöny <jo...@wyona.com>.
Jonathan Addison wrote:
> Hi Devs,
>
> Has anyone else had a problem building after the recent commits? Is
> this a Java 1.4/1.5 issue?
>
> Thanks for any hints.
>
> Jonathan
>
> C:\src\lenya-1.4.x\src\modules\news\java\src\org\apache\lenya\modules\news\usecases\Edit.java:40:
> cannot resolve symbol
> symbol : method valueOf (short)
> location: class java.lang.Short
> setParameter(INCLUDE_ITEM_NUMBER,
> Short.valueOf(news.getIncludeItemNumber()));
>
> ^
> C:\src\lenya-1.4.x\src\modules\news\java\src\org\apache\lenya\modules\news\useca
>
> ses\Edit.java:44: cannot resolve symbol
> symbol : method valueOf (int)
> location: class java.lang.Integer
> numbers.add(Integer.valueOf(i));
> ^
> 2 errors
>
> BUILD FAILED
It should be fixed now, please try again.
And thanks for reporting.
josias
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Trunk not compiling with Java 1.4/WinXP
Posted by Andreas Hartmann <an...@apache.org>.
Richard Frovarp schrieb:
> Jonathan Addison wrote:
>> Hi Devs,
>>
>> Has anyone else had a problem building after the recent commits? Is
>> this a Java 1.4/1.5 issue?
>>
>> Thanks for any hints.
>>
>> Jonathan
>>
>> C:\src\lenya-1.4.x\src\modules\news\java\src\org\apache\lenya\modules\news\usecases\Edit.java:40:
>> cannot resolve symbol
>> symbol : method valueOf (short)
>> location: class java.lang.Short
>> setParameter(INCLUDE_ITEM_NUMBER,
>> Short.valueOf(news.getIncludeItemNumber()));
>>
>> ^
>> C:\src\lenya-1.4.x\src\modules\news\java\src\org\apache\lenya\modules\news\useca
>>
>> ses\Edit.java:44: cannot resolve symbol
>> symbol : method valueOf (int)
>> location: class java.lang.Integer
>> numbers.add(Integer.valueOf(i));
>> ^
>> 2 errors
>>
>> BUILD FAILED
>
> These functions are 1.5+. If you are building against 1.4, then you
> don't have these functions. valueOf(String) has been there from the
> beginning. These valueOf(primitive) appear to be 1.5+.
Sorry for that. I didn't know that the Eclipse JDK compliance setting
doesn't consider the method availablility. I hope this will be fixed
in future versions :(
http://forum.java.sun.com/thread.jspa?threadID=758690&messageID=4334564
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Trunk not compiling with Java 1.4/WinXP
Posted by Michael Wechner <mi...@wyona.com>.
Richard Frovarp wrote:
> Jonathan Addison wrote:
>
>> Hi Devs,
>>
>> Has anyone else had a problem building after the recent commits? Is
>> this a Java 1.4/1.5 issue?
>>
>> Thanks for any hints.
>>
>> Jonathan
>>
>> C:\src\lenya-1.4.x\src\modules\news\java\src\org\apache\lenya\modules\news\usecases\Edit.java:40:
>> cannot resolve symbol
>> symbol : method valueOf (short)
>> location: class java.lang.Short
>> setParameter(INCLUDE_ITEM_NUMBER,
>> Short.valueOf(news.getIncludeItemNumber()));
>>
>> ^
>> C:\src\lenya-1.4.x\src\modules\news\java\src\org\apache\lenya\modules\news\useca
>>
>> ses\Edit.java:44: cannot resolve symbol
>> symbol : method valueOf (int)
>> location: class java.lang.Integer
>> numbers.add(Integer.valueOf(i));
>> ^
>> 2 errors
>>
>> BUILD FAILED
>
>
> These functions are 1.5+. If you are building against 1.4, then you
> don't have these functions. valueOf(String) has been there from the
> beginning. These valueOf(primitive) appear to be 1.5+.
AFAIK Lenya 1.4 is supposed to work with Java 1.4 or did I miss something?
I think it's important that all devs stick to the agreed versions, but I
am not sure if we actually agreed on something ;-)
Thanks
Michael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
>
>
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
+41 44 272 91 61
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Trunk not compiling with Java 1.4/WinXP
Posted by Richard Frovarp <Ri...@sendit.nodak.edu>.
Jonathan Addison wrote:
> Hi Devs,
>
> Has anyone else had a problem building after the recent commits? Is
> this a Java 1.4/1.5 issue?
>
> Thanks for any hints.
>
> Jonathan
>
> C:\src\lenya-1.4.x\src\modules\news\java\src\org\apache\lenya\modules\news\usecases\Edit.java:40:
> cannot resolve symbol
> symbol : method valueOf (short)
> location: class java.lang.Short
> setParameter(INCLUDE_ITEM_NUMBER,
> Short.valueOf(news.getIncludeItemNumber()));
>
> ^
> C:\src\lenya-1.4.x\src\modules\news\java\src\org\apache\lenya\modules\news\useca
>
> ses\Edit.java:44: cannot resolve symbol
> symbol : method valueOf (int)
> location: class java.lang.Integer
> numbers.add(Integer.valueOf(i));
> ^
> 2 errors
>
> BUILD FAILED
These functions are 1.5+. If you are building against 1.4, then you
don't have these functions. valueOf(String) has been there from the
beginning. These valueOf(primitive) appear to be 1.5+.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Trunk not compiling with Java 1.4/WinXP
Posted by Jonathan Addison <jo...@wyona.com>.
Hi Devs,
Has anyone else had a problem building after the recent commits? Is
this a Java 1.4/1.5 issue?
Thanks for any hints.
Jonathan
C:\src\lenya-1.4.x\src\modules\news\java\src\org\apache\lenya\modules\news\usecases\Edit.java:40:
cannot resolve symbol
symbol : method valueOf (short)
location: class java.lang.Short
setParameter(INCLUDE_ITEM_NUMBER,
Short.valueOf(news.getIncludeItemNumber()));
^
C:\src\lenya-1.4.x\src\modules\news\java\src\org\apache\lenya\modules\news\useca
ses\Edit.java:44: cannot resolve symbol
symbol : method valueOf (int)
location: class java.lang.Integer
numbers.add(Integer.valueOf(i));
^
2 errors
BUILD FAILED
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: spurious NPEs during login, but no apparent malfunction
Posted by Andreas Hartmann <an...@apache.org>.
Andreas Hartmann schrieb:
> Jörn Nettingsmeier schrieb:
>> hi everyone!
>>
>>
>> i've just updated my local copy and also the rework-pubconf branch, and
>> both produce funny NPEs:
>>
>> java.lang.NullPointerException
>> at
>> org.apache.cocoon.environment.AbstractEnvironment.release(AbstractEnvironment.java:561)
>>
>> at
>> org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.release(MutableEnvironmentFacade.java:314)
>>
>> at
>> org.apache.cocoon.generation.FileGenerator.recycle(FileGenerator.java:64)
>> at
>> org.apache.avalon.excalibur.pool.InstrumentedResourceLimitingPool.put(InstrumentedResourceLimitingPool.java:407)
>>
>> at
>> org.apache.avalon.excalibur.component.PoolableComponentHandler.doPut(PoolableComponentHandler.java:212)
>>
>>
>>
>> they happen the moment i log into a publication. jetty starts ok, and i
>> can view the welcome pages as well without any errors.
>> what makes this issue rather likeable is that there is no apparent
>> problem - the lenya gui comes up just fine, and everything works as it
>> should...
>
> I can confirm this. I guess it's a pipeline/CInclude issue, probably in
> the collection or news module. I will keep an eye on it and try to debug
> if it persists.
It seems that they only occur on the homepage, but also when the news
overview is commented out. No idea yet ...
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: spurious NPEs during login, but no apparent malfunction
Posted by Andreas Hartmann <an...@apache.org>.
Jörn Nettingsmeier schrieb:
> hi everyone!
>
>
> i've just updated my local copy and also the rework-pubconf branch, and
> both produce funny NPEs:
>
> java.lang.NullPointerException
> at
> org.apache.cocoon.environment.AbstractEnvironment.release(AbstractEnvironment.java:561)
>
> at
> org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.release(MutableEnvironmentFacade.java:314)
>
> at
> org.apache.cocoon.generation.FileGenerator.recycle(FileGenerator.java:64)
> at
> org.apache.avalon.excalibur.pool.InstrumentedResourceLimitingPool.put(InstrumentedResourceLimitingPool.java:407)
>
> at
> org.apache.avalon.excalibur.component.PoolableComponentHandler.doPut(PoolableComponentHandler.java:212)
>
>
>
> they happen the moment i log into a publication. jetty starts ok, and i
> can view the welcome pages as well without any errors.
> what makes this issue rather likeable is that there is no apparent
> problem - the lenya gui comes up just fine, and everything works as it
> should...
I can confirm this. I guess it's a pipeline/CInclude issue, probably in
the collection or news module. I will keep an eye on it and try to debug
if it persists.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org