Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Server Connection
Server Connection [message #260119] Thu, 14 May 2009 10:54 Go to next message
Kap Pak is currently offline Kap PakFriend
Messages: 52
Registered: July 2009
Member
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.
Re: Server Connection [message #260123 is a reply to message #260119] Thu, 14 May 2009 12:20 Go to previous message
Eclipse UserFriend
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
Previous Topic:FIELD/CONTENT ASSIST and SYNTAX HIGHLIGHTING
Next Topic:weird Source not found problem
Goto Forum:
  


Current Time: Fri Oct 18 11:37:30 GMT 2024

Powered by FUDForum. Page generated in 0.03250 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top