Login Code Snippet not working Unable to login: Unexpected character "60": line 1, column 1
SUSHEN SARKAR (11●1)
| asked Sep 10 '18, 11:22 a.m.
edited Sep 11 '18, 10:52 a.m. by Ralph Schoon (63.1k●3●36●45) 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
Ralph Schoon (63.1k●3●36●45)
| 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
|
2 other answers
|
Ralph Schoon (63.1k●3●36●45)
| 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. |
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.