Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    The persistence_2_0.xsd enforces the order of the elements in the xml. Re-ordering them makes then error go away.

Solutions on the web

via Sonatype JIRA by Benjamin Hanzelmann, 1 year ago
Failed to connect to Nexus at: http://127.0.0.1:62028
via Sonatype JIRA by Peter Lynch, 1 year ago
org.xml.sax.SAXParseException: Premature end of file.	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)	at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)	at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:851)	at org.sonatype.nexus.restlight.common.AbstractRESTLightClient.get(AbstractRESTLightClient.java:516)	at org.sonatype.nexus.restlight.common.AbstractRESTLightClient.get(AbstractRESTLightClient.java:457)	at org.sonatype.nexus.restlight.common.AbstractRESTLightClient.getApiVersion(AbstractRESTLightClient.java:391)	at org.sonatype.nexus.restlight.common.AbstractRESTLightClient.loadVocabulary(AbstractRESTLightClient.java:295)	at org.sonatype.nexus.restlight.common.AbstractRESTLightClient.connect(AbstractRESTLightClient.java:236)	at org.sonatype.nexus.restlight.common.AbstractRESTLightClient.(AbstractRESTLightClient.java:183)	at org.sonatype.nexus.restlight.stage.StageClient.(StageClient.java:100)	at org.sonatype.nexus.plugin.AbstractStagingMojo.connect(AbstractStagingMojo.java:64)	at org.sonatype.nexus.plugin.AbstractStagingMojo.getClient(AbstractStagingMojo.java:75)	at org.sonatype.nexus.plugin.ListStageRepositoriesMojo.doExecute(ListStageRepositoriesMojo.java:38)	at org.sonatype.nexus.plugin.AbstractNexusMojo.execute(AbstractNexusMojo.java:123)	at org.sonatype.nexus.plugin.ListStageRepositoriesMojoTest.runMojo(ListStageRepositoriesMojoTest.java:248)	at org.sonatype.nexus.plugin.ListStageRepositoriesMojoTest.mavenProxySupportTest(ListStageRepositoriesMojoTest.java:99)	at org.sonatype.nexus.plugin.ListStageRepositoriesMojoTest.mavenProxySupportWithAuth(ListStageRepositoriesMojoTest.java:73)	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.runNotIgnored(BlockJUnit4ClassRunner.java:79)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)	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.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)	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.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)