org.xwiki.rendering.macro.MacroExecutionException: User [XWiki.UserNotExisting] is not registered in this wiki

XWiki.org JIRA | Vincent Massol | 6 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    The idea is to add support for the following: {noformat} beginDocument beginMacroMarkerStandalone [useravatar] [username=XWiki.UserNotExisting] beginGroup [[class]=[xwikirenderingerror]] onWord [Failed to execute the [useravatar] macro] endGroup [[class]=[xwikirenderingerror]] beginGroup [[class]=[xwikirenderingerrordescription hidden]] onVerbatim [org.xwiki.rendering.macro.MacroExecutionException: User [XWiki.UserNotExisting] is not registered in this wiki${{{regex:.*}}}] [false] endGroup [[class]=[xwikirenderingerrordescription hidden]] endMacroMarkerStandalone [useravatar] [username=XWiki.UserNotExisting] endDocument {noformat} This example will match: {noformat} beginDocument beginMacroMarkerStandalone [useravatar] [username=XWiki.UserNotExisting] beginGroup [[class]=[xwikirenderingerror]] onWord [Failed to execute the [useravatar] macro] endGroup [[class]=[xwikirenderingerror]] beginGroup [[class]=[xwikirenderingerrordescription hidden]] onVerbatim [org.xwiki.rendering.macro.MacroExecutionException: User [XWiki.UserNotExisting] is not registered in this wiki at org.xwiki.rendering.internal.macro.useravatar.UserAvatarMacro.execute(UserAvatarMacro.java:137) at org.xwiki.rendering.internal.macro.useravatar.UserAvatarMacro.execute(UserAvatarMacro.java:56) at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:196) at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:141) at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:81) at org.xwiki.rendering.test.integration.RenderingTest.runTestInternal(RenderingTest.java:133) at org.xwiki.rendering.test.integration.RenderingTest.execute(RenderingTest.java:103) 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:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) at org.xwiki.rendering.test.integration.RenderingTestSuite$TestClassRunnerForParameters.runChild(RenderingTestSuite.java:199) at org.xwiki.rendering.test.integration.RenderingTestSuite$TestClassRunnerForParameters.runChild(RenderingTestSuite.java:97) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:24) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.junit.runner.JUnitCore.run(JUnitCore.java:157) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:71) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:199) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:62) 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:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) ] [false] endGroup [[class]=[xwikirenderingerrordescription hidden]] endMacroMarkerStandalone [useravatar] [username=XWiki.UserNotExisting] endDocument {noformat}

    XWiki.org JIRA | 6 years ago | Vincent Massol
    org.xwiki.rendering.macro.MacroExecutionException: User [XWiki.UserNotExisting] is not registered in this wiki

    Root Cause Analysis

    1. org.xwiki.rendering.macro.MacroExecutionException

      User [XWiki.UserNotExisting] is not registered in this wiki

      at org.xwiki.rendering.internal.macro.useravatar.UserAvatarMacro.execute()
    2. org.xwiki.rendering
      RenderingTest.execute
      1. org.xwiki.rendering.internal.macro.useravatar.UserAvatarMacro.execute(UserAvatarMacro.java:137)
      2. org.xwiki.rendering.internal.macro.useravatar.UserAvatarMacro.execute(UserAvatarMacro.java:56)
      3. org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:196)
      4. org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:141)
      5. org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:81)
      6. org.xwiki.rendering.test.integration.RenderingTest.runTestInternal(RenderingTest.java:133)
      7. org.xwiki.rendering.test.integration.RenderingTest.execute(RenderingTest.java:103)
      7 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. JUnit
      BlockJUnit4ClassRunner.runChild
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      5. org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
      6. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
      6 frames
    5. org.xwiki.rendering
      RenderingTestSuite$TestClassRunnerForParameters.runChild
      1. org.xwiki.rendering.test.integration.RenderingTestSuite$TestClassRunnerForParameters.runChild(RenderingTestSuite.java:199)
      2. org.xwiki.rendering.test.integration.RenderingTestSuite$TestClassRunnerForParameters.runChild(RenderingTestSuite.java:97)
      2 frames
    6. JUnit
      JUnitCore.run
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      6. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      7. org.junit.runners.Suite.runChild(Suite.java:128)
      8. org.junit.runners.Suite.runChild(Suite.java:24)
      9. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      10. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      11. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      12. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      13. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      14. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      15. org.junit.runner.JUnitCore.run(JUnitCore.java:157)
      15 frames
    7. IntelliJ junit4 module
      JUnit4IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:71)
      1 frame
    8. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:199)
      2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:62)
      2 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    10. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
      1 frame