Results 1 to 2 of 2
  1. #1
    andre26 is offline Member
    Join Date
    Feb 2010
    Posts
    2
    Rep Power
    0

    Default UnresolvedAddressException for getZoneStrings!

    Hi to everyone,
    I'm looking for a few days for the solution to an UnresolvedAddressException I can't figure out!
    It seems it's quite a challenging problem, since I couldn't even find other info on the net!
    I'm working with OSGi framework on JamVM.
    I get this exception when using Date.toString o SimpleDateFormat on a Calendar object. I can't understand why the bundle tries to connect after the getZoneStrings function. It seems it cannot find the locale but I'm not sure this is the problem.
    I tried adding the file /etc/timezone (that was missing) but it didn't solve the problem.
    Here's the complete stack trace of the exception:

    adsdebian:/usr/local/bundle# org.osgi.framework.BundleException: Activator start error in bundle zApp_RoadPricing [24].
    at org.apache.felix.framework.Felix.startBundle(Felix .java:1506)
    at org.apache.felix.framework.BundleImpl.start(Bundle Impl.java:774)
    at org.apache.felix.shell.impl.StartCommandImpl.execu te(StartCommandImpl.java:105)
    at org.apache.felix.shell.impl.Activator$ShellService Impl.executeCommand(Activator.java:291)
    at org.apache.felix.shell.remote.Shell.run(Shell.java :109)
    at java.lang.Thread.run(Thread.java:743)
    Caused by: java.nio.channels.UnresolvedAddressException
    at gnu.java.nio.SocketChannelImpl.connect(SocketChann elImpl.java:160)
    at gnu.java.net.PlainSocketImpl.connect(PlainSocketIm pl.java:281)
    at java.net.Socket.connect(Socket.java:454)
    at java.net.Socket.connect(Socket.java:414)
    at gnu.java.net.protocol.http.HTTPConnection.getSocke t(HTTPConnection.java:719)
    at gnu.java.net.protocol.http.HTTPConnection.getOutpu tStream(HTTPConnection.java:800)
    at gnu.java.net.protocol.http.Request.dispatch(Reques t.java:291)
    at gnu.java.net.protocol.http.HTTPURLConnection.conne ct(HTTPURLConnection.java:219)
    at gnu.java.net.protocol.http.HTTPURLConnection.getHe aderField(HTTPURLConnection.java:582)
    at java.net.URLConnection.getHeaderFieldInt(URLConnec tion.java:426)
    at java.net.URLConnection.getContentLength(URLConnect ion.java:302)
    at gnu.java.net.loader.RemoteURLLoader.getResource(Re moteURLLoader.java:79)
    at java.net.URLClassLoader.findResources(URLClassLoad er.java:720)
    at java.lang.ClassLoader.getResources(ClassLoader.jav a:640)
    at gnu.classpath.ServiceFactory.lookupProviders(Servi ceFactory.java:286)
    at java.util.ServiceLoader$1.hasNext(ServiceLoader.ja va:163)
    at java.text.DateFormatSymbols.getZoneStrings(DateFor matSymbols.java:123)
    at java.text.DateFormatSymbols.<init>(DateFormatSymbo ls.java:192)
    at java.text.SimpleDateFormat.<init>(SimpleDateFormat .java:448)
    at java.text.SimpleDateFormat.<init>(SimpleDateFormat .java:430)
    at crf.opengate.app.roadpricing.RoadPricing.<init>(Ro adPricing.java:109)
    at java.lang.reflect.Constructor.constructNative(Nati ve Method)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:328)
    at java.lang.Class.newInstance(Class.java:1154)
    at org.apache.felix.framework.Felix.createBundleActiv ator(Felix.java:3341)
    at org.apache.felix.framework.Felix.startBundle(Felix .java:1453)
    ...5 more



    Is there anyone who could help me, please?
    Thanks,
    Andrea

  2. #2
    andre26 is offline Member
    Join Date
    Feb 2010
    Posts
    2
    Rep Power
    0

    Default problem solved!

    Actually the problem was about class reference due to problems of the felix framework I used!
    I could expect everything apart from that!
    I simply updated my felix version to 2.0.3 and everything worked!
    Thanks,
    Andrea

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •