org.hibernate.boot.MappingException

Unable to open URL InputStream : origin(file://nothere)

Samebug tips4

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web4955

  • via Unknown by Andrea Boriero,
  • via GitHub by paulj1x
    ,
  • Stack trace

    • org.hibernate.boot.MappingException: Unable to open URL InputStream : origin(file:/
    • othere) at org.hibernate.boot.jaxb.internal.UrlXmlSource.doBind(UrlXmlSource.java:42) at org.hibernate.boot.spi.XmlMappingBinderAccess.bind(XmlMappingBinderAccess.java:102) at org.hibernate.boot.MetadataSources.addURL(MetadataSources.java:393) at org.hibernate.cfg.Configuration.addURL(Configuration.java:446) at org.hibernate.test.mappingexception.MappingExceptionTest.testNotFound(MappingExceptionTest.java:151) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.hibernate.testing.junit4.ExtendedFrameworkMethod.invokeExplosively(ExtendedFrameworkMethod.java:45) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74) Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:957) at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:917) at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1012) at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:998) at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294) at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:393) at java.net.URL.openStream(URL.java:1045) at org.hibernate.boot.jaxb.internal.UrlXmlSource.doBind(UrlXmlSource.java:35)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    eti22eti22
    Once,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    281 more bugmates