You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Anish <an...@techblue.co.uk> on 2009/11/27 14:08:10 UTC

Exception during commit (defaultfiredocs as template pub)

Hi All

I've created a publication using "defaultfiredocs" publication as a 
template. While publishing the first page of publication i.e. homepage, 
I get following exception:

    * Exception during commit or rollback: null (see logfiles for details)


log4j.log gives:


java.lang.NullPointerException
    at 
org.apache.lenya.cms.site.tree2.SiteTreeRevisionVerifier.eventFired(SiteTreeRevisionVerifier.java:33)
    at 
org.apache.lenya.cms.observation.ObservationManager.notify(ObservationManager.java:88)
    at 
org.apache.lenya.cms.observation.ObservationManager.eventFired(ObservationManager.java:101)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
...............................................................
...............................................................
...............................................................


I'm using:

Lenya 2.0.3/ tomcat5.5.17

Please suggest.

-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk




Re: Exception during commit (defaultfiredocs as template pub)

Posted by Rudolf Korhummel <ru...@korhummel.de>.
Hi Anish,

Am 30.11.2009 um 11:54 schrieb Anish:

> Hi Rudolf
>
>> Is your publication still working ?
> My publication is still working, I don't get such error.
>
>> Was the document checked out when you tried to publish your page ?
> Yes the document was checked out, even I tried with new media  
> document but got the same exception while publishing.
>
> I've removed content folder and started from "Start with your own  
> pages" and created homepage type document, while publishing homepage  
> I got the same exception again.

To obtain a new publication form a template I'm using  "create  
publication" . Afterwards I'm  putting the files I want to change in  
the corresponding src area and rebuild.
Usually this works fine, but now I tried it with the defaultfiredocs  
publication and got some problems.  I'll need some time to have a  
closer look what's going wrong.

Best

Rudolf

>
> Please suggest.
>
>
>
>
> Rudolf Korhummel wrote:
>>
>> Hi Anish,
>>
>>> Hi All
>>>
>>> I've created a publication using "defaultfiredocs" publication as  
>>> a template. While publishing the first page of publication i.e.  
>>> homepage, I get following exception:
>>> Exception during commit or rollback: null (see logfiles for details)
>>>
>>> log4j.log gives:
>>>
>>>
>>> java.lang.NullPointerException
>>>     at  
>>> org 
>>> .apache 
>>> .lenya 
>>> .cms 
>>> .site 
>>> .tree2 
>>> .SiteTreeRevisionVerifier.eventFired(SiteTreeRevisionVerifier.java: 
>>> 33)
>>>     at  
>>> org 
>>> .apache 
>>> .lenya 
>>> .cms.observation.ObservationManager.notify(ObservationManager.java: 
>>> 88)
>>>     at  
>>> org 
>>> .apache 
>>> .lenya 
>>> .cms 
>>> .observation.ObservationManager.eventFired(ObservationManager.java: 
>>> 101)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at  
>>> sun 
>>> .reflect 
>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>     at  
>>> sun 
>>> .reflect 
>>> .DelegatingMethodAccessorImpl 
>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>     at java.lang.reflect.Method.invoke(Method.java:585)
>>
>> Is your publication still working ? Or do you now get an error like  
>> [Latest revison loaded] is not true! ?
>> I that case there is something wrong with sitetree.xml and  
>> sitetree.xml.rcml.
>> The files are located in the live and authoring area oft the  
>> content folder in your publication.
>> The revision numbers of the highest entries of sitetree.xml and  
>> sitetree.xml.rcml must be the same.
>> If not please remove the higher entries and restart Lenya.
>>
>> I saw this error after I tried to rename or change the visibility  
>> of a checked out document.
>> 3 days ago I fixed this  in the current 2.0.X branch. But maybe  
>> there is an other case when this happens.
>>
>> Was the document checked out when you tried to publish your page ?
>>
>> Best
>>
>> Rudolf
>>
>>> ...............................................................
>>> ...............................................................
>>> ...............................................................
>>>
>>>
>>> I'm using:
>>>
>>> Lenya 2.0.3/ tomcat5.5.17
>>>
>>> Please suggest.
>>>
>>> -- 
>>> Anish Sneh
>>> Software Engineer
>>> Techblue Softwares Pvt. Ltd.
>>> www.technologyblueprint.co.uk
>>>
>>>
>>>
>>
>
>
> -- 
> Anish Sneh
> Software Engineer
> Techblue Softwares Pvt. Ltd.
> www.technologyblueprint.co.uk
>
>


