I have tried using my openID at livejournal: michaelwechner.livejournal.com
but receive the following error (HTML):
An error occurred! Please press back and try again.
resp.
java.lang.NullPointerException
at
org.verisign.joid.consumer.JoidConsumer.getAuthUrl(JoidConsumer.java:164)
Any idea why it doesn't work with livejournal?
Thanks
Michael
--
Michael Wechner
Wyona - Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael...@wyona.com, mi...@apache.org
+41 44 272 91 61
>
>163)
>
>whereas this also seems to have covered by
>
>http://groups.google.com/group/joid-dev/browse_thread/thread/962cf46501ea660d
>
>will dig some more ;-)
>
>
it seems that Sergey has replaced the GET request within
Index: src/org/verisign/joid/consumer/Util.java
===================================================================
--- src/org/verisign/joid/consumer/Util.java (Revision 84)
+++ src/org/verisign/joid/consumer/Util.java (Arbeitskopie)
@@ -20,6 +20,10 @@
BufferedReader in = null;
try {
+/*
+See reply of Sergey:
http://groups.google.com/group/joid-dev/browse_thread/thread/962cf46501ea660d
+*/
+
URL url = new URL(dest+"?"+toSend);
HttpURLConnection.setFollowRedirects(true);
HttpURLConnection connection = (HttpURLConnection)
url.openConnectio
by a post request
HttpClient client = *new* HttpClient();
PostMethod post = *new* PostMethod(dest);
*for* (Map.Entry<String, String> param : *(Set<Map.Entry<String, String>>)
req.toMap().entrySet()*) {
post.addParameter(param.getKey(), param.getValue());
}
client.executeMethod(post);
in = *new* BufferedReader(*new* InputStreamReader(
post.getResponseBodyAsStream()));
I am just wondering if this doesn't break with any other OpenID
providers than livejournal
Will dig some more tomorrow, but need to get some sleep now
Good night
Michael
>Cheers
>
>Michael
>
>
>>Any idea why it doesn't work with livejournal?
>>
>>Thanks
>>
>>Michael
>>
>>--
>>Michael Wechner
>>Wyona - Open Source Content Management - Yanel, Yuluphttp://www.wyona.com
>>michael.wech...@wyona.com, mi...@apache.org
>>+41 44 272 91 61
>>
>>
>>
>
>
--
Michael Wechner
Wyona - Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael...@wyona.com, mi...@apache.org