tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Can Eskikaya <can.eskik...@novastor.com>
Subject AW: Unsupported HTTP Request Method :OPTIONS
Date Mon, 30 Sep 2013 09:40:16 GMT
Thank you, i tried out with the build openejb-standalone-4.6.0-20130930.040836-201<https://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-standalone/4.6.0-SNAPSHOT/openejb-standalone-4.6.0-20130930.040836-201.zip>.
Now there is no exception, but also there is no response from ejb. The session is open till
I abort the request.
Is there a special implementation required?

The HEAD method returned the right response, but the EJB logged an exception:

Sep 30, 2013 10:36:54 AM org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
WARNING: javax.ws.rs.WebApplicationException
        at org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod(JAXRSUtils.java:416)
        at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:216)
        at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:91)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:237)
        at org.apache.openejb.server.cxf.rs.CxfRsHttpListener.onMessage(CxfRsHttpListener.java:140)
        at org.apache.openejb.server.httpd.OpenEJBHttpRegistry$ClassLoaderHttpListener.onMessage(OpenEJBHttpRegistry.java:99)
        at org.apache.openejb.server.httpd.HttpListenerRegistry.onMessage(HttpListenerRegistry.java:71)
        at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:251)
        at org.apache.openejb.server.httpd.OpenEJBHttpServer.processRequest(OpenEJBHttpServer.java:193)
        at org.apache.openejb.server.httpd.OpenEJBHttpServer.service(OpenEJBHttpServer.java:108)
        at org.apache.openejb.server.httpd.HttpEjbServer.service(HttpEjbServer.java:63)
        at org.apache.openejb.server.ServerServiceFilter.service(ServerServiceFilter.java:64)
        at org.apache.openejb.server.ServerServiceFilter.service(ServerServiceFilter.java:64)
        at org.apache.openejb.server.ServiceStats.service(ServiceStats.java:54)
        at org.apache.openejb.server.ServerServiceFilter.service(ServerServiceFilter.java:64)
        at org.apache.openejb.server.ServiceLogger.service(ServiceLogger.java:93)
        at org.apache.openejb.server.ServerServiceFilter.service(ServerServiceFilter.java:64)
        at org.apache.openejb.server.ServicePool.access$201(ServicePool.java:39)
        at org.apache.openejb.server.ServicePool$3.run(ServicePool.java:200)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)



Von: Romain Manni-Bucau [via OpenEJB] [mailto:ml-node+s979440n4665327h73@n4.nabble.com]
Gesendet: Freitag, 27. September 2013 17:22
An: Can Eskikaya
Betreff: Re: Unsupported HTTP Request Method :OPTIONS

thanks, that's fixed: https://issues.apache.org/jira/browse/OPENEJB-2038

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/9/27 Can Eskikaya <[hidden email]</user/SendEmail.jtp?type=node&node=4665327&i=0>>

> I have a openejb 4.6.0 standalone server running and a method with
> javax.ws.rs.OPTIONS; annotaded.
>
> The server starts and shows me the line:
> ep 27, 2013 4:07:03 PM org.apache.openejb.server.cxf.rs.CxfRsHttpListener
> logEndpoints
> NFO:           OPTIONS http://0.0.0.0:4204/dcservice/api/node/show
> ->      String getFunctions()
>
> But if i call the URI with http method OPTIONS, the server response the
> error:
>
> java.io.IOException: Unsupported HTTP Request Method :OPTIONS
>         at
>
> org.apache.openejb.server.httpd.HttpRequestImpl.parseMethod(HttpRequestImpl.java:433)
>         at
>
> org.apache.openejb.server.httpd.HttpRequestImpl.readRequestLine(HttpRequestImpl.java:399)
>         at
>
> org.apache.openejb.server.httpd.HttpRequestImpl.readMessage(HttpRequestImpl.java:337)
>         at
>
> org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:217)
>         at
>
> org.apache.openejb.server.httpd.OpenEJBHttpServer.processRequest(OpenEJBHttpServer.java:193)
>         at
>
> org.apache.openejb.server.httpd.OpenEJBHttpServer.service(OpenEJBHttpServer.java:108)
>         at
>
> org.apache.openejb.server.httpd.HttpEjbServer.service(HttpEjbServer.java:63)
>         at
>
> org.apache.openejb.server.ServerServiceFilter.service(ServerServiceFilter.java:64)
>         at
>
> org.apache.openejb.server.ServerServiceFilter.service(ServerServiceFilter.java:64)
>         at
> org.apache.openejb.server.ServiceStats.service(ServiceStats.java:54)
>         at
>
> org.apache.openejb.server.ServerServiceFilter.service(ServerServiceFilter.java:64)
>         at
> org.apache.openejb.server.ServiceLogger.service(ServiceLogger.java:93)
>         at
>
> org.apache.openejb.server.ServerServiceFilter.service(ServerServiceFilter.java:64)
>         at
> org.apache.openejb.server.ServicePool.access$201(ServicePool.java:39)
>         at
> org.apache.openejb.server.ServicePool$3.run(ServicePool.java:200)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
> Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
>         at java.lang.Thread.run(Unknown Source)
>
> *Is the method realy unsuported?*
>
>
>
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Unsupported-HTTP-Request-Method-OPTIONS-tp4665322.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

________________________________
If you reply to this email, your message will be added to the discussion below:
http://openejb.979440.n4.nabble.com/Unsupported-HTTP-Request-Method-OPTIONS-tp4665322p4665327.html
To unsubscribe from Unsupported HTTP Request Method :OPTIONS, click here<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4665322&code=Y2FuLmVza2lrYXlhQG5vdmFzdG9yLmNvbXw0NjY1MzIyfDI1MDI1MzUzNw==>.
NAML<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://openejb.979440.n4.nabble.com/Unsupported-HTTP-Request-Method-OPTIONS-tp4665322p4665361.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message