njbartlett/bndtools — Issue #198: issues with offline build
Author: fhuberts
Created: 2011-10-16 17:15:10+00:00
State: open

when being offline there are now issues since we changed to using the remote OBR on github:

```
bndtools: b49ff4f611f40e39e71f4f5becf3193b115e885d
```

When I do an 'ant clean' in the bndtools.build directory I get a very interesting stacktrace:

```
$ ant clean
Buildfile: /home/ferry/vcs/pelagic/bndtools/bndtools.build/build.xml

init:
[bndprepare] java.net.UnknownHostException: raw.github.com
[bndprepare]	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:175)
[bndprepare]	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
[bndprepare]	at java.net.Socket.connect(Socket.java:546)
[bndprepare]	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:579)
[bndprepare]	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
[bndprepare]	at sun.net.NetworkClient.doConnect(NetworkClient.java:178)
[bndprepare]	at sun.net.www.http.HttpClient.openServer(HttpClient.java:409)
[bndprepare]	at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
[bndprepare]	at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:275)
[bndprepare]	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:332)
[bndprepare]	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
[bndprepare]	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:876)
[bndprepare]	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
[bndprepare]	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)
[bndprepare]	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
[bndprepare]	at java.net.URL.openStream(URL.java:1029)
[bndprepare]	at aQute.lib.deployer.obr.AbstractBaseOBR.init(AbstractBaseOBR.java:112)
[bndprepare]	at aQute.lib.deployer.obr.AbstractBaseOBR.getHandles(AbstractBaseOBR.java:165)
[bndprepare]	at aQute.lib.deployer.obr.AbstractBaseOBR.resolveBundle(AbstractBaseOBR.java:409)
[bndprepare]	at aQute.lib.deployer.obr.AbstractBaseOBR.getHandle(AbstractBaseOBR.java:193)
[bndprepare]	at aQute.lib.deployer.obr.AbstractBaseOBR.get(AbstractBaseOBR.java:186)
[bndprepare]	at aQute.bnd.build.Project.getBundle(Project.java:953)
[bndprepare]	at aQute.bnd.build.Project.getBundles(Project.java:458)
[bndprepare]	at aQute.bnd.build.Project.parseRunpath(Project.java:381)
[bndprepare]	at aQute.bnd.build.Project.prepare(Project.java:286)
[bndprepare]	at aQute.bnd.build.Project.getBootclasspath(Project.java:737)
[bndprepare]	at aQute.bnd.build.Project._p_bootclasspath(Project.java:796)
[bndprepare]	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[bndprepare]	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[bndprepare]	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[bndprepare]	at java.lang.reflect.Method.invoke(Method.java:616)
[bndprepare]	at aQute.lib.osgi.Macro.doCommand(Macro.java:210)
[bndprepare]	at aQute.lib.osgi.Macro.doCommands(Macro.java:186)
[bndprepare]	at aQute.lib.osgi.Macro.replace(Macro.java:134)
[bndprepare]	at aQute.lib.osgi.Macro.process(Macro.java:71)
[bndprepare]	at aQute.lib.osgi.Macro.process(Macro.java:86)
[bndprepare]	at aQute.lib.osgi.Macro.process(Macro.java:58)
[bndprepare]	at aQute.lib.osgi.Macro.process(Macro.java:53)
[bndprepare]	at aQute.lib.osgi.Macro.process(Macro.java:949)
[bndprepare]	at aQute.lib.osgi.Macro.getFlattenedProperties(Macro.java:911)
[bndprepare]	at aQute.lib.osgi.Processor.getFlattenedProperties(Processor.java:919)
[bndprepare]	at aQute.bnd.ant.PrepareTask.execute(PrepareTask.java:38)
[bndprepare]	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[bndprepare]	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[bndprepare]	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[bndprepare]	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[bndprepare]	at java.lang.reflect.Method.invoke(Method.java:616)
[bndprepare]	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[bndprepare]	at org.apache.tools.ant.Task.perform(Task.java:348)
[bndprepare]	at org.apache.tools.ant.Target.execute(Target.java:390)
[bndprepare]	at org.apache.tools.ant.Target.performTasks(Target.java:411)
[bndprepare]	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[bndprepare]	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[bndprepare]	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[bndprepare]	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[bndprepare]	at org.apache.tools.ant.Main.runBuild(Main.java:809)
[bndprepare]	at org.apache.tools.ant.Main.startAnt(Main.java:217)
[bndprepare]	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[bndprepare]	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[bndprepare] java.net.UnknownHostException: raw.github.com
[bndprepare]	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:175)
[bndprepare]	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
[bndprepare]	at java.net.Socket.connect(Socket.java:546)
[bndprepare]	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:579)
[bndprepare]	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
[bndprepare]	at sun.net.NetworkClient.doConnect(NetworkClient.java:178)
[bndprepare]	at sun.net.www.http.HttpClient.openServer(HttpClient.java:409)
[bndprepare]	at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
[bndprepare]	at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:275)
[bndprepare]	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:332)
[bndprepare]	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
[bndprepare]	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:876)
[bndprepare]	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
[bndprepare]	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)
[bndprepare]	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
[bndprepare]	at java.net.URL.openStream(URL.java:1029)
[bndprepare]	at aQute.lib.deployer.obr.AbstractBaseOBR.init(AbstractBaseOBR.java:112)
[bndprepare]	at aQute.lib.deployer.obr.AbstractBaseOBR.getHandles(AbstractBaseOBR.java:165)
[bndprepare]	at aQute.lib.deployer.obr.AbstractBaseOBR.resolveBundle(AbstractBaseOBR.java:409)
[bndprepare]	at aQute.lib.deployer.obr.AbstractBaseOBR.getHandle(AbstractBaseOBR.java:193)
[bndprepare]	at aQute.lib.deployer.obr.AbstractBaseOBR.get(AbstractBaseOBR.java:186)
[bndprepare]	at aQute.bnd.build.Project.getBundle(Project.java:953)
[bndprepare]	at aQute.bnd.build.Project.getBundles(Project.java:458)
[bndprepare]	at aQute.bnd.build.Project.parseRunpath(Project.java:381)
[bndprepare]	at aQute.bnd.build.Project.prepare(Project.java:286)
[bndprepare]	at aQute.bnd.build.Project.getBootclasspath(Project.java:737)
[bndprepare]	at aQute.bnd.build.Project._p_bootclasspath(Project.java:796)
[bndprepare]	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[bndprepare]	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[bndprepare]	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[bndprepare]	at java.lang.reflect.Method.invoke(Method.java:616)
[bndprepare]	at aQute.lib.osgi.Macro.doCommand(Macro.java:210)
[bndprepare]	at aQute.lib.osgi.Macro.doCommands(Macro.java:186)
[bndprepare]	at aQute.lib.osgi.Macro.replace(Macro.java:134)
[bndprepare]	at aQute.lib.osgi.Macro.process(Macro.java:71)
[bndprepare]	at aQute.lib.osgi.Macro.process(Macro.java:86)
[bndprepare]	at aQute.lib.osgi.Macro.process(Macro.java:58)
[bndprepare]	at aQute.lib.osgi.Macro.process(Macro.java:53)
[bndprepare]	at aQute.lib.osgi.Macro.process(Macro.java:949)
[bndprepare]	at aQute.lib.osgi.Macro.getFlattenedProperties(Macro.java:911)
[bndprepare]	at aQute.lib.osgi.Processor.getFlattenedProperties(Processor.java:919)
[bndprepare]	at aQute.bnd.ant.PrepareTask.execute(PrepareTask.java:38)
[bndprepare]	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[bndprepare]	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[bndprepare]	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[bndprepare]	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[bndprepare]	at java.lang.reflect.Method.invoke(Method.java:616)
[bndprepare]	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[bndprepare]	at org.apache.tools.ant.Task.perform(Task.java:348)
[bndprepare]	at org.apache.tools.ant.Target.execute(Target.java:390)
[bndprepare]	at org.apache.tools.ant.Target.performTasks(Target.java:411)
[bndprepare]	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[bndprepare]	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[bndprepare]	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[bndprepare]	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[bndprepare]	at org.apache.tools.ant.Main.runBuild(Main.java:809)
[bndprepare]	at org.apache.tools.ant.Main.startAnt(Main.java:217)
[bndprepare]	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[bndprepare]	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[bndprepare] 1 Errors
[bndprepare] junit.osgi;version=3.8 Not found in [/home/ferry/vcs/pelagic/bndtools/cnf/cache r/w=false, aQute.lib.deployer.obr.OBR@5cac6a45, aQute.lib.deployer.obr.OBR@3b75078b, Eclipse-3.5.2]
[bndprepare] Errors during Eclipse Path inspection
[bndprepare]	at aQute.bnd.ant.PrepareTask.execute(PrepareTask.java:40)
[bndprepare]	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[bndprepare]	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[bndprepare]	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[bndprepare]	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[bndprepare]	at java.lang.reflect.Method.invoke(Method.java:616)
[bndprepare]	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[bndprepare]	at org.apache.tools.ant.Task.perform(Task.java:348)
[bndprepare]	at org.apache.tools.ant.Target.execute(Target.java:390)
[bndprepare]	at org.apache.tools.ant.Target.performTasks(Target.java:411)
[bndprepare]	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[bndprepare]	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[bndprepare]	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[bndprepare]	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[bndprepare]	at org.apache.tools.ant.Main.runBuild(Main.java:809)
[bndprepare]	at org.apache.tools.ant.Main.startAnt(Main.java:217)
[bndprepare]	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[bndprepare]	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

BUILD FAILED
/home/ferry/vcs/pelagic/bndtools/cnf/build.xml:31: Errors during Eclipse Path inspection

Total time: 8 seconds
```