EasyCwmp

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000272easycwmp[All Projects] Helppublic2017-07-14 08:292017-07-20 08:20
Reportermuratk 
Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
StatusnewResolutionopen 
PlatformOSOpenwrtOS Version
Summary0000272: sending http message failed: httpCode= 500
DescriptionAs the easycwmp first time inform the openacs server that built with tomcat,the server response:
+++ RECEIVED HTTP RESPONSE (PART) +++
<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;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade">

type Exception report

message

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

exception

java.lang.NullPointerException

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>
--- RECEIVED HTTP RESPONSE (PART) ---
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.
Attached Files

- Relationships

-  Notes
(0000751)
mohamed.kallel (manager)
2017-07-18 11:01

it's openacs issue.
Open ACS return always 500 error for any new device registration! even for non easycwmp user agents
(0000753)
muratk (reporter)
2017-07-20 08:20

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:
#define CWMP_INFORM_MESSAGE \
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>" \
  "<soap_env:Envelope " \
    "xmlns:soap_env=\"http://schemas.xmlsoap.org/soap/envelope/\" [^] " \
    "xmlns:soap_enc=\"http://schemas.xmlsoap.org/soap/encoding/\" [^] " \
    "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" [^] " \
    "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" [^] "\
    "xmlns:cwmp=\"urn:dslforum-org:cwmp-1-0\">"
   ...
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="http://schemas.xmlsoap.org/soap/envelope/" [^] (LF)
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/" [^] (LF)
xmlns:xsd="http://www.w3.org/2001/XMLSchema"(LF) [^]
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"(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


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker