Hi Raphael,

I'd guess it's a permissions problem. On the public instance, the anonymous 
user will need read access to the data workspace for this to work.

Regards from Vienna,

Richard

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Raphael Zimmermann (via Magnolia Forums)
Gesendet: Donnerstag, 07. Februar 2013 11:50
An: Magnolia User List
Betreff: [magnolia-user] Nullponter Exception while accessing data from data 
module

Hi,

In my current project, I implemented a simple module where we import data into 
the data module. Then a component displays the contents on the web page. For 
this component, I created a custom Model class which loads the data from the 
data workspace.
Now on the author instance this is no problem. But on the public instance a 
Null-pointer Exception is thrown caused by this line:
[code]ContentUtil.getContent(DataModule.getRepository(), 
"/employees/").getJCRNode();[/code]
I first thought that this might be an issue of activation but I activated 
everything of the subtree in the data repository.

Can anyone help me with this?

Cheers

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=515917bf-e4cb-4d17-aee9-50c79846941e


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------





----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to