Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » MalformedURLException: Eclipse vs WebSphere
MalformedURLException: Eclipse vs WebSphere [message #86383] Tue, 01 July 2003 12:58 Go to next message
Sudarshan Raghavan is currently offline Sudarshan RaghavanFriend
Messages: 15
Registered: July 2009
Junior Member
Hi,
My plugin uses RMI and works perfectly under Eclipse 2.1. However, when I
ported it to WebSphere (WSAD 5.0), it throws a
"MalformedURLException: no protocol: Files\IBM\WebSphere" exception.
Initially I thought that it might be due to the fact that WSAD is based on
Eclipse 2.0 but later discovered that the problem is due to spaces in the
path where WebSphere is installed (C:\Program Files\IBM\WebSphere
Studio\eclipse).

Is there a way to counter this problem ?

Regards,
Sudarshan Raghavan
www.spectrumscm.com
Re: MalformedURLException: Eclipse vs WebSphere [message #87050 is a reply to message #86383] Wed, 02 July 2003 03:43 Go to previous messageGo to next message
Chris Laffra is currently offline Chris LaffraFriend
Messages: 253
Registered: July 2009
Senior Member
Who throws the exception? Can you give us a stack dump?

Chris Laffra

"Sudarshan Raghavan" <bali_n@yahoo.com> wrote in message
news:bds0hk$2gt$1@rogue.oti.com...
> Hi,
> My plugin uses RMI and works perfectly under Eclipse 2.1. However, when I
> ported it to WebSphere (WSAD 5.0), it throws a
> "MalformedURLException: no protocol: Files\IBM\WebSphere" exception.
> Initially I thought that it might be due to the fact that WSAD is based on
> Eclipse 2.0 but later discovered that the problem is due to spaces in the
> path where WebSphere is installed (C:\Program Files\IBM\WebSphere
> Studio\eclipse).
>
> Is there a way to counter this problem ?
>
> Regards,
> Sudarshan Raghavan
> www.spectrumscm.com
>
>
Re: MalformedURLException: Eclipse vs WebSphere [message #87379 is a reply to message #87050] Wed, 02 July 2003 14:48 Go to previous messageGo to next message
Sudarshan Raghavan is currently offline Sudarshan RaghavanFriend
Messages: 15
Registered: July 2009
Junior Member
Heres the stack trace ...

Startup: using configuration file:C:/Documents and Settings/Bali/My
Documents/IBM/wsad/workspace/.metadata/.config/platform.cfg
Boot URL: file:C:/Program Files/IBM/WebSphere
Studio/eclipse/plugins/org.eclipse.core.boot_2.0.2.1/boot.ja r
Startup: splash path = C:\Program Files\IBM\WebSphere
Studio\eclipse\plugins\com.ibm.wsappdev.ga.win32_5.0.0.1\spl ash.bmp
Workspace location: C:\Documents and Settings\Bali\My
Documents\IBM\wsad\workspace
Debug-Options: file:C:/Program Files/IBM/WebSphere Studio/.options
Install URL: file:C:/Program Files/IBM/WebSphere Studio/eclipse/

java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is:
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServ er(StreamRemoteC
all.java:257)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteC all.java:232)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:135)
at scm.implementation.Scmd_i_Stub.login(Unknown Source)
at
scm.eclipse.wrappers.SpectrumSCM_AuthManager.validateServer( Unknown Source)
at
com.spectrumscm.eclipse.core.SpectrumSCM_ServerManager.addSe rver(SpectrumSCM
_ServerManager.java:49)
at
com.spectrumscm.eclipse.ui.wizards.SpectrumSCM_NewWizard.per formFinish(Spect
rumSCM_NewWizard.java:60)
at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:577)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:312)
at
org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.jav a:407)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:87)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled Code))
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:1529)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1291)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:562 )
at org.eclipse.jface.window.Window.open(Window.java:542)
at
com.spectrumscm.eclipse.ui.views.SpectrumSCM_ServerView$4.ru n(SpectrumSCM_Se
rverView.java:142)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:749 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
ContributionItem.java:407)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Event(ActionCont
ributionItem.java:361)
at
org.eclipse.jface.action.ActionContributionItem.access$0(Act ionContributionI
tem.java:352)
at
org.eclipse.jface.action.ActionContributionItem$ActionListen er.handleEvent(A
ctionContributionItem.java:47)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled Code))
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:1529)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1291)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1343)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1326)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
a:831)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
at java.lang.reflect.Method.invoke(Native Method)
at org.eclipse.core.launcher.Main.basicRun(Main.java:247)
at org.eclipse.core.launcher.Main.run(Main.java:703)
at org.eclipse.core.launcher.Main.main(Main.java:539)


---------------------- System Properties -------------------------------

