Service response is missing [Location] header

13 views
Skip to first unread message

jivkoto

unread,
Mar 12, 2010, 5:55:57 AM3/12/10
to j4sc
Hi,
nice work. I have a problem. I am getting:

com.googlecode.j4sc.service.ServiceException: Service response is
missing [Location] header
at com.googlecode.j4sc.service.Service
$SubmissionResult.extractSingleHeaderValue(Service.java:254)
at com.googlecode.j4sc.service.Service
$SubmissionResult.extractLocationUri(Service.java:238)
at com.googlecode.j4sc.service.Service
$SubmissionResult.<init>(Service.java:226)

I've tried to debug but the source from the svn does not match for the
jars. Anyway, can you help with that or provide source jar to debug it?

jivkoto

unread,
Mar 12, 2010, 9:38:19 AM3/12/10
to j4sc
Hi Raj,
I've build the latest svn sources and debug it. The code is checking
for Location header in the http response. It means that the
implementation supports only the Poll mechanism of getting the message
from spinbox. And there is no way to use with Push setup, because the
code throws exception if it is not present.
I am suggesting to remove that limitation to be able to use in case of
PUSH setup. You may remove the exception throwing if Location is not
set, and you can later check if the SubmissionReference has URI set
before processing it. That way the PUSH setup will supported on the
run.
Anyway, You've done great job.

Regards,
Zhivko

Raj Patel

unread,
Mar 14, 2010, 5:33:33 AM3/14/10
to j4...@googlegroups.com
Hi Zhivko

Firstly, sorry for the delay in responding. We haven't been actively keeping up with changes in the API and the new PUSH mechanism so thanks for raising this.

Sounds like what we possibly need is a two types of SubmissionReference. 

A PollingSubmissionReference would include the URI and credentials as well as the reference

A PushSubmissionReference would include only the reference.

Im gonna add a failing test case and drive through a fix 

Will update you on progress

Regards

Raj

--
You received this message because you are subscribed to the Google Groups "j4sc" group.
To post to this group, send email to j4...@googlegroups.com.
To unsubscribe from this group, send email to j4sc+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/j4sc?hl=en.




--
Raj Patel
Mobile: 07957 446908
Home: 0208 371 1958

cebi marrudhappan

unread,
Mar 14, 2010, 7:27:15 AM3/14/10
to j4...@googlegroups.com
Hi,

I am struggling for more than a week. Please help me out to resolve this issue.

1) Imported the J4SC and followed the steps mentioned.
2) When the Submission and Retrieving is through LIVE -> getting Socket connection sometimes, Peer Authentication sometimes and Sometimes INAUDIBLE status
3)When the Submission and Retrieving is through DEVELOPMENT -> Getting STANDARD MESSAGE from SpinVox.
4) When the Submission is LIVE and Retrieving is DEVELOPMENT -> Authentication Error


Tried with SpinvoxAPIJava source and followed the steps and imported all jars.
1) When i run, Gettin the below exception in line
HttpResponse response = httpclient.execute(httppost);

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.http.message.
LineParser.hasProtocolVers ion(Lorg/apache/http/util/CharArrayBuffer;I)Z

Please let me know how to convert the audio to text. I am not recieving the URL.....Please its very urgent...
Please find attached the error messages...

Thanks a lot once again.

Thanks and Regards
Cebi

Spinvox.docx
Reply all
Reply to author
Forward
0 new messages