Operational Analytics - ZERO Client and Server logs document - ibm-mobilefirst
Server version: 7.1.0.00.20160229-1240
WebSphere ND 8.5.5.9
Mobile app sends logs to the server via WLClientLogReceiver adapter by calling method WL.Logger.send(); I do see the logs from Mobile app in application server SystemOut.log via terminal.
But the Operational Analytics console not loading any Client and Server logs. It shows ZERO documents in the administration tab. But it has documents for other transactions like session, adapter calls, device, etc.
While trying to search the logs using some keywords getting the below error in SystemOut.log file of Application Server.
[4/5/16 16:05:31:029 CDT] 000000fb JavaScriptInt I com.worklight.integration.js.JavaScriptIntegrationLibraryImplementation info Received device logs [project metlifepoc]
[4/5/16 16:05:55:428 CDT] 0000011e RequestProces E org.apache.wink.server.internal.RequestProcessor handleRequest An unhandled exception occurred which will be propagated to the container.
[4/5/16 16:05:55:429 CDT] 0000011e ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: An exception was thrown by one of the service methods of the servlet [data] in application [IMF Operational Analytics]. Exception created : [org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[Kdo8LGq9QTy-ghZsOC-8Xw][worklight][0]: SearchParseException[[worklight][0]: from[0],size[10]: Parse Failure [Failed to parse source [{"from":0,"size":10,"query":{"filtered":{"query":{"query_string":{"query":"message: met* ","default_operator":"and","analyzer":"normalization","lowercase_expanded_terms":true,"analyze_wildcard":true}},"filter":{"bool":{"must":{"range":{"timestamp":{"from":"1459310400000","to":"1459915199999","include_lower":true,"include_upper":true}}}}}}},"sort":[{"timestamp":{"order":"desc"}}]}]]]; nested: NoClassDefFoundError[org.apache.lucene.analysis.icu.ICUFoldingFilter (initialization failure)]; nested: RuntimeException[java.io.IOException: ICU data file error: Header authentication failed, please check if you have a valid ICU data file]; nested: IOException[ICU data file error: Header authentication failed, please check if you have a valid ICU data file]; }{[Kdo8LGq9QTy-ghZsOC-8Xw][worklight]1: SearchParseException[[worklight]1: from[0],size[10]: Parse Failure [Failed to parse source [{"from":0,"size":10,"query":{"filtered":{"query":{"query_string":{"query":"message: met* ","default_operator":"and","analyzer":"normalization","lowercase_expanded_terms":true,"analyze_wildcard":true}},"filter":{"bool":{"must":{"range":{"timestamp":{"from":"1459310400000","to":"1459915199999","include_lower":true,"include_upper":true}}}}}}},"sort":[{"timestamp":{"order":"desc"}}]}]]]; nested: NoClassDefFoundError[org.apache.lucene.analysis.icu.ICUFoldingFilter (initialization failure)]; nested: RuntimeException[java.io.IOException: ICU data file error: Header authentication failed, please check if you have a valid ICU data file]; nested: IOException[ICU data file error: Header authentication failed, please check if you have a valid ICU data file]; }{[Kdo8LGq9QTy-ghZsOC-8Xw][worklight][2]: SearchParseException[[worklight][2]: from[0],size[10]: Parse Failure [Failed to parse source [{"from":0,"size":10,"query":{"filtered":{"query":{"query_string":{"query":"message: met* ","default_operator":"and","analyzer":"normalization","lowercase_expanded_terms":true,"analyze_wildcard":true}},"filter":{"bool":{"must":{"range":{"timestamp":{"from":"1459310400000","to":"1459915199999","include_lower":true,"include_upper":true}}}}}}},"sort":[{"timestamp":{"order":"desc"}}]}]]]; nested: NoClassDefFoundError[org.apache.lucene.analysis.icu.ICUFoldingFilter (initialization failure)]; nested: RuntimeException[java.io.IOException: ICU data file error: Header authentication failed, please check if you have a valid ICU data file]; nested: IOException[ICU data file error: Header authentication failed, please check if you have a valid ICU data file]; }{[Kdo8LGq9QTy-ghZsOC-8Xw][worklight][3]: SearchParseException[[worklight][3]: from[0],size[10]: Parse Failure [Failed to parse source [{"from":0,"size":10,"query":{"filtered":{"query":{"query_string":{"query":"message: met* ","default_operator":"and","analyzer":"normalization","lowercase_expanded_terms":true,"analyze_wildcard":true}},"filter":{"bool":{"must":{"range":{"timestamp":{"from":"1459310400000","to":"1459915199999","include_lower":true,"include_upper":true}}}}}}},"sort":[{"timestamp":{"order":"desc"}}]}]]]; nested: NoClassDefFoundError[org.apache.lucene.analysis.icu.ICUFoldingFilter (initialization failure)]; nested: RuntimeException[java.io.IOException: ICU data file error: Header authentication failed, please check if you have a valid ICU data file]; nested: IOException[ICU data file error: Header authentication failed, please check if you have a valid ICU data file]; }{[Kdo8LGq9QTy-ghZsOC-8Xw][worklight][4]: SearchParseException[[worklight][4]: from[0],size[10]: Parse Failure [Failed to parse source [{"from":0,"size":10,"query":{"filtered":{"query":{"query_string":{"query":"message: met* ","default_operator":"and","analyzer":"normalization","lowercase_expanded_terms":true,"analyze_wildcard":true}},"filter":{"bool":{"must":{"range":{"timestamp":{"from":"1459310400000","to":"1459915199999","include_lower":true,"include_upper":true}}}}}}},"sort":[{"timestamp":{"order":"desc"}}]}]]]; nested: NoClassDefFoundError[org.apache.lucene.analysis.icu.ICUFoldingFilter (initialization failure)]; nested: RuntimeException[java.io.IOException: ICU data file error: Header authentication failed, please check if you have a valid ICU data file]; nested: IOException[ICU data file error: Header authentication failed, please check if you have a valid ICU data file]; }
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:276)
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$3.onFailure(TransportSearchTypeAction.java:224)
at org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:205)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:80)
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:216)
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:203)
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:186)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:790)
]
[4/5/16 16:05:55:443 CDT] 0000011e FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /metlife/runtime/installed/WebSphere/AppServer/profiles/AppSrv01/logs/ffdc/MobileFirstAppServer_4475157a_16.04.05_16.05.55.4322080935388977381237.txt com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters -RE 1123
This issue was fixed by setting the analytics-service.war's classLoader to parentLast.
instructions to do so found here:
https://www.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.installconfig.doc/monitor/t_installing_op_analytics_websphere.html
Related
While calling Loqate api, getting certificate error
While calling loqate api https://api.addressy.com Please Help me in resolving this [BRA-100006- SSL configuration is not well defined ServiceException: BRA-100006 - SSL configuration is not well defined SunCertPathBuilderException: BRA-003 - An unexpected error occured (sun.security.provider.certpath.SunCertPathBuilderExpection with the following message: sun.security.provider.certpath.SunCertPathBuilderExpection: unable to to find valid certification path to request target Validationexception: BRA-003 - An unexpected error occurred (sun.security.validator.ValidatorException) with the following message sun.security.provider.certpath.SunCertPathBuilderExpection: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderexception: unable to find valid certification path to requested target.
Message Processor unable to send message from message store to endpoint in wso2 esb
I am getting the following error while my message processor trying to send the message from the message store. content type used in proxy: <property name="CONTENT_TYPE" value="appliaction/soap+xml" scope="axis2" /> error in esb log: ERROR {org.apache.synapse.message.processor.impl.forwarder.ForwardingService} - BlockingMessageSender of message processor [My_Processor] failed to send message to the endpoint {org.apache.synapse.message.processor.impl.forwarder.ForwardingService} WARN {org.apache.synapse.message.processor.impl.forwarder.ForwardingService} - Failed to send the message through the fault sequence, Sequence name null does not Exist. {org.apache.synapse.message.processor.impl.forwarder.ForwardingService} I have changed my content type but now getting another error. Find the error log : ERROR {org.apache.synapse.message.senders.blocking.BlockingMsgSender} - Error sending Message to url : http://localhost:9000/services/SimpleStockQuoteService {org.apache.synapse.message.senders.blocking.BlockingMsgSender} org.apache.axis2.AxisFault: Read timed out at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) at org.apache.synapse.message.senders.blocking.BlockingMsgSender.sendRobust(BlockingMsgSender.java:198) at org.apache.synapse.message.senders.blocking.BlockingMsgSender.send(BlockingMsgSender.java:144) at org.apache.synapse.message.processor.impl.forwarder.ForwardingService.dispatch(ForwardingService.java:288) at org.apache.synapse.message.processor.impl.forwarder.ForwardingService.execute(ForwardingService.java:128) at org.quartz.core.JobRunShell.run(JobRunShell.java:213) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:237) at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78) at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106) at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413) at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:622) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193) ... 12 more
CAS w/ SPNEGO Authentication error
I'm trying to set up CAS SSO with SPNEGO on a Windows environment. I've followed all the instructions in http://jasig.github.io/cas/4.0.x/installation/SPNEGO-Authentication.html but the authentication process fails. This is the output from the cas.log: 2015-03-04 11:36:22,732 DEBUG [org.jasig.cas.support.spnego.web.flow.SpnegoNegociateCredentialsAction] - Authorization header not found. Sending WWW-Authenticate header 2015-03-04 11:36:22,738 DEBUG [org.jasig.cas.web.support.CasArgumentExtractor] - Extractor did not generate service. 2015-03-04 11:36:22,738 DEBUG [org.jasig.cas.support.spnego.web.flow.SpnegoCredentialsAction] - SPNEGO Authorization header found with 1800 bytes 2015-03-04 11:36:22,739 DEBUG [org.jasig.cas.support.spnego.web.flow.SpnegoCredentialsAction] - Obtained token: `‚A+ ‚50‚1 $0" *†H‚÷ *†H†÷ +‚7 ¢‚‚`‚ÿ *†H†÷ n‚î0‚ê ¡¢ £‚a‚0‚ ¡ STU.EDU¢$0" ¡0HTTPrenato-pc.stu.edu£‚Ò0‚Î ¡¢‚À‚¼';Kù«î Qx‹¦ô¨Oö©$É(L)AµyaC²}wÚ(W+ˆeŽ»vj[èAe¿…íZÍ®CŸ”ÑúD€‘É’5©–k¼/Οêý7¨ÊÙþÅ’B´;Ñ€ã⽿ÌWat,ó5LJýÅÙ{¡3ê”G¦GÄ¥IyǤé¯Õ?9k`Zz!;cºE•Û[·˜Œª|{´:t%j¡ía”??H£³òØ×ë÷œoG ¦]+é<Ìàʨ®2›Uòx|㨱: a%ÆÔaJ6_½B:"õ¯Fܪ"\N+¼ª çšòÓ%Öá?xõyƒ;࿺õ$ÀŒã=»#›¹õç4 ²m>„¥U,»G!Ô½‰ô—C÷ȇݽo"ß;=ÿ™fáÉÁ¸^ŽÒÛÇÔa~µ‚üë‡³× ]Kôp2jž¬ÔP^§2§€jöù)4LLª˜“Œ‘¸"S8‚½óÞ°ÊæÏ‘R<%2Iÿ{‚E§½6¨FÌkÙ„<¡ãyŽù g]ü.B&²Äõ-ò\¿%:ØydˆTÈÊ jù® Æ®XŠ0EC§×CôèG?]b Ž#6“¾(3z`ñ×ðCWµkm¦<9µÓ^4éÐ5«›éÿÄ»«_™1åÁÖZÉ}ÁªG€0±½H¿Ì%oÎW‡Hj{¨8ÕÉ÷>Í8?×ÙZW)’¤žtK2é^A$(k¦ÒÇFñޤǰ¬#ÒÑÕHYXëªöϳgšÙK!9r(a9«ÐÜçPÓ¯ù[ºò«w¹Åm_#ÐÐyÚnVêø?ª3”›‚ Š§‰¦É”˜3iÅ_ûĦ¬8€ËókOŠ2uSkÒ[àù†hG³õí:aÌIUg´‹§ñÍSŸr2a?¥C“Ãpv2ÃÚ"Fk•W%\$Žò³ÇÁ8B#ðŠj‡xŒx ÈÛtSE½QMÓ¡x™I?•æW§‘¶¿èà? †ÏÅÎœßù›Ôžå?Ÿ‘˜‚e¾B¿L?$$8Ú`¼#p©‰ú0}´ðŒÎ`hâĤ? M ¶>[UMC*Ö#ã½Xùd…!#$? =²^cÌZ…&þ³P#q[©ƒB^t?PjÁWd~…©?¥ZƒêQ!)h:=“öy(‹?©½ä‡£ú]´1ìEØxÆ7‹BÞôÒ‹Ámr}kß½Ø&Ãxšö+ h((Ÿçå|?¼ÈNZô{hÎŽŒ_ª?}žl?_¼áa¤?¼0?¹ ¢?±?®ú4“kuñO§Bq9¸A¦0c©?0ƒòÕ‚N¶~)¨$TyÚì%µÈÓÉÌ\üšzǘř?$QSªØºrÝž :Ä®6¤2ì¦Ä74Œù‰pÆäL?÷z¸çz’ì3Ó$ߢݨ?þNVo™qí—§ˆ´u¨Þ“Âè?É×&‘c΢Y& «JèÈYU£§(¯…Ô°'/~ðÁó±ò“™F²”Ä8"ú This is the output from the tomcat server: 04-Mar-2015 11:34:00.187 SEVERE [http-nio-8443-exec-6] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [cas] in context with path [/cas] threw exception [Handler processing failed; nested exception is java.lang.ExceptionInInitializerError] with root cause java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.Byte; at org.jasig.cas.support.spnego.util.SpnegoConstants.<clinit>(SpnegoConstants.java:52) at org.jasig.cas.support.spnego.authentication.principal.SpnegoCredential.isTokenNtlm(SpnegoCredential.java:133) at org.jasig.cas.support.spnego.authentication.principal.SpnegoCredential.<init>(SpnegoCredential.java:79) at org.jasig.cas.support.spnego.web.flow.SpnegoCredentialsAction.constructCredentialsFromRequest(SpnegoCredentialsAction.java:79) at org.jasig.cas.web.flow.AbstractNonInteractiveCredentialsAction.doExecute(AbstractNonInteractiveCredentialsAction.java:73) at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188) at org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51) 04-Mar-2015 10:41:58.240 SEVERE [http-nio-8443-exec-5] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [cas] in context with path [/cas] threw exception [Handler processing failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.jasig.cas.support.spnego.util.SpnegoConstants] with root cause java.lang.NoClassDefFoundError: Could not initialize class org.jasig.cas.support.spnego.util.SpnegoConstants at org.jasig.cas.support.spnego.authentication.principal.SpnegoCredential.isTokenNtlm(SpnegoCredential.java:133) at org.jasig.cas.support.spnego.authentication.principal.SpnegoCredential.<init>(SpnegoCredential.java:79) at org.jasig.cas.support.spnego.web.flow.SpnegoCredentialsAction.constructCredentialsFromRequest(SpnegoCredentialsAction.java:79) at org.jasig.cas.web.flow.AbstractNonInteractiveCredentialsAction.doExecute(AbstractNonInteractiveCredentialsAction.java:73) at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188) I'm guessing that SPNEGO authentication is failing at Step 5 (Negotiate w/ SPNEGO Token). Does anyone know how to troubleshoot this? Thanks!
create a proxy for a datapower application
I am trying to consume a IBM datapower webservice in c#, wcf. But this is the error the vendor has sent. May 23 10:29:44 [error] wsgw(MedsHistoryWSP): trans(308571109)[request][ ]: Required elements filter setting reject: expression /*[local-name()='Envelope' and (namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/' or namespace-uri()='http://www.w3.org/2003/05/soap-envelope')]/*[local-name()='Header' and (namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/' or namespace-uri()='http://www.w3.org/2003/05/soap-envelope')]//*[local-name()='UsernameToken' and namespace-uri()='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd']/*[local-name()='Password'][not(/following-sibling::*[local-name()='Salt' or local-name()='Iteration'])] was not satisfied May 23 10:29:44 [error] wsgw(MedsHistoryWSP): trans(308571109)[request][ ]: Required elements filter setting reject: expression /*[local-name()='Envelope' and (namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/' or namespace-uri()='http://www.w3.org/2003/05/soap-envelope')]/*[local-name()='Header' and (namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/' or namespace-uri()='http://www.w3.org/2003/05/soap-envelope')]//*[local-name()='UsernameToken' and namespace-uri()='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd']/*[local-name()='Password'][not(/following-sibling::*[local-name()='Salt' or local-name()='Iteration'])] was not satisfied May 23 10:29:44 [error] wsgw(MedsHistoryWSP): trans(308571109)[request][ ]: Execution of 'store:///required-elements-filter.xsl' aborted: Rejected by policy. May 23 10:29:44 [error] wsgw(MedsHistoryWSP): trans(308571109)[request][ ]: Execution of 'store:///required-elements-filter.xsl' aborted: Rejected by policy. May 23 10:29:44 [error] wsgw(MedsHistoryWSP): trans(308571109)[request][ ]: Rejected by filter 'endpoint_14_5-1-2-request-rule-suptoken' of rule 'endpoint_14_5-req'. May 23 10:29:44 [error] wsgw(MedsHistoryWSP): trans(308571109)[request][ ]: Rejected by filter 'endpoint_14_5-1-2-request-rule-suptoken' of rule 'endpoint_14_5-req'. May 23 10:29:44 [error] wsgw(MedsHistoryWSP): trans(308571109)[request][ ]: request endpoint_14_5-req #3 filter: 'INPUT store:///required-elements-filter.xsl' failed: Rejected by policy. May 23 10:29:44 [error] wsgw(MedsHistoryWSP): trans(308571109)[request][ ]: request endpoint_14_5-req #3 filter: 'INPUT store:///required-elements-filter.xsl' failed: Rejected by policy. May 23 10:29:44 [error] wsgw(MedsHistoryWSP): trans(308571109)[request][ ]: rule (MedsHistoryWSP_default_request-rule): implied action Calling rule var://service/wspolicy/endpoint/configname with input INPUT and output PIPE failed: Rejected by policy. May 23 10:29:44 [error] wsgw(MedsHistoryWSP): trans(308571109)[request][ ]: rule (MedsHistoryWSP_default_request-rule): implied action Calling rule var://service/wspolicy/endpoint/configname with input INPUT and output PIPE failed: Rejected by policy. May 23 10:29:44 [error] wsgw(MedsHistoryWSP): trans(308571109)[error][ ]: Rejected by filter; SOAP fault sent May 23 10:29:44 [error] wsgw(MedsHistoryWSP): trans(308571109)[error][ ]: Rejected by filter; SOAP fault sent 1) Questions: First of all, any hints to consume a datapower webservice. I won't let me add a service reference in Visual studio. 2) This is how the sample soap looks like. https://stackoverflow.com/questions/16705812/wcf-client-usernametoken-nonce-x509-binary-security 3) Please suggest 2) Suppose I have this wsdl https://service100.emedny.org:9047/MHService?wsdl, what could be the custom binding
From the reject by filter I can guess that : the vendor sent message not according your wsdl file. I would suggest you open "prob" And maybe for the test peruse disable the policy. Hope I helped some how :)
The SOAP packet posted by you to the datapower seems to be incorrect. First you need to see WSDL and see if it contains any .. element. From the message it looks that it is using it. Now when you are posting a SOAP message to the datapower, datapower is saying the SOAP message is not correctly formed according the WSDL contract [In this case this is happening because 'UserNameToken' and its related content in SOAP header is not correctly structure.]. You need to re-structure the SOAP message. The best is to use any policy aware WS client and generate a sample request. Use that sample request as a starting point to understand how SOAP message needs to be formulated in case WS-Policy is attached with provided WSDL [The WSDL link above is not working, may be I can help if you post the WSDL file in this forum]. Ajitabh
Write onto RTMP stream using XUGGLER
I am working on a project, I want to write packets on to an RTMP container. What I have achieved is: To start an app which listens for RTMP requests using RED5. Lets say rtmp://localhost/myapp I could open IContainer with IContainerFormat's output format give as ("flv", "rtmp://localhost/myapp/test", null) Whats going wrong is : I want to write packets on to this RTMP channel that is opened for me. Issue is FFMPEG starts giving error 32. A bit of search related to this error showed that this is happens usually because there is a lag between client - server data consumption. But I really was not able to solve this issue. I have searched a lot but everyone is crying about the same issue. The error i get is : 12:57:20.242 [Thread-0] ERROR org.ffmpeg - WriteN, RTMP send error 32 (129 bytes) 12:57:20.246 [Thread-0] ERROR org.ffmpeg - WriteN, RTMP send error 32 (45 bytes) 12:57:20.246 [Thread-0] ERROR org.ffmpeg - WriteN, RTMP send error 9 (42 bytes) And this is the error i receive on Red5 Server [INFO] [NioProcessor-1] org.red5.server.stream.ClientBroadcastStream - Provider connect [INFO] [NioProcessor-1] org.red5.server.stream.ClientBroadcastStream - Stream start [INFO] [NioProcessor-1] org.red5.server.stream.ClientBroadcastStream - Provider connect [ERROR] [NioProcessor-1] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Error decoding buffer org.red5.server.net.protocol.ProtocolException: Error during decoding at org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decode(RTMPProtocolDecoder.java:203) [red5.jar:na] at org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decodeBuffer(RTMPProtocolDecoder.java:122) [red5.jar:na] at org.red5.server.net.rtmp.codec.RTMPMinaProtocolDecoder.decode(RTMPMinaProtocolDecoder.java:61) [red5.jar:na] at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:225) [mina-core-2.0.0-RC1.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.0-RC1.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) [mina-core-2.0.0-RC1.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793) [mina-core-2.0.0-RC1.jar:na] at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119) [mina-core-2.0.0-RC1.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.0-RC1.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426) [mina-core-2.0.0-RC1.jar:na] at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:638) [mina-core-2.0.0-RC1.jar:na] at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:598) [mina-core-2.0.0-RC1.jar:na] at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:587) [mina-core-2.0.0-RC1.jar:na] at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:61) [mina-core-2.0.0-RC1.jar:na] at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:969) [mina-core-2.0.0-RC1.jar:na] at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) [mina-core-2.0.0-RC1.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_07] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_07] at java.lang.Thread.run(Unknown Source) [na:1.7.0_07] Caused by: java.lang.IllegalArgumentException: null at java.nio.Buffer.limit(Unknown Source) [na:1.7.0_07] at org.red5.io.amf.Input.bufferToString(Input.java:275) [red5.jar:na] at org.red5.io.amf.Input.getString(Input.java:258) [red5.jar:na] at org.red5.io.amf.Input.readPropertyName(Input.java:565) [red5.jar:na] at org.red5.io.amf.Input.readKeyValues(Input.java:351) [red5.jar:na] at org.red5.io.amf.Input.readSimpleObject(Input.java:501) [red5.jar:na] at org.red5.io.amf.Input.readObject(Input.java:537) [red5.jar:na] at org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decodeStreamMetadata(RTMPProtocolDecoder.java:978) [red5.jar:na] at org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decodeMessage(RTMPProtocolDecoder.java:564) [red5.jar:na] at org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decodePacket(RTMPProtocolDecoder.java:385) [red5.jar:na] at org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decode(RTMPProtocolDecoder.java:190) [red5.jar:na] ... 18 common frames omitted [WARN] [NioProcessor-1] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Closing connection because decoding failed: RTMPMinaConnection from 127.0.0.1 : 44814 to localhost (in: 3569 out 3521 ) [INFO] [NioProcessor-1] org.red5.server.stream.ClientBroadcastStream - Close [INFO] [NioProcessor-1] org.red5.server.stream.ClientBroadcastStream - Provider disconnect [INFO] [NioProcessor-1] org.red5.server.stream.ClientBroadcastStream - Provider disconnect [INFO] [NioProcessor-1] org.red5.server.net.rtmp.RTMPHandler - Connecting to: [Scope#5f524524 Depth = 2, Path = '/default/myapp', Name = 'test'] [INFO] [NioProcessor-1] org.red5.server.net.rtmp.RTMPHandler - Remembering client buffer on stream: 300 [ERROR] [NioProcessor-1] org.red5.server.service.ServiceInvoker - Method FCSubscribe with parameters [teststream] not found in org.red5.core.Application#b9e19da [WARN] [NioProcessor-1] org.red5.server.stream.PlayEngine - Subscribe to teststream provider failed I am new to media streaming, so not sure if I am missing something. Thanks in advance.
I don't think that there is a different chance then debugging the Java Source code of RTMPProtocolDecoder. But I don't know what Red5 version you are using. RTMPProtocolDecoder.java:203 => In the latest version of Red5/Sources your exception is in line 147: http://code.google.com/p/red5/source/browse/java/server/trunk/src/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java#147 And also added with some comments. I guess first thing you would need to do is to update to latest red5. Based on that you can then debug and ask for more help.
Just to complete the answer. Do not rely on Red5 eclipse plugin, it generates code that is not compatible with Red 5 1.0RC2. Red5 1.0 RC 2 works fine with a configuration change in red5-web.xml. The app starts working and I could start a stream on the container using xuggler. Thank you #seba.wagner.