It's all about the answers!

Ask a question

Login Code Snippet not working Unable to login: Unexpected character "60": line 1, column 1


SUSHEN SARKAR (111) | asked Sep 10 '18, 11:22 a.m.
edited Sep 11 '18, 10:52 a.m. by Ralph Schoon (63.2k33646)

 Nope url is fine. When I tried the same URL from a REST client it works fine with me. for me the error is "Unable to login: Unexpected character "60": line 1, column 1". I am trying to use the code snippet 1 file shared along with java api. Not sure what I am missing but this whole login process is very painful with lack of clarity in documentation.

Accepted answer


permanent link
Ralph Schoon (63.2k33646) | answered Sep 10 '19, 2:46 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 Works like a charm for me.


Extract Plain Java API e.g. to C:\API
in ./snippets/snippet1.java 
- Fix default URI
- Fix user name/ID

Read README.TXT

open CMD 
cd to Plain Java API foler C:\API
"c:\Program Files\Java\jdk1.8.0_191\bin"\javac -extdirs . snippets/*.java
"c:\Program Files\Java\jdk1.8.0_191\bin"\java -Djava.ext.dirs="c:\Program Files\Java\jdk1.8.0_191\jre\lib\ext";snippets;. snippets.Snippet1
on Unix use : instead of ; as separator for the (?)

Ralph Schoon selected this answer as the correct answer

Comments
Ralph Schoon commented Sep 10 '19, 2:48 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

PS: if you want answers, provide more information.

2 other answers



permanent link
Ralph Schoon (63.2k33646) | answered Sep 11 '18, 10:53 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 I can only suggest to start here: https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/


That blog has various examples that you can also use, ideally within an RTC Eclipse enabled for debugging.


Comments
Ralph Schoon commented Sep 11 '18, 10:55 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 Also, check the Java Version is 1.8 and the classpath matches. Also check How should I ask a question in the Forum if I want to receive useful answers? to learn how you want to ask questions really.


SUSHEN SARKAR commented Sep 12 '18, 3:04 p.m.

 Tried to follow the blog and then configured eclipse with RTC Client development environment however still facing the same problem. 


permanent link
Herbert Roberto (1112) | answered Sep 09 '19, 11:21 a.m.

Hi, did you solve this problem?

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.