2 Replies Latest reply on Dec 19, 2009 2:01 AM by matt.drees

    testing stacktrace formatting

    matt.drees

      Need to test posting stacktraces; couldn't figure why mine tend to get squished.

       

       

      {code}

      java.lang.NullPointerException
           at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:180)
           at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:448)
           at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:179)
           at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:129)
           at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:293)
           at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:85)
           at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.<init>(ServiceDelegateImpl.java:146)
           at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.<init>(ServiceDelegateImpl.java:117)
           at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:111)
           at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
           at javax.xml.ws.Service.<init>(Service.java:56)
           at org.jboss.embedded.testsuite.wsclient.Embedded.<init>(Embedded.java:52)
           at org.jboss.embedded.testsuite.ServerIntegrationTest.testWs(ServerIntegrationTest.java:473)
           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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
           at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
           at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
           at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:44)
           at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
           at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
           at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
           at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
           at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
           at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
           at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
           at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
           at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
           at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
           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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
           at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1005)

      {code}

        • 1. Re: testing stacktrace formatting
          matt.drees

          {code}

          org.jboss.embedded.api.DeploymentException: org.jboss.deployers.spi.DeploymentException: Error determining structure: slsb.jar
                  ... [snip]
          Caused by: org.jboss.deployers.spi.DeploymentException: Error determining structure: slsb.jar
                  ... [snip]
                  ... 31 more
          Caused by: java.lang.RuntimeException: Failed to initialize ZipWrapper: /var/folders/JG/JGDYgcyPGF8WRpvalJeL0k+++TI/-Tmp-/slsb.jar
                  at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getZipSource(ZipEntryContext.java:286)
                  at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:637)
                  at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:783)
                  at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:827)
                  at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:195)
                  at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:690)
                  at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:169)
                  at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)
                  at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:492)
                  at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:64)
                  ... 40 more
          Caused by: java.io.FileNotFoundException: /var/folders/JG (No such file or directory)
                  at java.io.FileInputStream.open(Native Method)
                  at java.io.FileInputStream.<init>(FileInputStream.java:106)
                  at org.jboss.virtual.plugins.context.zip.ZipEntryContext.createZipSource(ZipEntryContext.java:361)
                  at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getZipSource(ZipEntryContext.java:282)
                  ... 49 more

          {code}

          • 2. Re: testing stacktrace formatting
            matt.drees

            Ok, so, the things I've learned:

             

            -clearspace doesnt like tabs in the initial post.  They show up as &amp; (4x)

            -it's very much unclear to me why newlines work sometimes and sometimes they don't

             

            -when 'Edit'ing a post, it fixes the &amp; stuff (but this is not always helpful since first post can't be edited)

             

             

             

            so, best sequence seems to be:

             

            copy/paste stacktrace

            run 'pbpaste | expand | pbcopy' in command line

            in forum post, hit Wiki Markup, and add {code} block

            add two lines manually (e.g. "a <newline> b")

            replaces those two lines with the clipboard content