error happened when use red5-client to connect remote red5 server - red5
First I use adobe flash player to connect my red5 server(using rtmps protocal) and it success
rtmps://myred5ServerName:443/live
15:29:05:203 - NetConnection.Connect.Success
But When I use Red5Client to try to connect it , it failed.
I just used the Example code ClientTest.java
public class ClientTest extends RTMPSClient {
private String server = "myred5ServerName";
//private int port = 1935;
//private int port = 5080;
private int port = 443;
//private String application = "oflaDemo";
private String application = "RtmpRelay";
private String filename = "hobbit_vp6.flv";
// live stream (true) or vod stream (false)
private boolean live;
private static boolean finished = false;
public static void main(String[] args) throws InterruptedException {
final ClientTest player = new ClientTest();
// decide whether or not the source is live or vod
//player.setLive(true);
// connect
player.connect();
synchronized (ClientTest.class) {
if (!finished) {
ClientTest.class.wait();
}
}
System.out.println("Ended");
}
public void connect() {
setExceptionHandler(new ClientExceptionHandler() {
#Override
public void handleException(Throwable throwable) {
throwable.printStackTrace();
}
});
setStreamEventDispatcher(streamEventDispatcher);
connect(server, port, application, connectCallback);
}
private IEventDispatcher streamEventDispatcher = new IEventDispatcher() {
public void dispatchEvent(IEvent event) {
System.out.println("ClientStream.dispachEvent()" + event.toString());
}
};
private IPendingServiceCallback methodCallCallback = new IPendingServiceCallback() {
public void resultReceived(IPendingServiceCall call) {
System.out.println("methodCallCallback");
Map<?, ?> map = (Map<?, ?>) call.getResult();
System.out.printf("Response %s\n", map);
}
};
public void getFlvList() {
invoke("demoService.getListOfAvailableFLVs", new Object[] {}, methodCallCallback);
}
public void test() {
new Thread() {
#Override
public void run() {
for (int i = 0; i < 100; ++i) {
getFlvList();
}
}
}.start();
}
private IPendingServiceCallback connectCallback = new IPendingServiceCallback() {
public void resultReceived(IPendingServiceCall call) {
System.out.println("connectCallback");
ObjectMap<?, ?> map = (ObjectMap<?, ?>) call.getResult();
String code = (String) map.get("code");
System.out.printf("Response code: %s\n", code);
if ("NetConnection.Connect.Rejected".equals(code)) {
System.out.printf("Rejected: %s\n", map.get("description"));
disconnect();
synchronized (ClientTest.class) {
finished = true;
ClientTest.class.notifyAll();
}
} else if ("NetConnection.Connect.Success".equals(code)) {
test();
createStream(createStreamCallback);
}
}
};
private IPendingServiceCallback createStreamCallback = new IPendingServiceCallback() {
public void resultReceived(IPendingServiceCall call) {
int streamId = (Integer) call.getResult();
/*
NetStream.play(name, start, length, reset)
- start An optional numeric parameter that specifies the start time, in seconds. This parameter can also be used to indicate whether the stream is live or recorded.
The default value for start is -2, which means that Flash Player first tries to play the live stream specified in name. If a live stream of that name is not found,
Flash Player plays the recorded stream specified in name. If neither a live nor a recorded stream is found, Flash Player opens a live stream named name, even
though no one is publishing on it. When someone does begin publishing on that stream, Flash Player begins playing it.
If you pass -1 for start, Flash Player plays only the live stream specified in name. If no live stream is found, Flash Player waits for it indefinitely
if len is set to -1; if len is set to a different value, Flash Player waits for len seconds before it begins playing the next item in the playlist.
If you pass 0 or a positive number for start, Flash Player plays only a recorded stream named name, beginning start seconds from the beginning of the stream.
If no recorded stream is found, Flash Player begins playing the next item in the playlist immediately.
If you pass a negative number other than -1 or -2 for start, Flash Player interprets the value as if it were -2.
- len An optional numeric parameter that specifies the duration of the playback, in seconds.
The default value for len is -1, which means that Flash Player plays a live stream until it is no longer available or plays a recorded stream until it ends.
If you pass 0 for len, Flash Player plays the single frame that is start seconds from the beginning of a recorded stream (assuming that start is equal to or greater than 0).
If you pass a positive number for len, Flash Player plays a live stream for len seconds after it becomes available, or plays a recorded stream for len seconds.
(If a stream ends before len seconds, playback ends when the stream ends.)
If you pass a negative number other than -1 for len, Flash Player interprets the value as if it were -1.
- reset An optional Boolean value or number that specifies whether to flush any previous playlist. If reset is false (0), name is added (queued) in the current playlist;
that is, name plays only after previous streams finish playing. You can use this technique to create a dynamic playlist. If reset is true (1), any previous play calls
are cleared and name is played immediately. By default, the value is true.
You can also specify a value of 2 or 3 for the reset parameter, which is useful when playing recorded stream files that contain message data. These values are analogous to
passing false (0) and true (1), respectively: a value of 2 maintains a playlist, and a value of 3 resets the playlist. However, the difference is that specifying 2 or 3 for
reset causes Flash Media Server to return all messages in the recorded stream file at once, rather than at the intervals at which the messages were originally recorded
(the default behavior).
*/
// live buffer 0.5s / vod buffer 4s
if (live) {
conn.ping(new Ping(Ping.CLIENT_BUFFER, streamId, 500));
play(streamId, filename, -1, -1);
} else {
conn.ping(new Ping(Ping.CLIENT_BUFFER, streamId, 4000));
play(streamId, filename, 0, -1);
}
}
};
#SuppressWarnings("unchecked")
protected void onCommand(RTMPConnection conn, Channel channel, Header header, Notify notify) {
super.onCommand(conn, channel, header, notify);
System.out.println("onInvoke, header = " + header.toString());
System.out.println("onInvoke, notify = " + notify.toString());
Object obj = notify.getCall().getArguments().length > 0 ? notify.getCall().getArguments()[0] : null;
if (obj instanceof Map) {
Map<String, String> map = (Map<String, String>) obj;
String code = map.get("code");
if (StatusCodes.NS_PLAY_STOP.equals(code)) {
synchronized (ClientTest.class) {
finished = true;
ClientTest.class.notifyAll();
}
disconnect();
System.out.println("Disconnected");
}
}
}
/**
* #return the live
*/
public boolean isLive() {
return live;
}
/**
* #param live the live to set
*/
public void setLive(boolean live) {
this.live = live;
}
}
First it showed me
Keystore or password are null
Then I go to RTMPSClient.java to annotate this line
And then here is the log.
2016-01-08 15:42:10,368 [DEBUG]
org.red5.client.net.rtmp.RTMPMinaIoHandler - Set handler:
org.red5.client.ClientTest#ef9176 2016-01-08 15:42:10,374 [DEBUG]
org.red5.client.net.rtmp.RTMPMinaIoHandler - Set handler:
org.red5.client.ClientTest#ef9176 2016-01-08 15:42:10,377 [DEBUG]
org.red5.client.net.rtmp.BaseRTMPClientHandler - setExceptionHandler:
org.red5.client.ClientTest$5#1ca901e 2016-01-08 15:42:10,377 [DEBUG]
org.red5.client.net.rtmp.BaseRTMPClientHandler - connect server:
myred5ServerName port 443 application RtmpRelay
connectCallback org.red5.client.ClientTest$3#49fd9b 2016-01-08
15:42:10,381 [DEBUG] org.red5.client.net.rtmp.BaseRTMPClientHandler -
connect server: myred5ServerName port 443 connect
- params: {app=RtmpRelay, tcUrl=rtmp://myred5ServerName:443/RtmpRelay,
audioCodecs=3575, path=RtmpRelay, capabilities=15, videoFunction=1,
swfUrl=null, flashVer=WIN 11,2,202,235, videoCodecs=252, pageUrl=null,
objectEncoding=0, fpad=false} callback:
org.red5.client.ClientTest$3#49fd9b args: null 2016-01-08 15:42:10,381
[INFO] org.red5.client.net.rtmp.BaseRTMPClientHandler -
rtmp://myred5ServerName:443/RtmpRelay 2016-01-08
15:42:10,795 [DEBUG] org.red5.client.net.rtmp.RTMPMinaIoHandler -
Session created 2016-01-08 15:42:10,850 [DEBUG]
org.red5.server.BaseConnection - New BaseConnection - type: persistent
2016-01-08 15:42:10,851 [DEBUG] org.red5.server.BaseConnection -
Generated session id: AHWDCE1GVSI4E 2016-01-08 15:42:10,867 [INFO]
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor -
Initializing ExecutorService 2016-01-08 15:42:10,868 [TRACE]
org.red5.client.net.rtmp.RTMPConnManager - Connections: 1 2016-01-08
15:42:10,868 [TRACE] org.red5.client.net.rtmp.RTMPConnManager -
Connection created: RTMPMinaConnection null:0 to null client: null
session: AHWDCE1GVSI4E state: connect 2016-01-08 15:42:10,868 [TRACE]
org.red5.server.net.rtmp.RTMPMinaConnection - setIoSession conn:
RTMPMinaConnection 54.249.13.195:443 to null client: null session:
AHWDCE1GVSI4E state: connect 2016-01-08 15:42:11,298 [TRACE]
org.red5.server.net.rtmp.RTMPHandshake - Handshake ctor 2016-01-08
15:42:11,386 [TRACE] org.red5.server.net.rtmp.RTMPHandshake - Setting
handshake type: 3 2016-01-08 15:42:11,678 [DEBUG]
org.apache.mina.filter.ssl.SslFilter - Adding the SSL Filter sslFilter
to the chain 2016-01-08 15:42:11,681 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client[1](no
sslEngine) Initializing the SSL Handler 2016-01-08 15:42:11,741
[DEBUG] org.apache.mina.filter.ssl.SslHandler - Session Client[1](no
sslEngine) SSL Handler Initialization done. 2016-01-08 15:42:11,746
[DEBUG] org.apache.mina.filter.ssl.SslFilter - Session
Client1 : Starting the first handshake 2016-01-08
15:42:11,747 [DEBUG] org.apache.mina.filter.ssl.SslHandler - Session
Client1 processing the NEED_WRAP state 2016-01-08
15:42:11,749 [DEBUG] org.apache.mina.filter.ssl.SslFilter - Session
Client1: Writing Message : WriteRequest: HeapBuffer[pos=0
lim=200 cap=264: 16 03 03 00 C3 01 00 00 BF 03 03 56 8F 68 53 80...]
2016-01-08 15:42:11,752 [DEBUG] org.apache.mina.filter.ssl.SslHandler
- Session Client1 processing the NEED_UNWRAP state 2016-01-08 15:42:11,752 [DEBUG]
org.red5.client.net.rtmp.RTMPMinaIoHandler - Session opened 2016-01-08
15:42:11,753 [DEBUG] org.red5.client.net.rtmp.RTMPMinaIoHandler -
Handshake - client phase 1 2016-01-08 15:42:11,753 [TRACE]
org.red5.server.net.rtmp.RTMPHandshake - doHandshake: null 2016-01-08
15:42:11,753 [DEBUG] org.red5.server.net.rtmp.RTMPHandshake -
generateClientRequest1 2016-01-08 15:42:11,753 [DEBUG]
org.red5.server.net.rtmp.RTMPHandshake - Creating client handshake
part 1 with keys/hashes 2016-01-08 15:42:11,769 [DEBUG]
org.red5.server.net.rtmp.RTMPHandshake - Public key:
78668315212650400198827186223390359611077988560233147216455670641253464082043705461893836314852397223863719227558751209473569845879501294308958930567273504944711329557183892645652712976106317821813632735196388382068508141569520794069165208541632289296819978630098062466414991768903103649759385818784493305923
2016-01-08 15:42:11,780 [DEBUG] org.red5.server.net.rtmp.RTMPHandshake
- Public key as bytes - length [128]: 700703a6d5388f6df4794834f384602d6112f7d2269393d79960e23209c0c78b900c13141b5e5accaa9101917f2743682d9f430048362a74df3593d79a1c64d6c791109d929fc780316ab156d7eebe8d61ef823143386fb9b3e73930612915501d5ac10b7a7ebbfa3987528f04a6a46130d4b72bb8b0368a6ca30b32b9818043
2016-01-08 15:42:11,780 [DEBUG] org.red5.server.net.rtmp.RTMPHandshake
- Client public key: 700703a6d5388f6df4794834f384602d6112f7d2269393d79960e23209c0c78b900c13141b5e5accaa9101917f2743682d9f430048362a74df3593d79a1c64d6c791109d929fc780316ab156d7eebe8d61ef823143386fb9b3e73930612915501d5ac10b7a7ebbfa3987528f04a6a46130d4b72bb8b0368a6ca30b32b9818043
2016-01-08 15:42:11,781 [TRACE]
org.red5.client.net.rtmpe.RTMPEIoFilter - Not encrypting write request
2016-01-08 15:42:11,782 [DEBUG] org.apache.mina.filter.ssl.SslFilter -
Session Client1: Writing Message : WriteRequest:
HeapBuffer[pos=0 lim=1537 cap=1537: 03 00 00 00 00 80 00 07 02 0F 55
92 23 09 84 C0...] 2016-01-08 15:42:11,941 [DEBUG]
org.apache.mina.filter.ssl.SslFilter - Session Client1:
Message received : HeapBuffer[pos=0 lim=2048 cap=2048: 16 03 03 00 59
02 00 00 55 03 03 CF DB 23 E6 48...] 2016-01-08 15:42:11,941 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
Processing the received message 2016-01-08 15:42:11,941 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
processing the NEED_UNWRAP state 2016-01-08 15:42:11,942 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
processing the NEED_TASK state 2016-01-08 15:42:11,943 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
processing the NEED_UNWRAP state 2016-01-08 15:42:11,943 [DEBUG]
org.apache.mina.filter.ssl.SslFilter - Session Client1:
Processing the SSL Data 2016-01-08 15:42:11,943 [DEBUG]
org.apache.mina.filter.ssl.SslFilter - Session Client1:
Message received : HeapBuffer[pos=0 lim=2048 cap=4096: 7D 64 12 DC 74
4A 34 A1 1D 0A EA 96 1D 0B 15 FC...] 2016-01-08 15:42:11,943 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
Processing the received message 2016-01-08 15:42:11,943 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
processing the NEED_UNWRAP state 2016-01-08 15:42:11,943 [DEBUG]
org.apache.mina.filter.ssl.SslFilter - Session Client1:
Processing the SSL Data 2016-01-08 15:42:11,944 [DEBUG]
org.apache.mina.filter.ssl.SslFilter - Session Client1:
Message received : HeapBuffer[pos=0 lim=464 cap=4096: 20 0C 59 88 62
07 CE CE F7 4E F9 BB 59 A1 98 E5...] 2016-01-08 15:42:11,944 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
Processing the received message 2016-01-08 15:42:11,944 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
processing the NEED_UNWRAP state 2016-01-08 15:42:11,944 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
processing the NEED_TASK state 2016-01-08 15:42:11,949 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
processing the NEED_UNWRAP state 2016-01-08 15:42:11,950 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
processing the NEED_TASK state 2016-01-08 15:42:11,961 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
processing the NEED_UNWRAP state 2016-01-08 15:42:11,962 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
processing the NEED_TASK state 2016-01-08 15:42:11,975 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
processing the NEED_WRAP state 2016-01-08 15:42:11,975 [DEBUG]
org.apache.mina.filter.ssl.SslFilter - Session Client1:
Writing Message : WriteRequest: HeapBuffer[pos=0 lim=75 cap=132: 16 03
03 00 46 10 00 00 42 41 04 80 B7 B5 9F 24...] 2016-01-08 15:42:11,975
[DEBUG] org.apache.mina.filter.ssl.SslHandler - Session
Client1 processing the NEED_WRAP state 2016-01-08
15:42:11,975 [DEBUG] org.apache.mina.filter.ssl.SslFilter - Session
Client1: Writing Message : WriteRequest: HeapBuffer[pos=0
lim=6 cap=8: 14 03 03 00 01 01] 2016-01-08 15:42:11,975 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
processing the NEED_WRAP state 2016-01-08 15:42:11,976 [DEBUG]
org.apache.mina.filter.ssl.SslFilter - Session Client1:
Writing Message : WriteRequest: HeapBuffer[pos=0 lim=45 cap=66: 16 03
03 00 28 00 00 00 00 00 00 00 00 46 04 B3...] 2016-01-08 15:42:11,976
[DEBUG] org.apache.mina.filter.ssl.SslHandler - Session
Client1 processing the NEED_UNWRAP state 2016-01-08
15:42:11,976 [DEBUG] org.apache.mina.filter.ssl.SslHandler - Session
Client1 processing the NEED_UNWRAP state 2016-01-08
15:42:11,976 [DEBUG] org.apache.mina.filter.ssl.SslHandler - Session
Client1 processing the NEED_UNWRAP state 2016-01-08
15:42:11,976 [DEBUG] org.apache.mina.filter.ssl.SslFilter - Session
Client1: Processing the SSL Data 2016-01-08 15:42:12,135
[DEBUG] org.apache.mina.filter.ssl.SslFilter - Session
Client1: Message received : HeapBuffer[pos=0 lim=51
cap=4096: 14 03 03 00 01 01 16 03 03 00 28 29 B4 4C D8 BC...]
2016-01-08 15:42:12,136 [DEBUG] org.apache.mina.filter.ssl.SslHandler
- Session Client1 Processing the received message 2016-01-08 15:42:12,136 [DEBUG] org.apache.mina.filter.ssl.SslHandler - Session
Client1 processing the NEED_UNWRAP state 2016-01-08
15:42:12,137 [DEBUG] org.apache.mina.filter.ssl.SslHandler - Session
Client1 processing the FINISHED state 2016-01-08
15:42:12,137 [DEBUG] org.apache.mina.filter.ssl.SslHandler - Session
Client1 is now secured 2016-01-08 15:42:12,137 [DEBUG]
org.apache.mina.filter.ssl.SslFilter - Session Client1:
Processing the SSL Data 2016-01-08 15:42:12,137 [DEBUG]
org.apache.mina.filter.ssl.SslFilter - Session Client1: Writing
Message : WriteRequest: HeapBuffer[pos=0 lim=1537 cap=1537: 03 00 00
00 00 80 00 07 02 0F 55 92 23 09 84 C0...] 2016-01-08 15:42:12,140
[DEBUG] org.red5.client.net.rtmp.RTMPMinaIoHandler - messageSent
2016-01-08 15:42:12,140 [TRACE]
org.red5.client.net.rtmp.RTMPMinaIoHandler - Session id: AHWDCE1GVSI4E
2016-01-08 15:42:12,140 [DEBUG]
org.red5.client.net.rtmp.RTMPConnManager - Getting connection by
session id: AHWDCE1GVSI4E 2016-01-08 15:42:12,298 [DEBUG]
org.apache.mina.filter.ssl.SslFilter - Session Client1: Message
received : HeapBuffer[pos=0 lim=95 cap=2048: 17 03 03 00 5A 29 B4 4C
D8 BC 7E 9E AA DA 75 CC...] 2016-01-08 15:42:12,298 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
Processing the received message 2016-01-08 15:42:12,299 [DEBUG]
org.apache.mina.filter.ssl.SslFilter - Session Client1:
Processing the SSL Data 2016-01-08 15:42:12,300 [TRACE]
org.red5.client.net.rtmpe.RTMPEIoFilter - Session id: AHWDCE1GVSI4E
2016-01-08 15:42:12,301 [DEBUG]
org.red5.client.net.rtmp.RTMPConnManager - Getting connection by
session id: AHWDCE1GVSI4E 2016-01-08 15:42:12,301 [TRACE]
org.red5.client.net.rtmpe.RTMPEIoFilter - Handshake exists on the
session 2016-01-08 15:42:12,301 [TRACE]
org.red5.client.net.rtmpe.RTMPEIoFilter - Not decrypting message
received: HeapBuffer[pos=0 lim=66 cap=95: 48 54 54 50 2F 31 2E 31 20
34 30 30 20 42 41 44...] 2016-01-08 15:42:12,302 [DEBUG]
org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a
MESSAGE_RECEIVED for session 1 2016-01-08 15:42:12,304 [TRACE]
org.red5.server.net.rtmp.codec.RTMPMinaProtocolDecoder - Session id:
AHWDCE1GVSI4E 2016-01-08 15:42:12,304 [DEBUG]
org.red5.client.net.rtmp.RTMPConnManager - Getting connection by
session id: AHWDCE1GVSI4E 2016-01-08 15:42:12,310 [DEBUG]
org.red5.server.api.Red5 - Set connection: AHWDCE1GVSI4E with thread:
NioProcessor-2 2016-01-08 15:42:12,310 [DEBUG]
org.red5.server.api.Red5 - Caller:
org.red5.client.net.rtmp.RTMPMinaIoHandler$RTMPMinaCodecFactory$1.decode
256 2016-01-08 15:42:12,310 [TRACE] org.red5.server.net.rtmp.codec.RTMPMinaProtocolDecoder - Decoder lock
acquiring.. AHWDCE1GVSI4E 2016-01-08 15:42:12,310 [TRACE]
org.red5.server.net.rtmp.codec.RTMPMinaProtocolDecoder - Decoder lock
acquired AHWDCE1GVSI4E 2016-01-08 15:42:12,311 [TRACE]
org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Decoding for
connection - session id: AHWDCE1GVSI4E 2016-01-08 15:42:12,312 [TRACE]
org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - RTMPDecodeState
[sessionId=AHWDCE1GVSI4E, decoderState=0, decoderBufferAmount=0]
2016-01-08 15:42:12,312 [TRACE]
org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Can start
decoding 2016-01-08 15:42:12,312 [TRACE]
org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Decoding for
AHWDCE1GVSI4E 2016-01-08 15:42:12,312 [DEBUG]
org.red5.server.net.rtmp.codec.RTMPProtocolDecoder -
decodeServerHandshake - buffer: HeapBuffer[pos=0 lim=66 cap=1536: 48
54 54 50 2F 31 2E 31 20 34 30 30 20 42 41 44...] 2016-01-08
15:42:12,312 [DEBUG]
org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Handshake init
too small, buffering. remaining: 66 2016-01-08 15:42:12,312 [TRACE]
org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Decoding finished
for AHWDCE1GVSI4E 2016-01-08 15:42:12,312 [TRACE]
org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Cannot continue
decoding 2016-01-08 15:42:12,313 [TRACE]
org.red5.server.net.rtmp.codec.RTMPMinaProtocolDecoder - Decoder lock
releasing.. AHWDCE1GVSI4E 2016-01-08 15:42:12,313 [DEBUG]
org.red5.server.api.Red5 - Set connection: null with thread:
NioProcessor-2 2016-01-08 15:42:12,313 [DEBUG]
org.red5.server.api.Red5 - Caller:
org.red5.client.net.rtmp.RTMPMinaIoHandler$RTMPMinaCodecFactory$1.decode
275 2016-01-08 15:42:12,313 [DEBUG] org.apache.mina.filter.ssl.SslFilter - Session Client1: Message
received : HeapBuffer[pos=0 lim=31 cap=2048: 15 03 03 00 1A 29 B4 4C
D8 BC 7E 9E AB 2E 99 50...] 2016-01-08 15:42:12,313 [DEBUG]
org.apache.mina.filter.ssl.SslHandler - Session Client1
Processing the received message 2016-01-08 15:42:12,314 [DEBUG]
org.apache.mina.filter.ssl.SslFilter - Session Client1:
Processing the SSL Data 2016-01-08 15:42:12,314 [DEBUG]
org.apache.mina.filter.ssl.SslFilter - Session Client[1]: Writing
Message : WriteRequest: HeapBuffer[pos=0 lim=31 cap=33: 15 03 03 00 1A
00 00 00 00 00 00 00 02 AD DD 15...] 2016-01-08 15:42:12,470 [DEBUG]
org.red5.client.net.rtmp.RTMPMinaIoHandler - Session closed 2016-01-08
15:42:12,470 [TRACE] org.red5.client.net.rtmp.RTMPMinaIoHandler -
Session id: AHWDCE1GVSI4E 2016-01-08 15:42:12,471 [DEBUG]
org.red5.client.net.rtmp.RTMPConnManager - Getting connection by
session id: AHWDCE1GVSI4E 2016-01-08 15:42:12,471 [DEBUG]
org.red5.client.net.rtmp.BaseRTMPClientHandler - connectionClosed
2016-01-08 15:42:12,471 [DEBUG]
org.red5.server.net.rtmp.BaseRTMPHandler - connectionClosed:
AHWDCE1GVSI4E 2016-01-08 15:42:12,471 [DEBUG]
org.red5.server.net.rtmp.RTMPConnection - close: AHWDCE1GVSI4E
2016-01-08 15:42:12,472 [DEBUG]
org.red5.server.net.rtmp.RTMPConnection - State: connect 2016-01-08
15:42:12,472 [DEBUG] org.red5.server.api.Red5 - Set connection:
AHWDCE1GVSI4E with thread: NioProcessor-2 2016-01-08 15:42:12,472
[DEBUG] org.red5.server.api.Red5 - Caller:
org.red5.server.net.rtmp.RTMPConnection.close #924 2016-01-08
15:42:12,479 [DEBUG] org.red5.server.net.rtmp.RTMPConnection - Stream
service was not found for scope: null or non-existant 2016-01-08
15:42:12,479 [DEBUG] org.red5.server.BaseConnection - Close, not
connected nothing to do 2016-01-08 15:42:12,479 [TRACE]
org.red5.server.net.rtmp.RTMPConnection - Memory at close - free:
1596K total: 15872K 2016-01-08 15:42:12,479 [DEBUG]
org.red5.server.net.rtmp.RTMPMinaConnection - IO Session closing: true
2016-01-08 15:42:12,479 [DEBUG]
org.red5.server.net.rtmp.RTMPMinaConnection - Connection state: RTMP
[state=disconnecting, encrypted=false, readChunkSize=128,
writeChunkSize=128, encoding=AMF0] 2016-01-08 15:42:12,480 [DEBUG]
org.red5.client.net.rtmp.BaseRTMPClientHandler - connectionClosed
2016-01-08 15:42:12,480 [DEBUG]
org.red5.server.net.rtmp.BaseRTMPHandler - connectionClosed:
AHWDCE1GVSI4E 2016-01-08 15:42:12,480 [TRACE]
org.red5.server.net.rtmp.RTMPConnection - setStateCode: 5 -
disconnected 2016-01-08 15:42:12,486 [TRACE]
org.red5.server.net.rtmp.RTMPConnManager - Connection manager instance
does not exist 2016-01-08 15:42:12,486 [TRACE]
org.red5.server.net.rtmp.RTMPConnManager - Connection manager bean
doesnt exist, creating new instance 2016-01-08 15:42:12,490 [TRACE]
org.red5.server.net.rtmp.RTMPConnManager - Removing connection with
session id: AHWDCE1GVSI4E 2016-01-08 15:42:12,491 [TRACE]
org.red5.server.net.rtmp.RTMPConnManager - Connections (0) at
pre-remove: [] 2016-01-08 15:42:12,492 [TRACE]
org.red5.server.net.rtmp.BaseRTMPHandler - connectionClosed:
RTMPMinaConnection 54.249.13.195:443 to null client: null session:
AHWDCE1GVSI4E state: disconnected 2016-01-08 15:42:12,558 [TRACE]
org.red5.server.net.rtmp.RTMPConnection - setStateCode: 5 -
disconnected 2016-01-08 15:42:12,558 [TRACE]
org.red5.server.net.rtmp.RTMPConnManager - Removing connection with
session id: AHWDCE1GVSI4E 2016-01-08 15:42:12,558 [TRACE]
org.red5.server.net.rtmp.RTMPConnManager - Connections (0) at
pre-remove: [] 2016-01-08 15:42:12,558 [TRACE]
org.red5.server.net.rtmp.BaseRTMPHandler - connectionClosed:
RTMPMinaConnection 54.249.13.195:443 to null client: null session:
AHWDCE1GVSI4E state: disconnected
I wish someone could tell me where I was wrong.THKS.
Related
Can't consume message that is enqeued by test
I am having an issue writing a basic test that publishes a message to a point-point queue. When using an #JmsListener bean, the message is consumed. When not using an #JmsListener and using a consumer obtained from the connectionFactory via the #Autowired JmsTemplate in the test class the message is not consumed. I have added some logging and debug output and can not see why I can not consume the message inside the test class but an #JmsListener bean does. #SpringBootTest #ActiveProfiles("tc") #Log4j2 public class SessionActiveMQIT { #Autowired public JmsTemplate jmsTemplate; #Test void canEnqueueAndPersistClientAck() throws JMSException, InterruptedException { final ActiveMQQueue activeMQQueue = new ActiveMQQueue("TEST_QUEUE"); jmsTemplate.setDeliveryPersistent(true); jmsTemplate.setSessionAcknowledgeMode(JmsProperties.AcknowledgeMode.CLIENT.getMode()); jmsTemplate.setSessionTransacted(true); jmsTemplate.setDefaultDestination(activeMQQueue); jmsTemplate.setPubSubDomain(false); jmsTemplate.setPubSubNoLocal(false); final ActiveMQTextMessage activeMQTextMessage = new ActiveMQTextMessage(); activeMQTextMessage.setText("MESSAGE"); activeMQTextMessage.setPersistent(true); jmsTemplate.execute("TEST_QUEUE", ((session, messageProducer) -> { try { log.info("Sending to Queue."); messageProducer.send(activeMQTextMessage, DeliveryMode.PERSISTENT, 4, 30000); session.commit(); session.close(); log.info("Committed and Closed."); } catch (Exception e) { e.printStackTrace(); log.error(e.getMessage()); session.rollback(); session.close(); } return session; })); log.info("Create session from conn factory."); final Session session = jmsTemplate.getConnectionFactory().createConnection().createSession(); log.info("Consumer creation."); final ActiveMQMessageConsumer consumer = (ActiveMQMessageConsumer) session.createConsumer(activeMQQueue); log.info("Consume Message"); log.info(consumer.receive(100L)); } } The log output: 02 Mar 2021 16:48:34,298 [ INFO] --- o.a.a.b.BrokerService : Using Persistence Adapter: MemoryPersistenceAdapter 02 Mar 2021 16:48:34,438 [ INFO] --- o.a.a.b.BrokerService : Apache ActiveMQ 5.16.1 (localhost, ID:devbox-44103-1614703714311-0:1) is starting 02 Mar 2021 16:48:34,442 [DEBUG] --- o.a.a.b.j.Log4JConfigView : Could not locate log4j classes on classpath. 02 Mar 2021 16:48:34,442 [ INFO] --- o.a.a.b.BrokerService : Apache ActiveMQ 5.16.1 (localhost, ID:devbox-44103-1614703714311-0:1) started 02 Mar 2021 16:48:34,442 [ INFO] --- o.a.a.b.BrokerService : For help or more information please see: http://activemq.apache.org 02 Mar 2021 16:48:34,445 [DEBUG] --- o.a.a.b.r.AbstractRegion : localhost adding destination: topic://ActiveMQ.Advisory.MasterBroker 02 Mar 2021 16:48:34,452 [DEBUG] --- o.a.a.t.TaskRunnerFactory : Initialized TaskRunnerFactory[ActiveMQ BrokerService[localhost] Task] using ExecutorService: java.util.concurrent.ThreadPoolExecutor#55bf08a5[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0] 02 Mar 2021 16:48:34,456 [DEBUG] --- o.a.a.t.v.VMTransportFactory : binding to broker: localhost 02 Mar 2021 16:48:34,459 [ INFO] --- o.a.a.b.TransportConnector : Connector vm://localhost started 02 Mar 2021 16:48:34,463 [DEBUG] --- o.a.a.t.TaskRunnerFactory : Initialized TaskRunnerFactory[ActiveMQ VMTransport: vm://localhost#0] using ExecutorService: java.util.concurrent.ThreadPoolExecutor#297db6ad[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0] 02 Mar 2021 16:48:34,472 [DEBUG] --- o.a.a.t.TaskRunnerFactory : Initialized TaskRunnerFactory[ActiveMQ VMTransport: vm://localhost#1] using ExecutorService: java.util.concurrent.ThreadPoolExecutor#170437d4[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0] 02 Mar 2021 16:48:34,474 [DEBUG] --- o.a.a.b.TransportConnection : Setting up new connection id: ID:devbox-44103-1614703714311-4:1, address: vm://localhost#0, info: ConnectionInfo {commandId = 1, responseRequired = true, connectionId = ID:devbox-44103-1614703714311-4:1, clientId = ID:devbox-44103-1614703714311-3:1, clientIp = null, userName = admin, password = *****, brokerPath = null, brokerMasterConnector = false, manageable = true, clientMaster = true, faultTolerant = false, failoverReconnect = false} 02 Mar 2021 16:48:34,475 [DEBUG] --- o.a.a.b.TransportConnector : Publishing: vm://localhost for broker transport URI: vm://localhost 02 Mar 2021 16:48:34,475 [DEBUG] --- o.a.a.b.TransportConnector : Publishing: vm://localhost for broker transport URI: vm://localhost 02 Mar 2021 16:48:34,475 [DEBUG] --- o.a.a.b.r.AbstractRegion : localhost adding destination: topic://ActiveMQ.Advisory.Connection 02 Mar 2021 16:48:34,480 [DEBUG] --- o.a.a.b.r.AbstractRegion : localhost adding consumer: ID:devbox-44103-1614703714311-4:1:-1:1 for destination: ActiveMQ.Advisory.TempQueue,ActiveMQ.Advisory.TempTopic 02 Mar 2021 16:48:34,514 [DEBUG] --- o.a.a.b.r.AbstractRegion : localhost adding destination: queue://TEST_QUEUE 02 Mar 2021 16:48:34,529 [DEBUG] --- o.a.a.b.r.Queue : queue://TEST_QUEUE, subscriptions=0, memory=0%, size=0, pending=0 toPageIn: 0, force:false, Inflight: 0, pagedInMessages.size 0, pagedInPendingDispatch.size 0, enqueueCount: 0, dequeueCount: 0, memUsage:0, maxPageSize:200 02 Mar 2021 16:48:34,530 [DEBUG] --- o.a.a.b.TransportConnector : Publishing: vm://localhost for broker transport URI: vm://localhost 02 Mar 2021 16:48:34,530 [DEBUG] --- o.a.a.b.TransportConnector : Publishing: vm://localhost for broker transport URI: vm://localhost 02 Mar 2021 16:48:34,530 [DEBUG] --- o.a.a.b.r.AbstractRegion : localhost adding destination: topic://ActiveMQ.Advisory.Queue 02 Mar 2021 16:48:34,532 [DEBUG] --- o.a.a.b.TransportConnector : Publishing: vm://localhost for broker transport URI: vm://localhost 02 Mar 2021 16:48:34,532 [DEBUG] --- o.a.a.b.TransportConnector : Publishing: vm://localhost for broker transport URI: vm://localhost 02 Mar 2021 16:48:34,532 [DEBUG] --- o.a.a.b.r.AbstractRegion : localhost adding destination: topic://ActiveMQ.Advisory.Producer.Queue.TEST_QUEUE 02 Mar 2021 16:48:34,534 [ INFO] --- m.a.w.c.SessionActiveMQIT : Sending to Queue. 02 Mar 2021 16:48:34,535 [DEBUG] --- o.a.a.TransactionContext : Begin:TX:ID:devbox-44103-1614703714311-4:1:1 02 Mar 2021 16:48:34,536 [DEBUG] --- o.a.a.ActiveMQSession : ID:devbox-44103-1614703714311-4:1:1 Transaction Commit :TX:ID:devbox-44103-1614703714311-4:1:1 02 Mar 2021 16:48:34,536 [DEBUG] --- o.a.a.TransactionContext : Commit: TX:ID:devbox-44103-1614703714311-4:1:1 syncCount: 0 02 Mar 2021 16:48:34,539 [DEBUG] --- o.a.a.t.LocalTransaction : commit: TX:ID:devbox-44103-1614703714311-4:1:1 syncCount: 1 02 Mar 2021 16:48:34,540 [DEBUG] --- o.a.a.b.r.Queue : localhost Message ID:devbox-44103-1614703714311-4:1:1:1:1 sent to queue://TEST_QUEUE 02 Mar 2021 16:48:34,541 [ INFO] --- m.a.w.c.SessionActiveMQIT : Committed and Closed. 02 Mar 2021 16:48:34,541 [DEBUG] --- o.a.a.b.r.Queue : queue://TEST_QUEUE, subscriptions=0, memory=0%, size=1, pending=0 toPageIn: 1, force:false, Inflight: 0, pagedInMessages.size 0, pagedInPendingDispatch.size 0, enqueueCount: 1, dequeueCount: 0, memUsage:1038, maxPageSize:200 02 Mar 2021 16:48:34,545 [ INFO] --- m.a.w.c.SessionActiveMQIT : Create session from conn factory. 02 Mar 2021 16:48:34,545 [DEBUG] --- o.a.a.b.j.ManagementContext : Unregistering MBean org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=TEST_QUEUE,endpoint=Producer,clientId=ID_devbox-44103-1614703714311-3_1,producerId=ID_devbox-44103-1614703714311-4_1_1_1 02 Mar 2021 16:48:34,546 [ INFO] --- m.a.w.c.SessionActiveMQIT : Consumer creation. 02 Mar 2021 16:48:34,546 [DEBUG] --- o.a.a.b.TransportConnector : Publishing: vm://localhost for broker transport URI: vm://localhost 02 Mar 2021 16:48:34,546 [DEBUG] --- o.a.a.b.TransportConnector : Publishing: vm://localhost for broker transport URI: vm://localhost 02 Mar 2021 16:48:34,552 [DEBUG] --- o.a.a.b.r.AbstractRegion : localhost adding consumer: ID:devbox-44103-1614703714311-4:1:2:1 for destination: queue://TEST_QUEUE 02 Mar 2021 16:48:34,558 [DEBUG] --- o.a.a.b.r.Queue : queue://TEST_QUEUE add sub: QueueSubscription: consumer=ID:devbox-44103-1614703714311-4:1:2:1, destinations=0, dispatched=0, delivered=0, pending=0, prefetch=1000, prefetchExtension=0, dequeues: 0, dispatched: 0, inflight: 0 02 Mar 2021 16:48:34,560 [DEBUG] --- o.a.a.b.TransportConnector : Publishing: vm://localhost for broker transport URI: vm://localhost 02 Mar 2021 16:48:34,560 [DEBUG] --- o.a.a.b.r.Queue : queue://TEST_QUEUE, subscriptions=1, memory=0%, size=1, pending=0 toPageIn: 1, force:false, Inflight: 0, pagedInMessages.size 0, pagedInPendingDispatch.size 0, enqueueCount: 1, dequeueCount: 0, memUsage:1038, maxPageSize:200 02 Mar 2021 16:48:34,560 [DEBUG] --- o.a.a.b.TransportConnector : Publishing: vm://localhost for broker transport URI: vm://localhost 02 Mar 2021 16:48:34,560 [DEBUG] --- o.a.a.b.r.AbstractRegion : localhost adding destination: topic://ActiveMQ.Advisory.Consumer.Queue.TEST_QUEUE 02 Mar 2021 16:48:34,562 [ INFO] --- m.a.w.c.SessionActiveMQIT : Consume Message 02 Mar 2021 16:48:34,662 [ INFO] --- m.a.w.c.SessionActiveMQIT : null
I believe you need to call start() on your instance of javax.jms.Connection in order to get messages to flow to the consumer, e.g.: final Connection connection = jmsTemplate.getConnectionFactory().createConnection(); final Session session = connection.createSession(); connection.start() Also, be sure to close your resources (i.e. connection, session, consumer) when you're done with them. Currently they just fall out of scope which means they are being leaked. I understand this is just a test, but even still it's good practice.
Ingress NGINX client closed connection while SSL handshaking
we have ingress-nginx running for a while and about 10% of requests ending up with some SSL handshake problem. Here is an example of a failing connection: 2019/02/14 10:15:35 [debug] 237#237: *4612 accept: **.**.**.**:40928 fd:53 2019/02/14 10:15:35 [debug] 237#237: *4612 event timer add: 53: 60000:5527050245 2019/02/14 10:15:35 [debug] 237#237: *4612 reusable connection: 1 2019/02/14 10:15:35 [debug] 237#237: *4612 epoll add event: fd:53 op:1 ev:80002001 2019/02/14 10:15:45 [debug] 237#237: *4612 http check ssl handshake 2019/02/14 10:15:45 [debug] 237#237: *4612 http recv(): 0 2019/02/14 10:15:45 [info] 237#237: *4612 client closed connection while SSL handshaking, client: **.**.**.**, server: 0.0.0.0:443 2019/02/14 10:15:45 [debug] 237#237: *4612 close http connection: 53 2019/02/14 10:15:45 [debug] 237#237: *4612 event timer del: 53: 5527050245 2019/02/14 10:15:45 [debug] 237#237: *4612 reusable connection: 0 2019/02/14 10:15:45 [debug] 237#237: *4612 free: 00007F4CC5858E00, unused: 232 10% of failures seems to be quite a lot to expect. I really would appreciate any help in this!
Adapter call fails after enabling Application Authenticity
I've tried to enable Basic Application Authenticity for the sample "OfflineAuthentication" hybrid iOS app. However, the adapter call fails, any ideas? Here's the code: authenticationConfig.xml: <customSecurityTest name="myCustomSecurityTest"> <test realm="wl_authenticityRealm" step="1"/> <test isInternalUserID="true" realm="myCustomRealm"/> <test isInternalDeviceID="true" realm="wl_deviceNoProvisioningRealm" step="2"/> </customSecurityTest> <!--DO i need to include wl_authenticityRealm here as well?--> <customSecurityTest name="SubscribeServlet"> <test isInternalUserID="true" realm="SubscribeServlet"/> </customSecurityTest> application-descriptor.xml: <iphone bundleId="com.OfflineAuthSample" applicationId="OfflineAuthSample" version="1.0" securityTest="myCustomSecurityTest"> MobileFirst Console shows basic app authenticity is enabled Here's the log: 2016-10-01 18:20:34.518875 OfflineAuthSample[3807:1252807] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/7F4A0DF9-95B0-4C21-AC73-9A758BAD1DE9/Library/Cookies/Cookies.binarycookies 2016-10-01 18:20:34.647379 OfflineAuthSample[3807:1252807] [DEBUG] [WL_SPLASH] -[WLSplashView updateImage] in WLSplashView.m:189 :: Splash screen image is taken from UILaunchImages: Default-736h 2016-10-01 18:20:34.681607 OfflineAuthSample[3807:1252807] [DEBUG] [WL_SPLASH] -[WLSplashView updateImage] in WLSplashView.m:189 :: Splash screen image is taken from UILaunchImages: Default-736h 2016-10-01 18:20:34.683230 OfflineAuthSample[3807:1252807] Unbalanced calls to begin/end appearance transitions for <UIViewController: 0x10090d0c0>. 2016-10-01 18:20:34.701919 OfflineAuthSample[3807:1252879] [DEBUG] [WL_CONFIG] -[WLConfig init] in WLConfig.m:71 :: { "application id" = OfflineAuthSample; "application version" = "1.0"; authenticitySharedData = "${authenticitySharedData}"; buildtime = 1475317232; environment = iphone; host = "52.77.249.78"; ignoredFileExtensions = ""; platformVersion = "7.1.0.0"; port = 9080; protocol = http; testWebResourcesChecksum = false; wlAppFamily = ""; wlMainFile = "index.html"; wlSecureDirectUpdatePublicKey = ""; wlServerContext = "/testssl/"; wlShareCookies = ""; wlShareUserCert = false; wlUid = "dB6EhEirkRwkU04A5lgiRw=="; } 2016-10-01 18:20:34.703147 OfflineAuthSample[3807:1252879] [DEBUG] [WL_INIT] -[WLImpl initWL] in WLImpl.m:127 :: At first launch 2016-10-01 18:20:34.706276 OfflineAuthSample[3807:1252879] [DEBUG] [WL_INIT] -[WLImpl initWL] in WLImpl.m:153 :: Web resources should not be extracted. 2016-10-01 18:20:34.902355 OfflineAuthSample[3807:1252807] Apache Cordova native platform version 3.7.0 is starting. 2016-10-01 18:20:34.902559 OfflineAuthSample[3807:1252807] Multi-tasking -> Device: YES, App: YES 2016-10-01 18:20:34.908168 OfflineAuthSample[3807:1252807] Unlimited access to network resources 2016-10-01 18:20:34.910140 OfflineAuthSample[3807:1252807] Started backup to iCloud! Please be careful. Your application might be rejected by Apple if you store too much data. For more information please read "iOS Data Storage Guidelines" at: https://developer.apple.com/icloud/documentation/data-storage/ To disable web storage backup to iCloud, set the BackupWebStorage preference to "local" in the Cordova config.xml file 2016-10-01 18:20:34.916050 OfflineAuthSample[3807:1252807] [CDVTimer][wlapp] 0.979006ms 2016-10-01 18:20:34.916196 OfflineAuthSample[3807:1252807] [CDVTimer][push] 0.092983ms 2016-10-01 18:20:34.916226 OfflineAuthSample[3807:1252807] [CDVTimer][TotalPluginStartup] 1.177967ms 2016-10-01 18:20:35.073631 OfflineAuthSample[3807:1252807] Resetting plugins due to page load. 2016-10-01 18:20:35.123413 OfflineAuthSample[3807:1252807] Finished load of: file:///var/containers/Bundle/Application/A7F58C8C-D71F-4178-A912-3138602AF24A/OfflineAuthSample.app/www/skinLoader.html 2016-10-01 18:20:35.239499 OfflineAuthSample[3807:1252807] Resetting plugins due to page load. 2016-10-01 18:20:35.332761 OfflineAuthSample[3807:1252807] Finished load of: file:///var/containers/Bundle/Application/A7F58C8C-D71F-4178-A912-3138602AF24A/OfflineAuthSample.app/www/default/index.html 2016-10-01 18:20:35.366708 OfflineAuthSample[3807:1252807] log1 2016-10-01 18:20:35.383488 OfflineAuthSample[3807:1252854] [DEBUG] [WORKLIGHT] +[WLClient sharedInstance] in WLClient.m:165 :: IBMMobilieFirstFoundation.framework version = 7.1-2015/09/14 00:19:02 2016-10-01 18:20:35.805118 OfflineAuthSample[3807:1252880] [DEBUG] [NONE] wlclient init started 2016-10-01 18:20:35.806879 OfflineAuthSample[3807:1252852] [DEBUG] [NONE] ondeviceready event dispatched 2016-10-01 18:20:35.808544 OfflineAuthSample[3807:1252854] [DEBUG] [NONE] Read cookies: null 2016-10-01 18:20:35.810495 OfflineAuthSample[3807:1252860] [DEBUG] [NONE] CookieMgr read cookies: {} 2016-10-01 18:20:35.812504 OfflineAuthSample[3807:1252855] [DEBUG] [NONE] before: initOptions.onSuccess 2016-10-01 18:20:35.814665 OfflineAuthSample[3807:1252853] [DEBUG] [NONE] after: initOptions.onSuccess 2016-10-01 18:20:35.816615 OfflineAuthSample[3807:1252880] [DEBUG] [NONE] added onPause and onResume event handlers 2016-10-01 18:20:35.818603 OfflineAuthSample[3807:1252934] [DEBUG] [NONE] wlclient init success 2016-10-01 18:20:37.650366 OfflineAuthSample[3807:1252807] WLReachability Flag Status: WR t------ networkStatusForFlags 2016-10-01 18:20:37.664856 OfflineAuthSample[3807:1252807] THREAD WARNING: ['NetworkDetector'] took '15.065186' ms. Plugin should use a background thread. 2016-10-01 18:20:37.666274 OfflineAuthSample[3807:1252852] [ERROR] [NONE] Unknown realm [myCustomRealm]. null returned for key: isUserAuthenticated 2016-10-01 18:20:37.667460 OfflineAuthSample[3807:1252807] [DEBUG] [WORKLIGHT] +[WLClient sharedInstance] in WLClient.m:165 :: IBMMobilieFirstFoundation.framework version = 7.1-2015/09/14 00:19:02 2016-10-01 18:20:37.669136 OfflineAuthSample[3807:1252880] [DEBUG] [NONE] Request [/apps/services/api/OfflineAuthSample/iphone/login] 2016-10-01 18:20:37.675317 OfflineAuthSample[3807:1252807] [DEBUG] [CERTIFICATE_MANAGER] +[WLCertManager removeCertificate:] in WLCertManager.m:243 :: Certificate successfully removed. 2016-10-01 18:20:37.686451 OfflineAuthSample[3807:1252807] [DEBUG] [CERTIFICATE_MANAGER] +[WLCertManager removeKey:] in WLCertManager.m:262 :: Key was successfully removed. 2016-10-01 18:20:37.691977 OfflineAuthSample[3807:1252807] [DEBUG] [CERTIFICATE_MANAGER] +[WLCertManager removeKey:] in WLCertManager.m:262 :: Key was successfully removed. 2016-10-01 18:20:37.708057 OfflineAuthSample[3807:1252807] [DEBUG] [WORKLIGHT] +[WLClient sharedInstance] in WLClient.m:165 :: IBMMobilieFirstFoundation.framework version = 7.1-2015/09/14 00:19:02 2016-10-01 18:20:37.709332 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AUTH] -[WLAuthorizationManager invokeInstanceRegistrationRequestWithCompletionHandler:] in WLAuthorizationManager.m:548 :: Call instance registration endpoint 2016-10-01 18:20:37.750096 OfflineAuthSample[3807:1252807] [DEBUG] [CERTIFICATE_MANAGER] +[WLCertManager generateKeyPair:withPublicKeyLabel:withKeySize:] in WLCertManager.m:225 :: generateKeyPair generating keypair --> Success 2016-10-01 18:20:37.756561 OfflineAuthSample[3807:1252807] [DEBUG] [WORKLIGHT] +[WLClient sharedInstance] in WLClient.m:165 :: IBMMobilieFirstFoundation.framework version = 7.1-2015/09/14 00:19:02 2016-10-01 18:20:37.757615 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] +[WLAFHTTPRequestOperationManagerWrapper requestWithURL:] in WLAFHTTPRequestOperationManagerWrapper.m:52 :: Request url is http://52.77.249.78:9080/testssl/authorization/v1/clients/instance 2016-10-01 18:20:37.759117 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:142 :: Request timeout is 10.000000 2016-10-01 18:20:37.760509 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:221 :: Sending request (http://52.77.249.78:9080/testssl/authorization/v1/clients/instance) with headers: { "Accept-Language" = "en-US"; "User-Agent" = "OfflineAuthSample/1.0 (iPhone; iOS 10.0.1; Scale/3.00)/WLNativeAPI/7.1.0.0"; "X-Requested-With" = XMLHttpRequest; "x-wl-app-version" = "1.0"; "x-wl-device-id" = "A886EC57-DA81-4CF0-8F2D-9A2378124BCB"; "x-wl-platform-version" = "7.1.0.0"; } You can see the request body in the Analytics platform logs. 2016-10-01 18:20:37.765230 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper start] in WLAFHTTPRequestOperationManagerWrapper.m:320 :: Starting the request with URL http://52.77.249.78:9080/testssl/authorization/v1/clients/instance 2016-10-01 18:20:37.766217 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] __42-[WLRequest sendRequest:path:withOptions:]_block_invoke in WLRequest.m:231 :: waiting for response... (Thread=<NSThread: 0x174073a00>{number = 1, name = main}) 2016-10-01 18:20:37.767243 OfflineAuthSample[3807:1252807] THREAD WARNING: ['WLAuthorizationManagerPlugin'] took '101.814941' ms. Plugin should use a background thread. 2016-10-01 18:20:38.649720 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFailed:error:] in WLAFHTTPRequestOperationManagerWrapper.m:352 :: Request Failed 2016-10-01 18:20:38.651924 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFailed:error:] in WLAFHTTPRequestOperationManagerWrapper.m:353 :: Response Status Code : 401 2016-10-01 18:20:38.653315 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFailed:error:] in WLAFHTTPRequestOperationManagerWrapper.m:354 :: Response Error : Request failed: unauthorized (401) 2016-10-01 18:20:38.656197 OfflineAuthSample[3807:1252807] [DEBUG] [WORKLIGHT] +[WLClient sharedInstance] in WLClient.m:165 :: IBMMobilieFirstFoundation.framework version = 7.1-2015/09/14 00:19:02 2016-10-01 18:20:38.663312 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] +[WLAFHTTPRequestOperationManagerWrapper requestWithURL:] in WLAFHTTPRequestOperationManagerWrapper.m:52 :: Request url is http://52.77.249.78:9080/testssl/authorization/v1/clients/instance 2016-10-01 18:20:38.665685 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:142 :: Request timeout is 10.000000 2016-10-01 18:20:38.667459 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:221 :: Sending request (http://52.77.249.78:9080/testssl/authorization/v1/clients/instance) with headers: { "Accept-Language" = "en-US"; Authorization = "{\"wl_authenticityRealm\":\"1cmUeOcbV/wyYuPi6FRi7/cndEWc8Jg/umF6tuIiUTo=\"}"; "User-Agent" = "OfflineAuthSample/1.0 (iPhone; iOS 10.0.1; Scale/3.00)/WLNativeAPI/7.1.0.0"; "X-Requested-With" = XMLHttpRequest; "x-wl-app-version" = "1.0"; "x-wl-device-id" = "A886EC57-DA81-4CF0-8F2D-9A2378124BCB"; "x-wl-platform-version" = "7.1.0.0"; } You can see the request body in the Analytics platform logs. 2016-10-01 18:20:38.670973 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper start] in WLAFHTTPRequestOperationManagerWrapper.m:320 :: Starting the request with URL http://52.77.249.78:9080/testssl/authorization/v1/clients/instance 2016-10-01 18:20:38.672750 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] __42-[WLRequest sendRequest:path:withOptions:]_block_invoke in WLRequest.m:231 :: waiting for response... (Thread=<NSThread: 0x174073a00>{number = 1, name = main}) 2016-10-01 18:20:38.850841 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:333 :: Request Success 2016-10-01 18:20:38.852492 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:334 :: Response Status Code : 200 2016-10-01 18:20:38.856083 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:335 :: Response Content : {"certificate":"MIICeDCCAWCgAwIBAgIJANfoTRSlEd4vMA0GCSqGSIb3DQEBCwUAMGAxCzAJBgNVBAYTAklMMQswCQYDVQQIEwJJTDERMA8GA1UEBxMIU2hlZmF5aW0xDDAKBgNVBAoTA0lCTTESMBAGA1UECxMJV29ya2xpZ2h0MQ8wDQYDVQQDEwZXTCBEZXYwIBcNMTYxMDAxMTAyMDI5WhgPMjA2NjEwMDExMDIwMjlaMF0xITAfBgoJkiaJk\/IsZAEZFhFPZmZsaW5lQXV0aFNhbXBsZTE4MDYGCgmSJomT8ixkAQETKDdmM2U1ZTc3NmY3OTczMDA1YTFiYTU4MWQ5ZTRmYzIwZDZiMjA2N2IwXDANBgkqhkiG9w0BAQEFAANLADBIAkEAjspPlIymI497gJwvz8wN5kz5elteLzpNgR\/CMWFIZ3fESDPqa+pyOoUq27MzlhCeF5qCsOQRirOpxCTEiFQwfwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCtyM9ayMRlrefJ\/\/9TpGg33Gez\/WiAnOsRLSzCmQGL36Sycny4WrTMKITNSIC9Lgu92PL6lIgqzRUVsepq2\/AXizsZwrjkpFAC4gqzjcgs2C9w+FTRHROayP7xdk532ohL8Q9MyFZjKCkiEJCbLjbWsfywsntmLUHBeg0SehZM\/F5Zv7OD5xTI1mmmjV+\/E12WKwKskXkkJdIAEv+cw1EHYPkr7zzG51jisoK7f+DhMNDAeKJWCxksJycOba0f\/TCHQY\/ssrSwELJs9wD2PGOR030HCXS3xFGVwMDHGXR+t8OKM3Vp45w8sTmE6IQCB7fLL\/G\/0SouTIyAQA9xDI7y"} 2016-10-01 18:20:38.858704 OfflineAuthSample[3807:1252807] [DEBUG] [WORKLIGHT] +[WLClient sharedInstance] in WLClient.m:165 :: IBMMobilieFirstFoundation.framework version = 7.1-2015/09/14 00:19:02 2016-10-01 18:20:38.862329 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:365 :: Response Header: { "Content-Length" = 878; "Content-Type" = "application/json;charset=UTF-8"; Date = "Sat, 01 Oct 2016 10:20:29 GMT"; "X-Powered-By" = "Servlet/3.0"; } Response Data: {"certificate":"MIICeDCCAWCgAwIBAgIJANfoTRSlEd4vMA0GCSqGSIb3DQEBCwUAMGAxCzAJBgNVBAYTAklMMQswCQYDVQQIEwJJTDERMA8GA1UEBxMIU2hlZmF5aW0xDDAKBgNVBAoTA0lCTTESMBAGA1UECxMJV29ya2xpZ2h0MQ8wDQYDVQQDEwZXTCBEZXYwIBcNMTYxMDAxMTAyMDI5WhgPMjA2NjEwMDExMDIwMjlaMF0xITAfBgoJkiaJk\/IsZAEZFhFPZmZsaW5lQXV0aFNhbXBsZTE4MDYGCgmSJomT8ixkAQETKDdmM2U1ZTc3NmY3OTczMDA1YTFiYTU4MWQ5ZTRmYzIwZDZiMjA2N2IwXDANBgkqhkiG9w0BAQEFAANLADBIAkEAjspPlIymI497gJwvz8wN5kz5elteLzpNgR\/CMWFIZ3fESDPqa+pyOoUq27MzlhCeF5qCsOQRirOpxCTEiFQwfwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCtyM9ayMRlrefJ\/\/9TpGg33Gez\/WiAnOsRLSzCmQGL36Sycny4WrTMKITNSIC9Lgu92PL6lIgqzRUVsepq2\/AXizsZwrjkpFAC4gqzjcgs2C9w+FTRHROayP7xdk532ohL8Q9MyFZjKCkiEJCbLjbWsfywsntmLUHBeg0SehZM\/F5Zv7OD5xTI1mmmjV+\/E12WKwKskXkkJdIAEv+cw1EHYPkr7zzG51jisoK7f+DhMNDAeKJWCxks 2016-10-01 18:20:38.865610 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:424 :: NSS object is null 2016-10-01 18:20:38.873479 OfflineAuthSample[3807:1252807] [DEBUG] [CERTIFICATE_MANAGER] BOOL hasCertificateExpired(X509 *) in WLCertManager.m:647 :: Certificate currentDate: 2016-10-01 10:20:38 +0000, expiryDate: 2066-10-01 10:20:29 +0000 2016-10-01 18:20:38.877528 OfflineAuthSample[3807:1252807] [WARN] [CERTIFICATE_MANAGER] +[WLCertManager isCertificateVerified:] in WLCertManager.m:572 :: Verification failure: unable to verify the first certificate 2016-10-01 18:20:38.883162 OfflineAuthSample[3807:1252807] [DEBUG] [CERTIFICATE_MANAGER] +[WLCertManager saveCertificate:withLabel:] in WLCertManager.m:78 :: Certificate saved. 2016-10-01 18:20:38.900978 OfflineAuthSample[3807:1252852] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] +[WLAFHTTPRequestOperationManagerWrapper requestWithURL:] in WLAFHTTPRequestOperationManagerWrapper.m:52 :: Request url is http://52.77.249.78:9080/testssl/apps/services/api/OfflineAuthSample/iphone/login 2016-10-01 18:20:38.903341 OfflineAuthSample[3807:1252852] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper start] in WLAFHTTPRequestOperationManagerWrapper.m:320 :: Starting the request with URL http://52.77.249.78:9080/testssl/apps/services/api/OfflineAuthSample/iphone/login 2016-10-01 18:20:39.048286 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:333 :: Request Success 2016-10-01 18:20:39.049534 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:334 :: Response Status Code : 200 2016-10-01 18:20:39.052398 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:335 :: Response Content : /*-secure- {"errorMessage":null,"isSuccessful":true,"authRequired":true}*/ 2016-10-01 18:20:40.510105 OfflineAuthSample[3807:1252807] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles 2016-10-01 18:20:40.519465 OfflineAuthSample[3807:1252807] [MC] Reading from public effective user settings. 2016-10-01 18:20:47.358122 OfflineAuthSample[3807:1252880] [DEBUG] [NONE] establishSSLClientAuth 2016-10-01 18:20:47.359112 OfflineAuthSample[3807:1252807] [WARN] [USER_CERT_AUTH] +[WLUserAuthManager getCertificateIdentifier] in WLUserAuthManager.m:68 :: Certificate Identifier Key: com.worklight.userenrollment.certificate:com.OfflineAuthSample 2016-10-01 18:20:47.360715 OfflineAuthSample[3807:1252855] 0x17414a3a0 Copy matching assets reply: XPC_TYPE_DICTIONARY <dictionary: 0x17414a3a0> { count = 1, transaction: 0, voucher = 0x0, contents = "Result" => <int64: 0x174224a60>: 29 } 2016-10-01 18:20:47.362028 OfflineAuthSample[3807:1252855] 0x17414a030 Daemon configuration query reply: XPC_TYPE_DICTIONARY <dictionary: 0x17414a030> { count = 2, transaction: 0, voucher = 0x0, contents = "Dictionary" => <dictionary: 0x17414aa80> { count = 1, transaction: 0, voucher = 0x0, contents = "ServerURL" => <dictionary: 0x1741497f0> { count = 3, transaction: 0, voucher = 0x0, contents = "com.apple.CFURL.magic" => <uuid: 0x174243db0> C3853DCC-9776-4114-B6C1-FD9F51944A6D "com.apple.CFURL.string" => <string: 0x174247080> { length = 30, contents = "https://mesu.apple.com/assets/" } "com.apple.CFURL.base" => <null: 0x1b0757e80>: null-object } } "Result" => <int64: 0x174229900>: 0 } 2016-10-01 18:20:47.362292 OfflineAuthSample[3807:1252855] [MobileAssetError:29] Unable to copy asset information from https://mesu.apple.com/assets/ for asset type com.apple.MobileAsset.TextInput.SpellChecker 2016-10-01 18:20:47.364273 OfflineAuthSample[3807:1252855] [DEBUG] [NONE] establishSSLClientAuth isCertificateExists: false 2016-10-01 18:20:47.365370 OfflineAuthSample[3807:1252853] [DEBUG] [NONE] Request [/apps/services/../../invoke] 2016-10-01 18:20:47.373678 OfflineAuthSample[3807:1252853] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] +[WLAFHTTPRequestOperationManagerWrapper requestWithURL:] in WLAFHTTPRequestOperationManagerWrapper.m:52 :: Request url is http://52.77.249.78:9080/testssl/invoke 2016-10-01 18:20:47.375603 OfflineAuthSample[3807:1252853] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper start] in WLAFHTTPRequestOperationManagerWrapper.m:320 :: Starting the request with URL http://52.77.249.78:9080/testssl/invoke 2016-10-01 18:20:48.300515 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:333 :: Request Success 2016-10-01 18:20:48.302971 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:334 :: Response Status Code : 200 2016-10-01 18:20:48.306128 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:335 :: Response Content : /*-secure- {"challenges":{"wl_antiXSRFRealm":{"WL-Instance-Id":"ib694qt4eqq93i5magp7iqf5qh"}}}*/ 2016-10-01 18:20:48.329077 OfflineAuthSample[3807:1253047] [DEBUG] [NONE] response [/apps/services/../../invoke] success: /*-secure- {"challenges":{"wl_antiXSRFRealm":{"WL-Instance-Id":"ib694qt4eqq93i5magp7iqf5qh"}}}*/ 2016-10-01 18:20:48.329486 OfflineAuthSample[3807:1252807] No matching configurations found from the server. Defaulting to local configuration 2016-10-01 18:20:48.341231 OfflineAuthSample[3807:1253047] [TRACE] [WL_AUTH] -[WLDeviceAuthManager getWLUniqueDeviceId] in WLDeviceAuthManager.m:71 :: returning UUID from the keychain 2016-10-01 18:20:48.346860 OfflineAuthSample[3807:1253047] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] +[WLAFHTTPRequestOperationManagerWrapper requestWithURL:] in WLAFHTTPRequestOperationManagerWrapper.m:52 :: Request url is http://52.77.249.78:9080/testssl/apps/services/loguploader 2016-10-01 18:20:48.349978 OfflineAuthSample[3807:1253047] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:142 :: Request timeout is 10.000000 2016-10-01 18:20:48.352905 OfflineAuthSample[3807:1253047] [TRACE] [WL_AUTH] -[WLDeviceAuthManager getWLUniqueDeviceId] in WLDeviceAuthManager.m:71 :: returning UUID from the keychain 2016-10-01 18:20:48.356290 OfflineAuthSample[3807:1253047] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:221 :: Sending request (http://52.77.249.78:9080/testssl/apps/services/loguploader) with headers: { "Accept-Language" = "en-US"; "Content-Encoding" = gzip; "Content-Type" = "application/json"; "User-Agent" = "OfflineAuthSample/1.0 (iPhone; iOS 10.0.1; Scale/3.00)/WLNativeAPI/7.1.0.0"; "X-Requested-With" = XMLHttpRequest; "x-wl-app-version" = "1.0"; "x-wl-clientlog-appname" = OfflineAuthSample; "x-wl-clientlog-appversion" = "1.0"; "x-wl-clientlog-deviceId" = "A886EC57-DA81-4CF0-8F2D-9A2378124BCB"; "x-wl-clientlog-env" = iphone; "x-wl-clientlog-model" = "iPhone8,2"; "x-wl-clientlog-osversion" = "10.0.1"; "x-wl-compressed" = true; "x-wl-device-id" = "A886EC57-DA81-4CF0-8F2D-9A2378124BCB"; "x-wl-platform-version" = "7.1.0.0"; } You can see the request body in the Analytics platform logs. 2016-10-01 18:20:48.375203 OfflineAuthSample[3807:1253047] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper start] in WLAFHTTPRequestOperationManagerWrapper.m:320 :: Starting the request with URL http://52.77.249.78:9080/testssl/apps/services/loguploader 2016-10-01 18:20:48.377642 OfflineAuthSample[3807:1253047] [DEBUG] [WL_REQUEST] __42-[WLRequest sendRequest:path:withOptions:]_block_invoke in WLRequest.m:231 :: waiting for response... (Thread=<NSThread: 0x17427f140>{number = 14, name = (null)}) 2016-10-01 18:20:48.382231 OfflineAuthSample[3807:1253047] [TRACE] [WL_AUTH] -[WLDeviceAuthManager getWLUniqueDeviceId] in WLDeviceAuthManager.m:71 :: returning UUID from the keychain 2016-10-01 18:20:48.384336 OfflineAuthSample[3807:1253047] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] +[WLAFHTTPRequestOperationManagerWrapper requestWithURL:] in WLAFHTTPRequestOperationManagerWrapper.m:52 :: Request url is http://52.77.249.78:9080/testssl/apps/services/loguploader 2016-10-01 18:20:48.388040 OfflineAuthSample[3807:1253047] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:142 :: Request timeout is 10.000000 2016-10-01 18:20:48.390529 OfflineAuthSample[3807:1253047] [TRACE] [WL_AUTH] -[WLDeviceAuthManager getWLUniqueDeviceId] in WLDeviceAuthManager.m:71 :: returning UUID from the keychain 2016-10-01 18:20:48.392962 OfflineAuthSample[3807:1253047] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:221 :: Sending request (http://52.77.249.78:9080/testssl/apps/services/loguploader) with headers: { "Accept-Language" = "en-US"; "Content-Encoding" = gzip; "Content-Type" = "application/json"; "User-Agent" = "OfflineAuthSample/1.0 (iPhone; iOS 10.0.1; Scale/3.00)/WLNativeAPI/7.1.0.0"; "X-Requested-With" = XMLHttpRequest; "x-wl-app-version" = "1.0"; "x-wl-clientlog-appname" = OfflineAuthSample; "x-wl-clientlog-appversion" = "1.0"; "x-wl-clientlog-deviceId" = "A886EC57-DA81-4CF0-8F2D-9A2378124BCB"; "x-wl-clientlog-env" = iphone; "x-wl-clientlog-model" = "iPhone8,2"; "x-wl-clientlog-osversion" = "10.0.1"; "x-wl-compressed" = true; "x-wl-device-id" = "A886EC57-DA81-4CF0-8F2D-9A2378124BCB"; "x-wl-platform-version" = "7.1.0.0"; } You can see the request body in the Analytics platform logs. 2016-10-01 18:20:48.407261 OfflineAuthSample[3807:1253047] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper start] in WLAFHTTPRequestOperationManagerWrapper.m:320 :: Starting the request with URL http://52.77.249.78:9080/testssl/apps/services/loguploader 2016-10-01 18:20:48.409068 OfflineAuthSample[3807:1253047] [DEBUG] [WL_REQUEST] __42-[WLRequest sendRequest:path:withOptions:]_block_invoke in WLRequest.m:231 :: waiting for response... (Thread={number = 14, name = (null)}) 2016-10-01 18:20:48.609066 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:333 :: Request Success 2016-10-01 18:20:48.611440 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:334 :: Response Status Code : 201 2016-10-01 18:20:48.614530 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:335 :: Response Content : 2016-10-01 18:20:48.618208 OfflineAuthSample[3807:1252807] [DEBUG] [WORKLIGHT] +[WLClient sharedInstance] in WLClient.m:165 :: IBMMobilieFirstFoundation.framework version = 7.1-2015/09/14 00:19:02 2016-10-01 18:20:48.620666 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:365 :: Response Header: { "Content-Language" = "en-US"; "Content-Length" = 0; Date = "Sat, 01 Oct 2016 10:20:39 GMT"; P3P = "policyref=\"/w3c/p3p.xml\", CP=\"CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE\""; "X-Powered-By" = "Servlet/3.0"; } Response Data: Status code=201 2016-10-01 18:20:48.623068 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:424 :: NSS object is null 2016-10-01 18:20:48.625059 OfflineAuthSample[3807:1252807] [DEBUG] [OCLogger] Client Logs successfully sent to server. 2016-10-01 18:20:48.718881 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:333 :: Request Success 2016-10-01 18:20:48.721363 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:334 :: Response Status Code : 201 2016-10-01 18:20:48.724519 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:335 :: Response Content : 2016-10-01 18:20:48.728144 OfflineAuthSample[3807:1252807] [DEBUG] [WORKLIGHT] +[WLClient sharedInstance] in WLClient.m:165 :: IBMMobilieFirstFoundation.framework version = 7.1-2015/09/14 00:19:02 2016-10-01 18:20:48.730032 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:365 :: Response Header: { "Content-Language" = "en-US"; "Content-Length" = 0; Date = "Sat, 01 Oct 2016 10:20:39 GMT"; P3P = "policyref=\"/w3c/p3p.xml\", CP=\"CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE\""; "X-Powered-By" = "Servlet/3.0"; } Response Data: Status code=201 2016-10-01 18:20:48.732786 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:424 :: NSS
From the log, the error is: +[WLAFHTTPRequestOperationManagerWrapper requestWithURL:] in WLAFHTTPRequestOperationManagerWrapper.m:52 :: Request url is http://52.77.249.78:9080/testssl/authorization/v1/clients/instance 2016-10-01 18:20:38.665685 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:142 :: Request timeout is 10.000000 2016-10-01 18:20:38.667459 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] The request seems to have timed out. You should change your network, why would the request time out with the server you're using. I also see that you're using a device running iOS 10, in which case you should also handle Apple's changed behavior in regards to ATS (Application Transport Security) starting iOS 9. Read more about ATS in MobileFirst Platform Foundation: https://mobilefirstplatform.ibmcloud.com/blog/2015/09/09/ats-and-bitcode-in-ios9/
Nginx inputstream ssk offloading
WHen using NginX for ssl offloading things work fine, however when trying to do this for serialized stream over a socket it seems to work incorrectly, and the documentation over using streams http://nginx.org/en/docs/stream/ngx_stream_upstream_module.html makes no sense, can anyone help me with a working foo bar example of how to ssl offload for a streaming input(made of serialized logging event objects in this case) with nginx Edit: we are trying to forward and strip SSL off of log4j socketappender output but cannot even get the forwarding working when the SSL is not enabled. here is the config file without the ssl offloading portion(when retrieving non https the forwarding still does not work correctly) events { worker_connections 1024; } http { server { listen 4560 ; server_name logstash.corelims.com; location / { proxy_pass_request_headers on; proxy_pass http://localhost:4561/; proxy_redirect http://localhost:4561/ http://logstash.corelims.com:4560/; } error_log C:/ELK/nginx-1.9.4/logs/debug.log debug; } } which leads us to these debug logs: 2015/08/27 00:54:59 [info] 5052#3716: *45 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading client request line, client: IP.ADDRESS.HIDDENFOR.POST, server: foo.bar.com, request: "’ " 2015/08/27 00:54:59 [debug] 5052#3716: *45 lingering read: -1 2015/08/27 00:54:59 [debug] 5052#3716: *45 http request count:1 blk:0 2015/08/27 00:54:59 [debug] 5052#3716: *45 http close request 2015/08/27 00:54:59 [debug] 5052#3716: *45 http log handler 2015/08/27 00:54:59 [debug] 5052#3716: *45 free: 008DE8E8, unused: 1991 2015/08/27 00:54:59 [debug] 5052#3716: *45 close http connection: 300 2015/08/27 00:54:59 [debug] 5052#3716: *45 event timer del: 300: 1822859279 2015/08/27 00:54:59 [debug] 5052#3716: *45 select del event fd:300 ev:0 2015/08/27 00:54:59 [debug] 5052#3716: *45 reusable connection: 0 2015/08/27 00:54:59 [debug] 5052#3716: *45 free: 023BCED0 2015/08/27 00:54:59 [debug] 5052#3716: *45 free: 023BEEA8, unused: 24 2015/08/27 12:27:45 [debug] 5052#3716: select del event fd:316 ev:0
How to invoke the url or link of an adapter
I need know how to invoke the adapter from the development server in the cloud. In the local environment we have the option in eclipse but in the development server in the cloud, I can´t see the option for invoking. I use MobileFirst 7.0 Update - The notification based in tags does not arrive to my device. The problem is that in the console the notification is success, but these never arrive to my device. This is the message in my log. [4/1/15 19:39:03:451 CDT] 00000081 ht.integration.js.JavaScriptIntegrationLibraryImplementation I Notificacion enviada exitosamente {"message":{"alert":"nacion"},"target":{"tagNames":["nacion"]},"settings":{"apns":{"sound":"57_dog-barking.mp3","payload":{"url":"nacion"}}}} [project ElUniversal] [4/1/15 19:41:14:328 CDT] 0000013f ht.integration.js.JavaScriptIntegrationLibraryImplementation I Notificacion enviada exitosamente {"message":{"alert":"nacion"},"target":{"tagNames":["nacion"]},"settings":{"apns":{"sound":"57_dog-barking.mp3","payload":{"url":"nacion.com"}}}} [project ElUniversal] [4/1/15 19:42:26:417 CDT] 000000cb ht.integration.js.JavaScriptIntegrationLibraryImplementation I Notificacion enviada exitosamente {"message":{"alert":"metropolitest"},"target":{"tagNames":["metropoli"]},"settings":{"apns":{"sound":"57_dog-barking.mp3","payload":{"url":"metropoliurl"}}}} [project ElUniversal] [4/1/15 19:42:36:649 CDT] 00000118 ht.integration.js.JavaScriptIntegrationLibraryImplementation I Notificacion enviada exitosamente {"message":{"alert":"metropolitest"},"target":{"tagNames":["metropoli"]},"settings":{"apns":{"sound":"57_dog-barking.mp3","payload":{"url":"metropoliurl"}}}} [project ElUniversal] [4/1/15 19:44:15:229 CDT] 000000d1 com.worklight.common.util.jmx.LibertyRuntimeMBeanHandler I Establishing REST connection to service:jmx:rest://localhost:9443/IBMJMXConnectorREST [4/1/15 19:45:03:448 CDT] 000001d7 ht.integration.js.JavaScriptIntegrationLibraryImplementation I Notificacion enviada exitosamente {"message":{"alert":"metropolitest"},"target":{"tagNames":["metropoli"]},"settings":{"apns":{"sound":"57_dog-barking.mp3","payload":{"url":"metropoliurl"}}}} [project ElUniversal] [4/1/15 19:45:23:708 CDT] 00000036 ht.integration.js.JavaScriptIntegrationLibraryImplementation I Notificacion enviada exitosamente {"message":{"alert":"metropolitest"},"target":{"tagNames":["metropoli"]},"settings":{"apns":{"sound":"57_dog-barking.mp3","payload":{"url":"metropoliurl"}}}} [project ElUniversal] [4/1/15 19:46:29:882 CDT] 000001e8 ht.integration.js.JavaScriptIntegrationLibraryImplementation I Notificacion enviada exitosamente {"message":{"alert":"deportestest"},"target":{"tagNames":["deportes"]},"settings":{"apns":{"sound":"57_dog-barking.mp3","payload":{"url":"deportesurl"}}}} [project ElUniversal] In my nativeApp the connection to the server is correct and this is a part of the Output: 2015-04-01 19:09:34.041 El_Universal_Demo[211:9844] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:220 :: Sending request (http://198.11.212.196:9080/ElUniversal/apps/services/loguploader) with headers: { "Accept-Language" = es; "Content-Encoding" = gzip; "Content-Type" = "application/json"; "User-Agent" = "El_Universal_Demo/1 (iPhone; iOS 8.1.2; Scale/2.00)/WLNativeAPI/7.0.0.0"; "X-Requested-With" = XMLHttpRequest; "x-wl-app-version" = "1.0"; "x-wl-clientlog-appname" = "El_Universal_Demo"; "x-wl-clientlog-appversion" = "1.0"; "x-wl-clientlog-deviceId" = "A6042553-8580-4365-A69C-6731388D6A56"; "x-wl-clientlog-env" = iOSnative; "x-wl-clientlog-model" = "iPhone6,1"; "x-wl-clientlog-osversion" = "8.1.2"; "x-wl-compressed" = true; "x-wl-device-id" = "A6042553-8580-4365-A69C-6731388D6A56"; "x-wl-platform-version" = "7.0.0.0"; } You can see the request body in the Analytics platform logs. 2015-04-01 19:09:34.081 El_Universal_Demo[211:9844] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper start] in WLAFHTTPClientWrapper.m:297 :: Starting the request with URL http://198.11.212.196:9080/ElUniversal/apps/services/loguploader 2015-04-01 19:09:34.085 El_Universal_Demo[211:9844] [DEBUG] [WL_REQUEST] __42-[WLRequest sendRequest:path:withOptions:]_block_invoke in WLRequest.m:230 :: waiting for response... (Thread=<NSThread: 0x170260f40>{number = 1, name = main}) 2015-04-01 19:09:34.187 El_Universal_Demo[211:9844] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFinished:] in WLAFHTTPClientWrapper.m:310 :: Request Success 2015-04-01 19:09:34.193 El_Universal_Demo[211:9844] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFinished:] in WLAFHTTPClientWrapper.m:311 :: Response Status Code : 201 2015-04-01 19:09:34.199 El_Universal_Demo[211:9844] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFinished:] in WLAFHTTPClientWrapper.m:312 :: Response Content : 2015-04-01 19:09:34.210 El_Universal_Demo[211:9844] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:361 :: Response Header: { "Content-Language" = "en-US"; "Content-Length" = 0; Date = "Thu, 02 Apr 2015 01:10:30 GMT"; P3P = "policyref=\"/w3c/p3p.xml\", CP=\"CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE\""; "X-Powered-By" = "Servlet/3.0"; } Response Data: Status code=201 2015-04-01 19:09:34.214 El_Universal_Demo[211:9844] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:404 :: NSS object is null 2015-04-01 19:09:34.217 El_Universal_Demo[211:9844] [DEBUG] [OCLogger] Client Logs successfully sent to server. 2015-04-01 19:09:34.269 El_Universal_Demo[211:9844] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFinished:] in WLAFHTTPClientWrapper.m:310 :: Request Success 2015-04-01 19:09:34.274 El_Universal_Demo[211:9844] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFinished:] in WLAFHTTPClientWrapper.m:311 :: Response Status Code : 201 2015-04-01 19:09:34.279 El_Universal_Demo[211:9844] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFinished:] in WLAFHTTPClientWrapper.m:312 :: Response Content : 2015-04-01 19:09:34.290 El_Universal_Demo[211:9844] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:361 :: Response Header: { "Content-Language" = "en-US"; "Content-Length" = 0; Date = "Thu, 02 Apr 2015 01:10:30 GMT"; P3P = "policyref=\"/w3c/p3p.xml\", CP=\"CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE\""; "X-Powered-By" = "Servlet/3.0"; } Response Data: Status code=201 2015-04-01 19:09:34.298 El_Universal_Demo[211:9844] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:404 :: NSS object is null 2015-04-01 19:09:34.304 El_Universal_Demo[211:9844] [DEBUG] [OCLogger] Analytics data successfully sent to server. When I suscribe to specific tag, this is the log in my console of Xcode. 2015-04-01 19:25:36.579 El_Universal_Demo[242:14249] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] +[WLAFHTTPClientWrapper requestWithURL:] in WLAFHTTPClientWrapper.m:46 :: Request url is http://198.11.212.196:9080/ElUniversal/apps/services/api/El_Universal_Demo/iOSnative/notifications 2015-04-01 19:25:36.586 El_Universal_Demo[242:14249] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:141 :: Request timeout is 10.000000 2015-04-01 19:25:36.589 El_Universal_Demo[242:14249] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:220 :: Sending request (http://198.11.212.196:9080/ElUniversal/apps/services/api/El_Universal_Demo/iOSnative/notifications) with headers: { "Accept-Language" = es; "User-Agent" = "El_Universal_Demo/1 (iPhone; iOS 8.1.2; Scale/2.00)/WLNativeAPI/7.0.0.0"; "X-Requested-With" = XMLHttpRequest; "x-wl-app-version" = "1.0"; "x-wl-device-id" = "A6042553-8580-4365-A69C-6731388D6A56"; "x-wl-platform-version" = "7.0.0.0"; } You can see the request body in the Analytics platform logs. 2015-04-01 19:25:36.596 El_Universal_Demo[242:14249] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper start] in WLAFHTTPClientWrapper.m:297 :: Starting the request with URL http://198.11.212.196:9080/ElUniversal/apps/services/api/El_Universal_Demo/iOSnative/notifications 2015-04-01 19:25:36.601 El_Universal_Demo[242:14249] [DEBUG] [WL_REQUEST] __42-[WLRequest sendRequest:path:withOptions:]_block_invoke in WLRequest.m:230 :: waiting for response... (Thread=<NSThread: 0x170064f00>{number = 1, name = main}) 2015-04-01 19:25:36.876 El_Universal_Demo[242:14249] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFinished:] in WLAFHTTPClientWrapper.m:310 :: Request Success 2015-04-01 19:25:36.881 El_Universal_Demo[242:14249] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFinished:] in WLAFHTTPClientWrapper.m:311 :: Response Status Code : 200 2015-04-01 19:25:36.886 El_Universal_Demo[242:14249] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFinished:] in WLAFHTTPClientWrapper.m:312 :: Response Content : /*-secure- {"errors":[],"isSuccessful":true,"warnings":[],"info":[]}*/ 2015-04-01 19:25:36.893 El_Universal_Demo[242:14249] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:361 :: Response Header: { "Cache-Control" = "no-cache, no-store, must-revalidate"; "Content-Length" = 70; "Content-Type" = "application/json; charset=UTF-8"; Date = "Thu, 02 Apr 2015 01:26:33 GMT"; Expires = "Thu, 01 Jan 1970 00:00:00 GMT"; P3P = "policyref=\"/w3c/p3p.xml\", CP=\"CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE\""; Pragma = "no-cache"; "X-Powered-By" = "Servlet/3.0"; } Response Data: /*-secure- {"errors":[],"isSuccessful":true,"warnings":[],"info":[]}*/ Status code=200 2015-04-01 19:25:36.897 El_Universal_Demo[242:14249] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:404 :: NSS object is null 2015-04-01 19:25:36.899 El_Universal_Demo[242:14249] [DEBUG] [WL_PUSH] -[TagSubscribeRequestDelegate onSuccessWithResponse:userInfo:] in WLPush.m:132 :: Successfully subscribed to tag tucartera 2015-04-01 19:25:36.904 El_Universal_Demo[242:14249] on Success Status: 0 InvocationResult: (null) InvocationContext: (null) Response text: /*-secure- {"errors":[],"isSuccessful":true,"warnings":[],"info":[]}*/
To invoke the adapter through their endpoint simply make a request to the following url: http(s)://<server>:<port>/<project-name>/adapters/<adapter-name>/<procedure-name> For example: http://localhost:10080/MyProject/adapters/MyHttpAdapter/myRssFeed In the previous example, my MobileFirst server is running on localhost at port 10080, I have a project called MyProject and adapter MyHttpAdapter with a function myRssFeed In IBM MobileFirst Platform V7.0 security is based on the OAuth model so you are going to need an authorization token to invoke adapters if they are protected. For DEVELOPMENT ENVIRONMENT ONLY you can get a test authorization token at: http(s)://<server>:<port>/<project-name>/authorization/v1/testtoken To learn more about invoking adapters visit: http://www-01.ibm.com/support/knowledgecenter/SSHSCD_7.0.0/com.ibm.worklight.dev.doc/devref/c_adapters_endpoint.html?lang=en To learn more about the OAuth test token visit: http://www-01.ibm.com/support/knowledgecenter/SSHSCD_7.0.0/com.ibm.worklight.dev.doc/devref/c_oauth_test_token_endpoint.html?lang=en
I found the problem, finally! I had that change the JDK 6 to 7 in the server because in the log of server appeared a Error Message when I invoked my adapter http://###.##.###.###:9080/ElUniversal/adapters/DemoAdapter/sendNotification?params=[%27nacion%27,%27testNacion%27,%27nacion%27] javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.j: End user tried to act as a CA And this is the link for replace here! Regards