Re: Exception during commit (defaultfiredocs as template pub)

Posted by Anish <an...@techblue.co.uk>.
Hi Rudolf

> Is your publication still working ?
My publication is still working, I don't get such error.

> Was the document checked out when you tried to publish your page ?
Yes the document was checked out, even I tried with new media document 
but got the same exception while publishing.

I've removed content folder and started from "Start with your own pages" 
and created homepage type document, while publishing homepage I got the 
same exception again.

Please suggest.




Rudolf Korhummel wrote:
> Hi Anish,
>
>> Hi All
>>
>> I've created a publication using "defaultfiredocs" publication as a 
>> template. While publishing the first page of publication i.e. 
>> homepage, I get following exception:
>>
>>     * Exception during commit or rollback: null (see logfiles for
>>       details)
>>
>>
>> log4j.log gives:
>>
>>
>> java.lang.NullPointerException
>>     at 
>> org.apache.lenya.cms.site.tree2.SiteTreeRevisionVerifier.eventFired(SiteTreeRevisionVerifier.java:33)
>>     at 
>> org.apache.lenya.cms.observation.ObservationManager.notify(ObservationManager.java:88)
>>     at 
>> org.apache.lenya.cms.observation.ObservationManager.eventFired(ObservationManager.java:101)
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>     at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>     at java.lang.reflect.Method.invoke(Method.java:585)
>
> Is your publication still working ? Or do you now get an error like 
> [Latest revison loaded] is not true! ?
> I that case there is something wrong with sitetree.xml and 
> sitetree.xml.rcml.
> The files are located in the live and authoring area oft the content 
> folder in your publication.
> The revision numbers of the highest entries of sitetree.xml and 
> sitetree.xml.rcml must be the same.
> If not please remove the higher entries and restart Lenya.
>
> I saw this error after I tried to rename or change the visibility of a 
> checked out document.  
> 3 days ago I fixed this  in the current 2.0.X branch. But maybe there 
> is an other case when this happens.
>
> Was the document checked out when you tried to publish your page ?
>
> Best
>
> Rudolf
>
>> ...............................................................
>> ...............................................................
>> ...............................................................
>>
>>
>> I'm using:
>>
>> Lenya 2.0.3/ tomcat5.5.17
>>
>> Please suggest.
>>
>> -- 
>> Anish Sneh
>> Software Engineer
>> Techblue Softwares Pvt. Ltd.
>> www.technologyblueprint.co.uk <http://www.technologyblueprint.co.uk>
>>
>>
>>     
>


-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk




Re: Exception during commit (defaultfiredocs as template pub)

Posted by Rudolf Korhummel <ru...@korhummel.de>.
Hi Anish,

> Hi All
>
> I've created a publication using "defaultfiredocs" publication as a  
> template. While publishing the first page of publication i.e.  
> homepage, I get following exception:
> Exception during commit or rollback: null (see logfiles for details)
>
> log4j.log gives:
>
>
> java.lang.NullPointerException
>     at  
> org 
> .apache 
> .lenya 
> .cms 
> .site 
> .tree2 
> .SiteTreeRevisionVerifier.eventFired(SiteTreeRevisionVerifier.java:33)
>     at  
> org 
> .apache 
> .lenya 
> .cms.observation.ObservationManager.notify(ObservationManager.java:88)
>     at  
> org 
> .apache 
> .lenya 
> .cms 
> .observation.ObservationManager.eventFired(ObservationManager.java: 
> 101)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at  
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:585)

Is your publication still working ? Or do you now get an error like  
[Latest revison loaded] is not true! ?
I that case there is something wrong with sitetree.xml and  
sitetree.xml.rcml.
The files are located in the live and authoring area oft the content  
folder in your publication.
The revision numbers of the highest entries of sitetree.xml and  
sitetree.xml.rcml must be the same.
If not please remove the higher entries and restart Lenya.

I saw this error after I tried to rename or change the visibility of a  
checked out document.
3 days ago I fixed this  in the current 2.0.X branch. But maybe there  
is an other case when this happens.

Was the document checked out when you tried to publish your page ?

Best

Rudolf

> ...............................................................
> ...............................................................
> ...............................................................
>
>
> I'm using:
>
> Lenya 2.0.3/ tomcat5.5.17
>
> Please suggest.
>
> -- 
> Anish Sneh
> Software Engineer
> Techblue Softwares Pvt. Ltd.
> www.technologyblueprint.co.uk
>
>