J2RE 1.3.1 IBM Windows 32 build cn131-20020710
C:\Program Files\IBM\WebSphere
Studio\eclipse\jre\bin\java.exe -Xms64M -Xquickstart -Xgcpolicy:optavgpause
-cp C:\Program Files\IBM\WebSphere Studio\eclipse\startup.jar
org.eclipse.core.launcher.Main -os win32 -ws win32 -arch x86 -showsplash
C:\Program Files\IBM\WebSphere Studio\eclipse\eclipse.exe -showsplash 600
Files\IBM\WebSphere Studio\.\.\eclipse\eclipse.exe -data C:\Documents and
Settings\Bali\My Documents\IBM\wsad\workspace -debug
Java Home Dir: C:\Program Files\IBM\WebSphere Studio\eclipse\jre
Java DLL Dir: C:\Program Files\IBM\WebSphere Studio\eclipse\jre\bin
Sys Classpath: C:\Program Files\IBM\WebSphere
Studio\eclipse\jre\lib\rt.jar;C:\Program Files\IBM\WebSphere
Studio\eclipse\jre\lib\i18n.jar;C:\Program Files\IBM\WebSphere
Studio\eclipse\jre\classes
UserArgs:
-Djava.class.path=.
-Xms64M
-Xquickstart
-Xgcpolicy:optavgpause
-Djava.class.path=C:\Program Files\IBM\WebSphere Studio\eclipse\startup.jar
-Dinvokedviajava

Sudarshan Raghavan
www.spectrumscm.com


