Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Getting AbstractMethod Exception in Asynchronous Servlet3.0 application

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    3
    My Mood
    Amused
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Unhappy Getting AbstractMethod Exception in Asynchronous Servlet3.0 application

    Hi All,

    I am getting following exception when i am trying to call the servlet and in that servlet at "final AsyncContext context = req.startAsync();" this line.....

    Caused by: java.lang.AbstractMethodError: org.eclipse.jetty.server.Request.startAsync(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)Ljavax/servlet/AsyncContext; at org.apache.cxf.transport.http.Servlet3Continuation Provider$Servlet3Continuation.<init>(Servlet3Conti nuationProvider.java:77)[142:org.apache.cxf.bundle:2.4.0] at org.apache.cxf.transport.http.Servlet3Continuation Provider.getContinuation(Servlet3ContinuationProvi der.java:58)[142:org.apache.cxf.bundle:2.4.0] at org.apache.camel.component.cxf.CxfConsumer$1.getCo ntinuation(CxfConsumer.java:114)[205:org.apache.camel.camel-cxf:2.8.0.SNAPSHOT] at org.apache.camel.component.cxf.CxfConsumer$1.invok e(CxfConsumer.java:66)[205:org.apache.camel.camel-cxf:2.8.0.SNAPSHOT] at org.apache.cxf.interceptor.ServiceInvokerIntercept or$1.run(ServiceInvokerInterceptor.java:58)[142:org.apache.cxf.bundle:2.4.0] at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:441)[:1.6.0_24] at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)[:1.6.0_24] at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)[:1.6.0_24] at org.apache.cxf.workqueue.SynchronousExecutor.execu te(SynchronousExecutor.java:37)[142:org.apache.cxf.bundle:2.4.0] at org.apache.cxf.interceptor.ServiceInvokerIntercept or.handleMessage(ServiceInvokerInterceptor.java:10 6)[142:org.apache.cxf.bundle:2.4.0] ... 34 more

    I am trying to implement the Asynchronous Servlet (using servlet3.0 ) but i am stucked in this exception....please help me out of this......thanks in advance...


  2. #2
    Member
    Join Date
    Feb 2012
    Posts
    106
    My Mood
    Yeehaw
    Thanks
    8
    Thanked 11 Times in 11 Posts

    Default Re: Getting AbstractMethod Exception in Asynchronous Servlet3.0 application

    This is beyond my familliarity, stab in the dark based on how abstract keyword fuctions,
    if the class of the object inside req has the abstract method startAsync();
    another possibility would be if the Class AsyncContext is abstract thus not letting you make an object to fill context.

    if those both check out I would need to see the entire startAsync method for the req objects class. (would be interesting to know more about the req's parents and siblings since we are dealing with abstract classes.

    anyway, its an outside eye looking in. hopefully its helpful.

Similar Threads

  1. Replies: 0
    Last Post: February 24th, 2012, 08:33 AM
  2. asynchronous communication instant messenger program......
    By mythicalone in forum Java Networking
    Replies: 3
    Last Post: November 14th, 2011, 10:33 PM
  3. [SOLVED] Asynchronous Imaging Problem
    By dr3wmurphy in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 14th, 2011, 12:59 AM
  4. Replies: 6
    Last Post: March 25th, 2011, 03:42 PM
  5. Chat application Sign in Problem (maybe : Exception)
    By aymane-tech in forum Java Networking
    Replies: 1
    Last Post: March 23rd, 2011, 11:01 AM

Tags for this Thread