View Issue Details

IDProjectCategoryView StatusLast Update
0000272easycwmpHelppublic2017-07-20 08:20
Reportermuratk Assigned To 
Status newResolutionopen 
Summary0000272: sending http message failed: httpCode= 500
DescriptionAs the easycwmp first time inform the openacs server that built with tomcat,the server response:
<html><head><title>Apache Tomcat/6.0.32 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;} {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade">

type Exception report


description The server encountered an internal error () that prevented it from fulfilling this request.



note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.

<HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.32</h3></body></html>
850.88727 [../src/http.c:159] sending http message failed: httpCode= 500, res = 0
Additional Informationthe easycwmp works fine with another Xasc server. And the openacs with tomcat works fine with other cwmp client. So I do not think there is problem on our easycwmp client or the openacs.(I cant get the log of the server) Is that possible there is something incompatible between client and server, such as http header.
Expecting your response, thanks a lot.
TagsNo tags attached.



2017-07-18 11:01

administrator   ~0000751

it's openacs issue.
Open ACS return always 500 error for any new device registration! even for non easycwmp user agents


2017-07-20 08:20

reporter   ~0000753

I spent lots of time to compare the ok message from other ok client with the message from our easycwmp. Finally I find two key points to solve the code 500 problem.(code 500 alwasy means format error in the easycwmp case)
 Firstly, the version of tr069 in easycwmp shows in "xmlns:cwmp=urn:dslforum-org:cwmp-1-2", but the server just support "xmlns:cwmp=urn:dslforum-org:cwmp-1-0".For compatible, maybe it's better for you to change the version of tr069 to cwmp-1-0.
 Secondly, the soap envelop:
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>" \
  "<soap_env:Envelope " \
    "xmlns:soap_env=\"\" " \
    "xmlns:soap_enc=\"\" " \
    "xmlns:xsd=\"\" " \
    "xmlns:xsi=\"\" "\
the server didn't support the line break(LF) in element. But I didn't find anywhere in the code add the LF after load with:
   mxml_node_t *tree = mxmlLoadString(NULL, CWMP_INFORM_MESSAGE,MXML_NO_CALLBACK);
I caught from the message was (add the (LF) for easy understand ):
  <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope (LF)
xmlns:soap_env="" (LF)
xmlns:soap_enc="" (LF)
xmlns:cwmp="urn:dslforum-org:cwmp-1-0"> (LF)

I write a FUNC to solve this. Any advice about the root cause problem.

Issue History

Date Modified Username Field Change
2017-07-14 08:29 muratk New Issue
2017-07-18 11:01 mohamed.kallel Note Added: 0000751
2017-07-20 08:20 muratk Note Added: 0000753