"Chris Laffra" <Chris_Laffra@oti.com> wrote in message
news:bdtkdk$ime$1@rogue.oti.com...
> Who throws the exception? Can you give us a stack dump?
>
> Chris Laffra
>
> "Sudarshan Raghavan" <bali_n@yahoo.com> wrote in message
> news:bds0hk$2gt$1@rogue.oti.com...
> > Hi,
> > My plugin uses RMI and works perfectly under Eclipse 2.1. However, when
I
> > ported it to WebSphere (WSAD 5.0), it throws a
> > "MalformedURLException: no protocol: Files\IBM\WebSphere" exception.
> > Initially I thought that it might be due to the fact that WSAD is based
on
> > Eclipse 2.0 but later discovered that the problem is due to spaces in
the
> > path where WebSphere is installed (C:\Program Files\IBM\WebSphere
> > Studio\eclipse).
> >
> > Is there a way to counter this problem ?
> >
> > Regards,
> > Sudarshan Raghavan
> > www.spectrumscm.com
> >
> >
>
>
Re: MalformedURLException: Eclipse vs WebSphere [message #87394 is a reply to message #87379] Wed, 02 July 2003 14:58 Go to previous messageGo to next message
Sudarshan Raghavan is currently offline Sudarshan RaghavanFriend
Messages: 15
Registered: July 2009
Junior Member
Sorry ... the first couple of lines in the stacktrace posted in my previous
message should have read:

java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.net.MalformedURLException: no protocol: Files/IBM/WebSpherejava

Sudarshan Raghavan
www.spectrumscm.com


"Sudarshan Raghavan" <bali_n@yahoo.com> wrote in message
news:bdunrd$h46$1@rogue.oti.com...
> Heres the stack trace ...
>
> Startup: using configuration file:C:/Documents and Settings/Bali/My
> Documents/IBM/wsad/workspace/.metadata/.config/platform.cfg
> Boot URL: file:C:/Program Files/IBM/WebSphere
> Studio/eclipse/plugins/org.eclipse.core.boot_2.0.2.1/boot.ja r
> Startup: splash path = C:\Program Files\IBM\WebSphere
> Studio\eclipse\plugins\com.ibm.wsappdev.ga.win32_5.0.0.1\spl ash.bmp
> Workspace location: C:\Documents and Settings\Bali\My
> Documents\IBM\wsad\workspace
> Debug-Options: file:C:/Program Files/IBM/WebSphere Studio/.options
> Install URL: file:C:/Program Files/IBM/WebSphere Studio/eclipse/
>
> java.rmi.ServerException: RemoteException occurred in server thread;
nested
> exception is:
> at
>
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServ er(StreamRemoteC
> all.java:257)
> at
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteC all.java:232)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:135)
> at scm.implementation.Scmd_i_Stub.login(Unknown Source)
> at
> scm.eclipse.wrappers.SpectrumSCM_AuthManager.validateServer( Unknown
Source)
> at
>
com.spectrumscm.eclipse.core.SpectrumSCM_ServerManager.addSe rver(SpectrumSCM
> _ServerManager.java:49)
> at
>
com.spectrumscm.eclipse.ui.wizards.SpectrumSCM_NewWizard.per formFinish(Spect
> rumSCM_NewWizard.java:60)
> at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:577)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:312)
> at
> org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.jav a:407)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:87)
> at
> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled
Code))
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:1529)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1291)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:562 )
> at org.eclipse.jface.window.Window.open(Window.java:542)
> at
>
com.spectrumscm.eclipse.ui.views.SpectrumSCM_ServerView$4.ru n(SpectrumSCM_Se
> rverView.java:142)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:749 )
> at
>
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
> ContributionItem.java:407)
> at
>
org.eclipse.jface.action.ActionContributionItem.handleWidget Event(ActionCont
> ributionItem.java:361)
> at
>
org.eclipse.jface.action.ActionContributionItem.access$0(Act ionContributionI
> tem.java:352)
> at
>
org.eclipse.jface.action.ActionContributionItem$ActionListen er.handleEvent(A
> ctionContributionItem.java:47)
> at
> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled
Code))
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:1529)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1291)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1343)
> at org.eclipse.ui.internal.Workbench.run(Workbench.java:1326)
> at
>
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
> a:831)
> at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
> at java.lang.reflect.Method.invoke(Native Method)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:247)
> at org.eclipse.core.launcher.Main.run(Main.java:703)
> at org.eclipse.core.launcher.Main.main(Main.java:539)
>
>
> ---------------------- System Properties -------------------------------
>
> J2RE 1.3.1 IBM Windows 32 build cn131-20020710
> C:\Program Files\IBM\WebSphere
>
Studio\eclipse\jre\bin\java.exe -Xms64M -Xquickstart -Xgcpolicy:optavgpause
> -cp C:\Program Files\IBM\WebSphere Studio\eclipse\startup.jar
> org.eclipse.core.launcher.Main -os win32 -ws win32 -arch x86 -showsplash
> C:\Program Files\IBM\WebSphere Studio\eclipse\eclipse.exe -showsplash 600
> Files\IBM\WebSphere Studio\.\.\eclipse\eclipse.exe -data C:\Documents and
> Settings\Bali\My Documents\IBM\wsad\workspace -debug
> Java Home Dir: C:\Program Files\IBM\WebSphere Studio\eclipse\jre
> Java DLL Dir: C:\Program Files\IBM\WebSphere Studio\eclipse\jre\bin
> Sys Classpath: C:\Program Files\IBM\WebSphere
> Studio\eclipse\jre\lib\rt.jar;C:\Program Files\IBM\WebSphere
> Studio\eclipse\jre\lib\i18n.jar;C:\Program Files\IBM\WebSphere
> Studio\eclipse\jre\classes
> UserArgs:
> -Djava.class.path=.
> -Xms64M
> -Xquickstart
> -Xgcpolicy:optavgpause
> -Djava.class.path=C:\Program Files\IBM\WebSphere
Studio\eclipse\startup.jar
> -Dinvokedviajava
>
> Sudarshan Raghavan
> www.spectrumscm.com
>
>
Re: MalformedURLException: Eclipse vs WebSphere [message #87781 is a reply to message #87394] Thu, 03 July 2003 02:48 Go to previous message
Chris Laffra is currently offline Chris LaffraFriend
Messages: 253
Registered: July 2009
Senior Member
Strange (to get dissimilar behavior as you are experiencing). Has to do
something with the JRE differences, I would guess. Have you tried
running WSAD with the same JRE you use to run eclipse on? E.g.,

wsappdev.exe -vm [eclipse_jre_path]\jre\bin\javaw.exe -data
[yourworkspace]

Does the error go away? If so, this sounds like an incompatibility between
your JRE and the one shipped with WSAD.

Where did you get your eclipse JRE?

Chris

"Sudarshan Raghavan" <bali_n@yahoo.com> wrote in message
news:bduoe5$hlu$1@rogue.oti.com...
> Sorry ... the first couple of lines in the stacktrace posted in my
previous
> message should have read:
>
> java.rmi.ServerException: RemoteException occurred in server thread;
nested
> exception is:
> java.rmi.UnmarshalException: error unmarshalling arguments; nested
> exception is:
> java.net.MalformedURLException: no protocol:
Files/IBM/WebSpherejava
>
> Sudarshan Raghavan
> www.spectrumscm.com
>
>
> "Sudarshan Raghavan" <bali_n@yahoo.com> wrote in message
> news:bdunrd$h46$1@rogue.oti.com...
> > Heres the stack trace ...
> >
> > Startup: using configuration file:C:/Documents and Settings/Bali/My
> > Documents/IBM/wsad/workspace/.metadata/.config/platform.cfg
> > Boot URL: file:C:/Program Files/IBM/WebSphere
> > Studio/eclipse/plugins/org.eclipse.core.boot_2.0.2.1/boot.ja r
> > Startup: splash path = C:\Program Files\IBM\WebSphere
> > Studio\eclipse\plugins\com.ibm.wsappdev.ga.win32_5.0.0.1\spl ash.bmp
> > Workspace location: C:\Documents and Settings\Bali\My
> > Documents\IBM\wsad\workspace
> > Debug-Options: file:C:/Program Files/IBM/WebSphere Studio/.options
> > Install URL: file:C:/Program Files/IBM/WebSphere Studio/eclipse/
> >
> > java.rmi.ServerException: RemoteException occurred in server thread;
> nested
> > exception is:
> > at
> >
>
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServ er(StreamRemoteC
> > all.java:257)
> > at
> >
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteC all.java:232)
> > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:135)
> > at scm.implementation.Scmd_i_Stub.login(Unknown Source)
> > at
> > scm.eclipse.wrappers.SpectrumSCM_AuthManager.validateServer( Unknown
> Source)
> > at
> >
>
com.spectrumscm.eclipse.core.SpectrumSCM_ServerManager.addSe rver(SpectrumSCM
> > _ServerManager.java:49)
> > at
> >
>
com.spectrumscm.eclipse.ui.wizards.SpectrumSCM_NewWizard.per formFinish(Spect
> > rumSCM_NewWizard.java:60)
> > at
> >
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:577)
> > at
> >
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:312)
> > at
> > org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.jav a:407)
> > at
> > org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:87)
> > at
> > org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled
> Code))
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827)
> > at
> > org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:1529)
> > at
> > org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1291)
> > at org.eclipse.jface.window.Window.runEventLoop(Window.java:562 )
> > at org.eclipse.jface.window.Window.open(Window.java:542)
> > at
> >
>
com.spectrumscm.eclipse.ui.views.SpectrumSCM_ServerView$4.ru n(SpectrumSCM_Se
> > rverView.java:142)
> > at org.eclipse.jface.action.Action.runWithEvent(Action.java:749 )
> > at
> >
>
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
> > ContributionItem.java:407)
> > at
> >
>
org.eclipse.jface.action.ActionContributionItem.handleWidget Event(ActionCont
> > ributionItem.java:361)
> > at
> >
>
org.eclipse.jface.action.ActionContributionItem.access$0(Act ionContributionI
> > tem.java:352)
> > at
> >
>
org.eclipse.jface.action.ActionContributionItem$ActionListen er.handleEvent(A
> > ctionContributionItem.java:47)
> > at
> > org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled
> Code))
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827)
> > at
> > org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:1529)
> > at
> > org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1291)
> > at
> > org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1343)
> > at org.eclipse.ui.internal.Workbench.run(Workbench.java:1326)
> > at
> >
>
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
> > a:831)
> > at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
> > at java.lang.reflect.Method.invoke(Native Method)
> > at org.eclipse.core.launcher.Main.basicRun(Main.java:247)
> > at org.eclipse.core.launcher.Main.run(Main.java:703)
> > at org.eclipse.core.launcher.Main.main(Main.java:539)
> >
> >
> > ---------------------- System Properties -------------------------------
> >
> > J2RE 1.3.1 IBM Windows 32 build cn131-20020710
> > C:\Program Files\IBM\WebSphere
> >
>
Studio\eclipse\jre\bin\java.exe -Xms64M -Xquickstart -Xgcpolicy:optavgpause
> > -cp C:\Program Files\IBM\WebSphere Studio\eclipse\startup.jar
> > org.eclipse.core.launcher.Main -os win32 -ws win32 -arch x86 -showsplash
> > C:\Program Files\IBM\WebSphere Studio\eclipse\eclipse.exe -showsplash
600
> > Files\IBM\WebSphere Studio\.\.\eclipse\eclipse.exe -data C:\Documents
and
> > Settings\Bali\My Documents\IBM\wsad\workspace -debug
> > Java Home Dir: C:\Program Files\IBM\WebSphere Studio\eclipse\jre
> > Java DLL Dir: C:\Program Files\IBM\WebSphere Studio\eclipse\jre\bin
> > Sys Classpath: C:\Program Files\IBM\WebSphere
> > Studio\eclipse\jre\lib\rt.jar;C:\Program Files\IBM\WebSphere
> > Studio\eclipse\jre\lib\i18n.jar;C:\Program Files\IBM\WebSphere
> > Studio\eclipse\jre\classes
> > UserArgs:
> > -Djava.class.path=.
> > -Xms64M
> > -Xquickstart
> > -Xgcpolicy:optavgpause
> > -Djava.class.path=C:\Program Files\IBM\WebSphere
> Studio\eclipse\startup.jar
> > -Dinvokedviajava
> >
> > Sudarshan Raghavan
> > www.spectrumscm.com
> >
> >
>
>
Previous Topic:ILightweightLabelDecorator problem
Next Topic:debugging across multiple projects
Goto Forum:
  


Current Time: Wed Jan 15 06:57:30 GMT 2025

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

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

Back to the top