[Yanel-development] Still problem saving Atom entry

Josias Thöny josias.thoeny at wyona.com
Fri Dec 1 14:57:04 CET 2006


On Fri, 2006-12-01 at 14:50 +0100, Michael Wechner wrote:
> Josias Thöny wrote:
> 
> >On Fri, 2006-12-01 at 14:23 +0100, Michael Wechner wrote:
> >  
> >
> >>Michael Wechner wrote:
> >>
> >>    
> >>
> >>>Hi
> >>>
> >>>I still have trouble saving an atom entry through the Neutron protocol
> >>>      
> >>>
> >
> >It should be fixed now.
> >It was the same problem as last time (I had fixed the bug only in the
> >put method, but not in the post method, because I wasn't aware that the
> >post method is used for saving new documents.)
> >Sorry for the inconvenience.
> >  
> >
> thanks very much :-)
> 
> Btw, can we improve this somehow such that one doesn't have to pass 
> Yanel everytime a resource is being created?

In the refactoring I did in the sandbox, new Resources are always
created by the ResourceManager, which calls setYanel() automatically.
At least that's the idea, for the atom entries I didn't update the code
yet to use the ResourceManager.
IMHO this should solve this issue.

Josias


> 
> Cheers
> 
> Michi
> 
> >Josias
> >
> >  
> >
> >>I might have to clarify that this saving of a not yet existing entry, e.g.
> >>
> >>http://demo.yulup.org/atom/entries/
> >>
> >>Click on the Yulup icon at the right top corner. Go to New and then "new 
> >>atom entry".
> >>
> >>Fill in some data and click save ...
> >>
> >>Cheers
> >>
> >>Michi
> >>
> >>    
> >>
> >>>61075 2006-12-01 14:09:37,348 [http-8080-Processor23] ERROR 
> >>>org.wyona.yanel.impl.resources.AtomEntryResource.write():250  - 
> >>>java.lang.NullPointerException
> >>>61076 2006-12-01 14:09:37,349 [http-8080-Processor23] ERROR 
> >>>org.wyona.yanel.servlet.YanelServlet.doPost():422 -
> >>>java.lang.NullPointerException
> >>>       at 
> >>>org.wyona.yanel.impl.resources.AtomEntryResource.getRepositoryFactory(AtomEntryResource.java:328) 
> >>>
> >>>       at 
> >>>org.wyona.yanel.impl.resources.AtomEntryResource.write(AtomEntryResource.java:242) 
> >>>
> >>>       at 
> >>>org.wyona.yanel.servlet.YanelServlet.doPost(YanelServlet.java:401)
> >>>       at 
> >>>org.wyona.yanel.servlet.YanelServlet.service(YanelServlet.java:129)
> >>>
> >>>Somehow it isn't able to retrieve the DefaultRepositoryFactory.
> >>>
> >>>Any idea what might be wrong?
> >>>
> >>>Thanks
> >>>
> >>>Michi
> >>>
> >>>      
> >>>
> >>    
> >>
> >
> >
> >_______________________________________________
> >Yanel-development mailing list
> >Yanel-development at wyona.com
> >http://wyona.com/cgi-bin/mailman/listinfo/yanel-development
> >
> >  
> >
> 
> 




More information about the Yanel-development mailing list