|
Re: Server Connection [message #260123 is a reply to message #260119] |
Thu, 14 May 2009 12:20 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
HI,
Do you have a stack trace available? Code just doesn't "not execute" on
its own. It is either bypassed by an if/return stmt or an exception was
thrown.
Eddy Freeman wrote:
> Hello Everybody,
>
> Am sorry if here is the wrong place to post this question. If there is
> any newsgroup for this question then point me there.
>
> I am making a server connection from my plugin using XML-RPC but it is
> not working from the plugin.When i use the class in a normal Java
> Application and run it as a normal Java Application, it works fine and
> makes the connection to the server. But when i compile my plugin and get
> a new instance and click on a button to make the connection, everything
> works until it reaches the line before the class that makes the
> connection and all other lines of the code don't execute including the
> class that makes the connection.
>
> The class looks like:
>
> publc class ServerCon{
>
> publc ServerCon{
>
> XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
> try {
> config.setServerURL(new
> URL("http://localhost:8008/optel/servlet/Service"));
> } catch (MalformedURLException e) {
> e.printStackTrace();
> }
>
> XmlRpcClient client = new XmlRpcClient();
> client.setConfig(config);
> ..
> //other code here
> ..
>
> result = (Object[]) client.execute(this.methodKeyOnServer,this.arguments);
>
>
> ..
> //other code here
> ..
>
> }
> }
>
> Do i have to include certain libraries in the plugin libraries. I have
> imported all the necessary XML-RPC libraries in the build path. Do i
> have to do something special?
>
> It cannot make the server connection when am running the application as
> a plugin.
>
> Thanks for all your help.
>
>
> regards,
> Eddy.
>
>
>
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.03250 seconds