Hello, 

i try to test a macro in a maven project created using maven archetype. It has 
.test files and an IntegrationTests class. Where running, it crashed due to 
nullpointerexception when trying to, probably, find out current user? 

Is ther some configuration i am missing? 

java.lang.NullPointerException: null 
at 
com.xpn.xwiki.doc.DefaultDocumentAccessBridge.getCurrentUser(DefaultDocumentAccessBridge.java:981)
 ~[xwiki-platform-oldcore-3.2.jar:na] 
at 
org.xwiki.component.internal.UserComponentManager.getKey(UserComponentManager.java:74)
 ~[xwiki-platform-component-multi-3.2.jar:na] 
at 
org.xwiki.component.internal.AbstractGenericComponentManager.getComponentManager(AbstractGenericComponentManager.java:72)
 ~[xwiki-platform-component-multi-3.2.jar:na] 
at 
org.xwiki.component.internal.DelegateComponentManager.lookup(DelegateComponentManager.java:103)
 ~[xwiki-platform-component-multi-3.2.jar:na] 
at 
org.xwiki.component.internal.DelegateComponentManager.lookup(DelegateComponentManager.java:103)
 ~[xwiki-platform-component-multi-3.2.jar:na] 
at 
org.xwiki.rendering.internal.macro.DefaultMacroManager.getMacro(DefaultMacroManager.java:132)
 ~[xwiki-rendering-transformation-macro-3.2.jar:na] 
at 
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.getHighestPriorityMacro(MacroTransformation.java:232)
 ~[xwiki-rendering-transformation-macro-3.2.jar:na] 
at 
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:152)
 ~[xwiki-rendering-transformation-macro-3.2.jar:na] 
at 
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:141)
 ~[xwiki-rendering-transformation-macro-3.2.jar:na] 
at 
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:81)
 ~[xwiki-rendering-api-3.2.jar:na] 
at 
org.xwiki.rendering.test.integration.RenderingTest.runTestInternal(RenderingTest.java:133)
 [xwiki-rendering-test-3.2.jar:na] 
at 
org.xwiki.rendering.test.integration.RenderingTest.execute(RenderingTest.java:103)
 [xwiki-rendering-test-3.2.jar:na] 


David Delbecq 

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to