Skip to content

Instantly share code, notes, and snippets.

View sebastienblanc's full-sized avatar

Sebastien Blanc sebastienblanc

View GitHub Profile
I/SystemServer( 277): Window Manager
E/SoundPool( 277): error loading /system/media/audio/ui/Lock.ogg
W/KeyguardViewMediator( 277): failed to load lock sound from /system/media/audio/ui/Lock.ogg
E/SoundPool( 277): error loading /system/media/audio/ui/Unlock.ogg
W/KeyguardViewMediator( 277): failed to load unlock sound from /system/media/audio/ui/Unlock.ogg
I/InputManager( 277): Starting input manager
I/SystemServer( 277): No Bluetooh Service (emulator)
I/SystemServer( 277): Input Method Service
W/InputMethodManagerService( 277): Couldn't create dir.: /data/system/inputmethod
I/EventHub( 277): New device: id=1, fd=89, path='/dev/input/event0', name='qwerty2', classes=0x7, configuration='/system/usr/idc/qwerty2.idc', keyLayout='/system/usr/keylayout/qwerty.kl', keyCharacterMap='/system/usr/keychars/qwerty2.kcm', builtinKeyboard=true, usingSuspendBlockIoctl=false, usingClockIoctl=false

Environment Setup

Forge

  • Download Forge 1.3.0.Final http://forge.jboss.org/index.html

  • Unpack Forge

  • In JBoss Tools, in Forge preferences, point to the fresh installed Forge folder.

  • Start the forge console and install the Aerogear Scaffold plugin : forge git-plugin git://github.com/aerogear/aerogear-forge-scaffold --ref minidemo

14:19:21,822 ERROR [org.jboss.weld.Bean] (http--0.0.0.0-8080-7) WELD-000019 Error destroying an instance Managed Bean [class org.aerogear.connectivity.jpa.dao.SimplePushApplicationDaoImpl] with qualifiers [@Any @Default] of org.aerogear.connectivity.jpa.dao.SimplePushApplicationDaoImpl@4863ab41
14:19:21,823 ERROR [org.jboss.ejb3.invocation] (http--0.0.0.0-8080-7) JBAS014134: EJB Invocation failed on component SenderEndpoint for method public javax.ws.rs.core.Response org.aerogear.connectivity.rest.sender.SenderEndpoint.broadcastSimplePush(java.util.Map,java.lang.String): javax.ejb.EJBException: Unexpected Error
at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:163) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:230) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ejb
[nioEventLoopGroup-2-1] WARN io.netty.channel.DefaultChannelPipeline - Discarded 1 outbound message(s) that reached at the head of the pipeline. Please check your pipeline configuration.
[nioEventLoopGroup-2-1] WARN io.netty.channel.DefaultChannelPipeline - An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
io.netty.handler.ssl.NotSslRecordException: not an SSL/TLS record: 474554202f73696d706c657075736820485454502f312e310d0a557067726164653a20776562736f636b65740d0a436f6e6e656374696f6e3a20557067726164650d0a486f73743a206c6f63616c686f73743a373737370d0a4f726967696e3a20687474703a2f2f6c6f63616c686f73743a383038300d0a507261676d613a206e6f2d63616368650d0a43616368652d436f6e74726f6c3a206e6f2d63616368650d0a5365632d576562536f636b65742d4b65793a205836497533695a5352544c326c5667326e72374d57413d3d0d0a5365632d576562536f636b65742d56657273696f6e3a2031330d0a5365632d576562536f636b65742d457874656e73696f6e733a20782d7765626b697
import org.jboss.aerogear.simplepush.protocol.MessageType
import org.jboss.aerogear.simplepush.protocol.impl.json.JsonUtil
import org.jboss.aerogear.simplepush.protocol.impl.HandshakeMessageImpl
import org.jboss.aerogear.simplepush.protocol.HandshakeResponse
import org.jboss.aerogear.simplepush.server.SimplePushServer
import org.jboss.aerogear.simplepush.server.DefaultSimplePushServer
import org.jboss.aerogear.simplepush.protocol.RegisterResponse
import org.jboss.aerogear.simplepush.protocol.impl.RegisterImpl
import org.jboss.aerogear.simplepush.server.datastore.InMemoryDataStore
import org.jboss.aerogear.simplepush.protocol.NotificationMessage
[sebastien@sblanc pushee]$ curl -v -H "Accept: application/json" -H "Content-type: application/json" -H "ag-mobile-variant: dfcc2607-8a59-4582-b759-308af400fd61" -X POST -d '{"deviceToken" : "1234567890ABCDEF", "deviceType" : "ANDROID", "mobileOperatingSystem" : "android", "osVersion" : "4.0.1" }' http://localhost:8080/ag-push/rest/registry/device
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1...
* connected
* Connected to localhost (127.0.0.1) port 8080 (#0)
> POST /ag-push/rest/registry/device HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-redhat-linux-gnu) libcurl/7.24.0 NSS/3.13.5.0 zlib/1.2.5 libidn/1.24 libssh2/1.4.1
> Host: localhost:8080
> Accept: application/json
> Content-type: application/json
[sebastien@sblanc pushee]$ curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"key":"blah","alert":"Fuck YEa"}' http://keynotepushserver-lholmqui.rhcloud.com/ag-push/rest/sender/broadcast/8a5659fc3ed3c3d6013ef5fdb1e50007
* About to connect() to keynotepushserver-lholmqui.rhcloud.com port 80 (#0)
* Trying 75.101.228.201...
* connected
* Connected to keynotepushserver-lholmqui.rhcloud.com (75.101.228.201) port 80 (#0)
> POST /ag-push/rest/sender/broadcast/8a5659fc3ed3c3d6013ef5fdb1e50007 HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-redhat-linux-gnu) libcurl/7.24.0 NSS/3.13.5.0 zlib/1.2.5 libidn/1.24 libssh2/1.4.1
> Host: keynotepushserver-lholmqui.rhcloud.com
> Accept: application/json
> Content-type: application/json
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.223s
[INFO] Finished at: Tue Jun 04 17:45:05 CEST 2013
[INFO] Final Memory: 11M/205M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project android-todos: Could not resolve dependencies for project org.jboss.aerogear:android-todos:apk:1.0.1: Could not find artifact com.google.android.maps:maps:jar:17_r2 in jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public-jboss/) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
06-04 21:05:50.916: E/SupportLoaderAdapter(1479): timeout < 0
06-04 21:05:50.916: E/SupportLoaderAdapter(1479): java.lang.IllegalArgumentException: timeout < 0
06-04 21:05:50.916: E/SupportLoaderAdapter(1479): at java.net.Socket.setSoTimeout(Socket.java:653)
06-04 21:05:50.916: E/SupportLoaderAdapter(1479): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.isStale(HttpConnection.java:242)
06-04 21:05:50.916: E/SupportLoaderAdapter(1479): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionPool.get(HttpConnectionPool.java:77)
06-04 21:05:50.916: E/SupportLoaderAdapter(1479): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getHttpConnection(HttpURLConnectionImpl.java:285)
06-04 21:05:50.916: E/SupportLoaderAdapter(1479): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.makeConnection(HttpURLConnectionImpl.java:267)
06-04 21:05:50.916: E/SupportLoaderAdapter(1479): at org.apache.harmony.luni.internal.n

Environment Setup

Forge

  • Download Forge 1.3.0.Final http://forge.jboss.org/index.html

  • Unpack Forge

  • Start the forge forge console and install the Aerogear Scaffold plugin : forge git-plugin git://github.com/aerogear/aerogear-forge-scaffold