Hello Simon thanks for your response. My URL works properly with the Ruby XML-RPC implementation (trac4r). The URL you provide is not recognized by the server, an exception is thrown by the client saying that no input stream can be created.
On Nov 12, 10:21 am, osimons <[email protected]> wrote: > On Nov 11, 2:54 pm, IBWT <[email protected]> wrote: > > [snip] > > > static public void main(String[] args) { > > try { > > TracInitializer tracInitializer = new > > TracInitializer("http://modelum.es/trac/mylyntest", "user", "pass"); > > tracInitializer.getTicket(2); > > } catch (MalformedURLException e) { > > // TODO Auto-generated catch block > > e.printStackTrace(); > > } > > [snip] > > > Caused by: org.apache.xmlrpc.XmlRpcException: Failed to create input > > stream: Server returned HTTP response code: 401 for > > URL:http://modelum.es/trac/mylyntest > > Your URL seems bad. It gets a 401 (not authorized), and I then doubt > that that URL challenges for authentication - and even if it does it > still lacks a call to the actual RPC handler. The URL should look > something like this (assuming "mylyntest" is a your project): > > http://modelum.es/trac/mylyntest/login/rpc > > :::simon -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
