Announcement Announcement Module
Collapse
No announcement yet.
Can not install jtds Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can not install jtds

    I try to install MSSQL jdbc driver, but encountered the following error. Please help.

    roo> addon install id --searchResultId 13
    Target resource(s):
    -------------------
    Spring Roo - Wrapping - jtds (1.2.4.0001)

    Deploying...done.

    [Thread-2] [org.apache.felix.bundlerepository [2]] Resolver: Install error - org
    .springframework.roo.wrapping.jtds
    org.apache.felix.log.LogException: java.lang.IllegalStateException: j
    ava.lang.IllegalStateException: Public key ID '0x00B5050F' not available from ke
    y server
    at org.springframework.roo.felix.pgp.PgpServiceImpl.i sResourceSig
    nedBySignature(PgpServiceImpl.java:423)
    at org.springframework.roo.felix.HttpPgpUrlStreamHand lerServiceIm
    pl.openConnection(HttpPgpUrlStreamHandlerServiceIm pl.java:100)
    at org.apache.felix.framework.URLHandlersStreamHandle rProxy.openC
    onnection(URLHandlersStreamHandlerProxy.java:271)
    at java.net.URL.openConnection(Unknown Source)
    at java.net.URL.openStream(Unknown Source)
    at org.apache.felix.bundlerepository.ResolverImpl.dep loy(Resolver
    Impl.java:550)
    at org.apache.felix.bundlerepository.ObrCommandImpl._ deploy(ObrCo
    mmandImpl.java:397)
    at org.apache.felix.bundlerepository.ObrCommandImpl.d eploy(ObrCom
    mandImpl.java:335)
    at org.apache.felix.bundlerepository.ObrCommandImpl.e xecute(ObrCo
    mmandImpl.java:114)
    at org.apache.felix.shell.impl.Activator$ShellService Impl.execute
    Command(Activator.java:286)
    at org.springframework.roo.felix.FelixDelegator.perfo rm(FelixDele
    gator.java:218)
    at org.springframework.roo.felix.FelixDelegator.obrSt art(FelixDel
    egator.java:207)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.springframework.roo.support.util.ReflectionUti ls.invokeMet
    hod(ReflectionUtils.java:191)
    at org.springframework.roo.process.manager.ProcessMan agerHostedEx
    ecutionStrategy$1.callback(ProcessManagerHostedExe cutionStrategy.java:49)
    at org.springframework.roo.process.manager.internal.D efaultProces
    sManager.doTransactionally(DefaultProcessManager.j ava:178)
    at org.springframework.roo.process.manager.internal.D efaultProces
    sManager.execute(DefaultProcessManager.java:141)
    at org.springframework.roo.process.manager.ProcessMan agerHostedEx
    ecutionStrategy.execute(ProcessManagerHostedExecut ionStrategy.java:47)
    at org.springframework.roo.shell.AbstractShell.execut eCommand(Abs
    tractShell.java:165)
    at org.springframework.roo.addon.roobot.client.AddOnR ooBotOperati
    onsImpl.installAddon(AddOnRooBotOperationsImpl.jav a:186)
    at org.springframework.roo.addon.roobot.client.AddOnR ooBotOperati
    onsImpl.installAddOn(AddOnRooBotOperationsImpl.jav a:170)
    at org.springframework.roo.addon.roobot.client.AddOnC ommands.inst
    allId(AddOnCommands.java:69)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.springframework.roo.support.util.ReflectionUti ls.invokeMet
    hod(ReflectionUtils.java:191)
    at org.springframework.roo.process.manager.ProcessMan agerHostedEx
    ecutionStrategy$1.callback(ProcessManagerHostedExe cutionStrategy.java:49)
    at org.springframework.roo.process.manager.internal.D efaultProces
    sManager.doTransactionally(DefaultProcessManager.j ava:178)
    at org.springframework.roo.process.manager.internal.D efaultProces
    sManager.execute(DefaultProcessManager.java:141)
    at org.springframework.roo.process.manager.ProcessMan agerHostedEx
    ecutionStrategy.execute(ProcessManagerHostedExecut ionStrategy.java:47)
    at org.springframework.roo.shell.AbstractShell.execut eCommand(Abs
    tractShell.java:165)
    at org.springframework.roo.shell.jline.JLineShell.pro mptLoop(JLin
    eShell.java:358)
    at org.springframework.roo.shell.jline.JLineShell.run (JLineShell.
    java:132)
    at java.lang.Thread.run(Unknown Source)
    Caused by: org.apache.felix.log.LogException: java.lang.IllegalStateE
    xception: Public key ID '0x00B5050F' not available from key server
    at org.springframework.roo.felix.pgp.PgpServiceImpl.g etPublicKey(
    PgpServiceImpl.java:290)
    at org.springframework.roo.felix.pgp.PgpServiceImpl.i sResourceSig
    nedBySignature(PgpServiceImpl.java:402)
    ... 37 more
    Caused by: org.apache.felix.log.LogException: java.net.SocketExceptio
    n: Connection reset
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native
    Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown
    Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(Unkn
    own Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$6.run( Unknown Sour
    ce)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.net.http://www.protocol.http.HttpURLConn...hainedExceptio
    n(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...nputStream(Unk
    nown Source)
    at org.springframework.roo.url.stream.jdk.JdkUrlInput StreamServic
    e$ProgressIndicatingInputStream.<init>(JdkUrlInput StreamService.java:73)
    at org.springframework.roo.url.stream.jdk.JdkUrlInput StreamServic
    e.openConnection(JdkUrlInputStreamService.java:49)
    at org.springframework.roo.felix.pgp.PgpServiceImpl.g etPublicKey(
    PgpServiceImpl.java:287)
    ... 38 more
    Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(Unknown Source)
    at java.io.BufferedInputStream.fill(Unknown Source)
    at java.io.BufferedInputStream.read1(Unknown Source)
    at java.io.BufferedInputStream.read(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...nputStream(Unk
    nown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...eaderField(Unk
    nown Source)
    at java.net.URLConnection.getHeaderFieldInt(Unknown Source)
    at java.net.URLConnection.getContentLength(Unknown Source)
    at org.springframework.roo.url.stream.jdk.JdkUrlInput StreamServic
    e$ProgressIndicatingInputStream.<init>(JdkUrlInput StreamService.java:72)
    ... 40 more
    roo> roo>

  • #2
    This is a known problem. Essentially, the PGP server that Roo used for bundle verification is down. This has been fixed in the latest nightly builds: http://static.springsource.org/downl...hp?project=ROO

    Comment


    • #3
      Thanks, Stefan for the quick reply.

      I have pulled the latest nightly build. Now I am getting a different error below when try to install the jtds driver.
      ...
      57 Y Y 1.2.4.0001 #jdbcdriver driverclass:net.sourceforge.jtds.jdbc.Driver.
      This bundle wraps the standard Maven artifact: jtds-1.2.4.
      ...
      com.aholdusa.itweb roo> addon install id 57
      [Fatal Error] :1:1: Content is not allowed in prolog.
      Content is not allowed in prolog.
      com.aholdusa.itweb roo>

      Jin,

      Comment


      • #4
        Hi Jin,

        This is a known issue which I just fixed in Roo master. See https://jira.springframework.org/browse/ROO-2062

        So please download the latest build snapshot and try again.

        -Stefan

        Comment


        • #5
          I ran into the same problem

          Hey,

          I ran into the same problem. I had to change the config.properties in conf directory. I changed the pgp.keyserver.url from "http://keyserver.ubuntu.com/pks/lookup?op=get&search=" to "http://keyserver.ubuntu.com:11371/pk...op=get&search="

          Hope it helps!

          Comment

          Working...
          X