Jetty
  1. Jetty
  2. JETTY-497

error in the cometd java.lang.NoSuchMethodError: org.mortbay.util.ajax.JSON.getStringBufferSize()

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Bayeux
    • Labels:
      None
    • Number of attachments :
      0

      Description

      using the last version of the svn :
      $ svn info
      Path: .
      URL: http://svn.codehaus.org/jetty-contrib/jetty/trunk/contrib/cometd/demo
      Repository UUID: 75f45e39-591e-0410-848d-dd46f672e9f0
      Revision: 638
      Node Kind: directory
      Schedule: normal
      Last Changed Author: gregw
      Last Changed Rev: 638
      Last Changed Date: 2008-01-11 05:35:56 +0100 (Fri, 11 Jan 2008)
      Properties Last Updated: 2007-12-20 17:08:16 +0100 (Thu, 20 Dec 2007)
      $

      I have the following error:

      $ ~/java/maven2/bin/mvn jetty:run
      ...
      error:
      java.lang.NoSuchMethodError: org.mortbay.util.ajax.JSON.getStringBufferSize()I
      at org.mortbay.cometd.MessageImpl.getJSON(MessageImpl.java:86)
      at org.mortbay.cometd.JSONTransport.send(JSONTransport.java:81)
      at org.mortbay.cometd.AbstractBayeux$HandshakeHandler.handle(AbstractBayeux.java:887)
      at org.mortbay.cometd.AbstractBayeux.handle(AbstractBayeux.java:291)
      at org.mortbay.cometd.continuation.ContinuationCometdServlet.doPost(ContinuationCometdServlet.java:103)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at org.mortbay.cometd.AbstractCometdServlet.service(AbstractCometdServlet.java:222)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)

        Activity

        Hide
        Jan Bartel added a comment -

        Jeremi,

        Did you do a clean build of jetty at the top level? I've just checked out jetty head (svn rev 2308) and done a full clean build and the cometd demo (at svn rev 638) is running fine for me.

        cheers
        Jan

        Show
        Jan Bartel added a comment - Jeremi, Did you do a clean build of jetty at the top level? I've just checked out jetty head (svn rev 2308) and done a full clean build and the cometd demo (at svn rev 638) is running fine for me. cheers Jan
        Hide
        jeremi Joslin added a comment -

        no i've just checkout http://svn.codehaus.org/jetty-contrib/jetty/trunk/contrib/cometd
        So all the other dependencies on jetty are taken from the maven repository: http://snapshots.repository.codehaus.org

        Is the version on the snapshot repository too old?

        Show
        jeremi Joslin added a comment - no i've just checkout http://svn.codehaus.org/jetty-contrib/jetty/trunk/contrib/cometd So all the other dependencies on jetty are taken from the maven repository: http://snapshots.repository.codehaus.org Is the version on the snapshot repository too old?
        Hide
        jeremi Joslin added a comment -

        I hit the button too fast...

        Jan, thanks for your quick answer,
        jeremi

        Show
        jeremi Joslin added a comment - I hit the button too fast... Jan, thanks for your quick answer, jeremi
        Hide
        Jan Bartel added a comment -

        No problem.

        Jan

        Show
        Jan Bartel added a comment - No problem. Jan
        Hide
        jeremi Joslin added a comment -

        it still does not work, i think it's because the snapshot of jetty-utils on the snapshot repository is too old.

        when i try to compile in the parent directory i get :

        [INFO] Compiling 22 source files to /Users/jeremijoslin/src/cometd-jetty/bayeux/target/classes
        [INFO] ------------------------------------------------------------------------
        [ERROR] BUILD FAILURE
        [INFO] ------------------------------------------------------------------------
        [INFO] Compilation failure

        /Users/jeremijoslin/src/cometd-jetty/bayeux/src/main/java/org/mortbay/cometd/MessagePool.java:[112,18] cannot find symbol
        symbol : method setReader(java.io.Reader)
        location: class org.mortbay.util.ajax.JSON.ReaderSource

        /Users/jeremijoslin/src/cometd-jetty/bayeux/src/main/java/org/mortbay/cometd/MessageImpl.java:[85,38] cannot find symbol
        symbol : method getDefault()
        location: class org.mortbay.util.ajax.JSON

        /Users/jeremijoslin/src/cometd-jetty/bayeux/src/main/java/org/mortbay/cometd/MessageImpl.java:[86,52] cannot find symbol
        symbol : method getStringBufferSize()
        location: class org.mortbay.util.ajax.JSON

        is it possible to update jetty-utils on the snapshot repository?

        Show
        jeremi Joslin added a comment - it still does not work, i think it's because the snapshot of jetty-utils on the snapshot repository is too old. when i try to compile in the parent directory i get : [INFO] Compiling 22 source files to /Users/jeremijoslin/src/cometd-jetty/bayeux/target/classes [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure /Users/jeremijoslin/src/cometd-jetty/bayeux/src/main/java/org/mortbay/cometd/MessagePool.java: [112,18] cannot find symbol symbol : method setReader(java.io.Reader) location: class org.mortbay.util.ajax.JSON.ReaderSource /Users/jeremijoslin/src/cometd-jetty/bayeux/src/main/java/org/mortbay/cometd/MessageImpl.java: [85,38] cannot find symbol symbol : method getDefault() location: class org.mortbay.util.ajax.JSON /Users/jeremijoslin/src/cometd-jetty/bayeux/src/main/java/org/mortbay/cometd/MessageImpl.java: [86,52] cannot find symbol symbol : method getStringBufferSize() location: class org.mortbay.util.ajax.JSON is it possible to update jetty-utils on the snapshot repository?
        Hide
        Jan Bartel added a comment -

        I've pushed a new snapshot of jetty svn head.

        HTH
        Jan

        Show
        Jan Bartel added a comment - I've pushed a new snapshot of jetty svn head. HTH Jan
        Hide
        jeremi Joslin added a comment -

        thanks it's working now.

        Show
        jeremi Joslin added a comment - thanks it's working now.

          People

          • Assignee:
            Jan Bartel
            Reporter:
            jeremi Joslin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: