Trying to login to livejournal

1 view
Skip to first unread message

Michael Wechner

unread,
Jan 20, 2008, 5:57:24 PM1/20/08
to joid-dev
Hi

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

michi

unread,
Jan 21, 2008, 6:39:20 PM1/21/08
to joid-dev


On Jan 20, 11:57 pm, Michael Wechner <michael.wech...@wyona.com>
wrote:
> Hi
>
> 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)

and the tomcat log file says

==> local/apache-tomcat-5.5.20/logs/catalina.out <==
org.verisign.joid.OpenIdException: Cannot parse response from
error:Unknown mode


at
org.verisign.joid.ResponseFactory.parse(ResponseFactory.java:70)
at org.verisign.joid.consumer.Util.send(Util.java:43)
at
org.verisign.joid.consumer.JoidConsumer.associate(JoidConsumer.java:
101)
at
org.verisign.joid.consumer.JoidConsumer.getProps(JoidConsumer.java:58)
at
org.verisign.joid.consumer.JoidConsumer.getAuthUrl(JoidConsumer.java:
163)

whereas this also seems to have covered by

http://groups.google.com/group/joid-dev/browse_thread/thread/962cf46501ea660d

will dig some more ;-)

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

Michael Wechner

unread,
Jan 21, 2008, 6:50:39 PM1/21/08
to joid...@googlegroups.com
michi wrote:

>
>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

Reply all
Reply to author
Forward
0 new messages