perfect!
On Mon, Mar 10, 2014 at 5:27 PM, Ioannis Christodoulou <
io.christod(a)gmail.com> wrote:
Wow, that was it, my request was missing the "Accept:
application/json"
header.
thanks a lot guys!
Ευχαριστώ πολύ,
Ιωάννης Χριστοδούλου
On Mon, Mar 10, 2014 at 6:24 PM, Matthias Wessendorf <matzew(a)apache.org>wrote:
> application/octet-stream.. hrm
>
>
> that's def. something w/ your request.
>
> Can you make sure the following headers are on the request?
>
> -H "Accept: application/json"
> -H "Content-type: application/json"
>
> Thanks!
> Matthias
>
>
>
> On Mon, Mar 10, 2014 at 5:10 PM, Ioannis Christodoulou <
> io.christod(a)gmail.com> wrote:
>
>> Hello!
>> I've not tested JBoss AS7, I will try and report back.
>>
>> I did not use either cordova or native android but I created an http
>> request using the android http client (and chrome's postman to replicate
>> the issue).
>> The request I created using Postman in Google Chrome is shown in the
>> attached screenshot:
>> [image: Inline image 1]
>> the full exception stack trace from wildfly is:
>> [0m [33m18:03:45,295 WARN [org.jboss.resteasy.core.ExceptionHandler]
>> (default task-9) Failed executing POST /registry/device:
>> org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could not find
>> MessageBodyWriter for response object of type:
>> org.jboss.aerogear.unifiedpush.model.InstallationImpl of media type:
>> application/octet-stream
>> at
>>
org.jboss.resteasy.core.ServerResponseWriter.writeNomapResponse(ServerResponseWriter.java:67)
>> [resteasy-jaxrs-3.0.6.Final.jar:]
>> at
>>
org.jboss.resteasy.core.SynchronousDispatcher.writeResponse(SynchronousDispatcher.java:427)
>> [resteasy-jaxrs-3.0.6.Final.jar:]
>> at
>>
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:376)
>> [resteasy-jaxrs-3.0.6.Final.jar:]
>> at
>>
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)
>> [resteasy-jaxrs-3.0.6.Final.jar:]
>> at
>>
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)
>> [resteasy-jaxrs-3.0.6.Final.jar:]
>> at
>>
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
>> [resteasy-jaxrs-3.0.6.Final.jar:]
>> at
>>
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
>> [resteasy-jaxrs-3.0.6.Final.jar:]
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>> [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
>> [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)
>> [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
>> [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
>> at
>>
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
>> [undertow-core-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)
>> [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52)
>> [undertow-core-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
>> [undertow-core-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)
>> [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
>> [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
>> [undertow-core-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
>> [undertow-core-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
>> at
>>
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
>> [undertow-core-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
>> [undertow-core-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)
>> [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
>> [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)
>> [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)
>> [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
>> at
>> io.undertow.server.Connectors.executeRootHandler(Connectors.java:168)
>> [undertow-core-1.0.0.Final.jar:1.0.0.Final]
>> at
>> io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687)
>> [undertow-core-1.0.0.Final.jar:1.0.0.Final]
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> [rt.jar:1.7.0_51]
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> [rt.jar:1.7.0_51]
>> at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
>>
>> Thanks!
>>
>> On Mon, Mar 10, 2014 at 2:34 PM, Sebastien Blanc
<scm.blanc(a)gmail.com>wrote:
>>
>>> Hi !
>>> I've done some testing and deployed a UPS on OpenShift using the
>>> Wildfly cartdridge :
http://wildflyups-sblanc.rhcloud.com (admin /
>>> aerogear)
>>> I tested 2 android apps : 1 using Cordova and 1 using Native Android.
>>> For both it did not get the error.
>>>
>>> Could you maybe share the code that you are using to register your
>>> device ?
>>> Was this code working on previous version (like JBoss AS7) ?
>>>
>>> Thx,
>>>
>>>
>>>
>>> On Mon, Mar 10, 2014 at 11:14 AM, Matthias Wessendorf <
>>> matzew(a)apache.org> wrote:
>>>
>>>> Hello Ioannis!
>>>>
>>>> thanks for filing AEROGEAR-1455. I just did a quick check w/ a CURL
>>>> based (dummy) registration - that one worked fine.
>>>>
>>>> Are you using the native Android library for the actual registration ?
>>>> Or are you using our Cordova bits?
>>>>
>>>> Thanks!
>>>> Matthias
>>>>
>>>>
>>>> On Fri, Mar 7, 2014 at 5:53 PM, Matthias Wessendorf
<matzew(a)apache.org
>>>> > wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> thanks for reporting - yes a JIRA is perfect - will give it a look
>>>>> after the weekend.
>>>>>
>>>>> Greetings,
>>>>> Matthias
>>>>>
>>>>>
>>>>> On Fri, Mar 7, 2014 at 5:39 PM, JChrist
<io.christod(a)gmail.com>wrote:
>>>>>
>>>>>> Hello everyone,
>>>>>> I have deployed the Unified push server (latest version, from
master
>>>>>> branch)
>>>>>> on wildfly 8 final. Everything seems to be normal,
>>>>>> except than when an app makes a registration (an android app
>>>>>> installation),
>>>>>> there is the following exception thrown:
>>>>>>
>>>>>> WARN [org.jboss.resteasy.core.ExceptionHandler] (default
task-3)
>>>>>> Failed
>>>>>> executing POST /registry/device:
>>>>>> org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could
not
>>>>>> find
>>>>>> MessageBodyWriter for response object of type:
>>>>>> org.jboss.aerogear.unifiedpush.model.InstallationImpl of media
type:
>>>>>> application/octet-stream
>>>>>>
>>>>>> Is this something known, or should I report it to JIRA?
>>>>>> Thanks!
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>>
http://aerogear-dev.1069024.n5.nabble.com/Unified-Push-Server-in-Wildfly-...
>>>>>> Sent from the aerogear-dev mailing list archive at
Nabble.com.
>>>>>> _______________________________________________
>>>>>> aerogear-dev mailing list
>>>>>> aerogear-dev(a)lists.jboss.org
>>>>>>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Matthias Wessendorf
>>>>>
>>>>> blog:
http://matthiaswessendorf.wordpress.com/
>>>>> sessions:
http://www.slideshare.net/mwessendorf
>>>>> twitter:
http://twitter.com/mwessendorf
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Matthias Wessendorf
>>>>
>>>> blog:
http://matthiaswessendorf.wordpress.com/
>>>> sessions:
http://www.slideshare.net/mwessendorf
>>>> twitter:
http://twitter.com/mwessendorf
>>>>
>>>> _______________________________________________
>>>> aerogear-dev mailing list
>>>> aerogear-dev(a)lists.jboss.org
>>>>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>>
>>>
>>>
>>> _______________________________________________
>>> aerogear-dev mailing list
>>> aerogear-dev(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>
>>
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>
>
>
> --
> Matthias Wessendorf
>
> blog:
http://matthiaswessendorf.wordpress.com/
> sessions:
http://www.slideshare.net/mwessendorf
> twitter:
http://twitter.com/mwessendorf
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
_______________________________________________
aerogear-dev mailing list
aerogear-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev