axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <dava...@gmail.com>
Subject Re: Axis + Applet = Lost of errors .. latest (No transport mapping for protocol)
Date Wed, 13 Jul 2005 02:32:47 GMT
Check your generated stubs and see what url setTargetEndpointAddress
is being called with.

-- dims

On 7/12/05, Luis Rivera <luiggiil@hotmail.com> wrote:
> Henry,
> 
> Well, so far outside of an applet it has worked fine. I had my problems
> initially, but it had to do with libraries and deployment, as soon as that
> was resolved my axis client is able to contact the service. The problems
> come as soon as I use an applet, even with the policy I keep having
> exceptions that do not come when the client does not run in an applet.
> 
> Any clue about the latest error? I would really appreciate it !!!
> 
> The last exception is as follow:
> 
> ****************************************************************************
> - Exception:
> AxisFault
> faultCode: {http://xml.apache.org/axis/}Call.setTargetEndpointAddress
> faultSubcode:
> faultString: No transport mapping for protocol:  file
> faultActor:
> faultNode:
> faultDetail:
> {http://xml.apache.org/axis/}stackTrace:No transport mapping for protocol:
> file
>        at
> org.apache.axis.client.Call.setTargetEndpointAddress(Call.java:853)
>        at vcas.gui.wsdl.VSSStub.createCall(Unknown Source)
>        at vcas.gui.wsdl.VSSStub.signOn(Unknown Source)
>        at vcas.gui.vss.LoginDialog.cmdLogin_actionPerformed(Unknown Source)
>        at
> vcas.gui.vss.LoginDialog_cmdLogin_actionAdapter.actionPerformed(Unknown
> Source)
>        at
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
>        at
> javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
>        at
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
>        at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
>        at
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
>        at java.awt.Component.processMouseEvent(Component.java:5100)
>        at java.awt.Component.processEvent(Component.java:4897)
>        at java.awt.Container.processEvent(Container.java:1569)
>        at java.awt.Component.dispatchEventImpl(Component.java:3615)
>        at java.awt.Container.dispatchEventImpl(Container.java:1627)
>        at java.awt.Component.dispatchEvent(Component.java:3477)
>        at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
>        at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
>        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
>        at java.awt.Container.dispatchEventImpl(Container.java:1613)
>        at java.awt.Window.dispatchEventImpl(Window.java:1606)
>        at java.awt.Component.dispatchEvent(Component.java:3477)
>        at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
>        at
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
>        at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
>        at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
>        at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
>        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
> 
> {http://xml.apache.org/axis/}hostname:RIVERA-IBM
> 
> No transport mapping for protocol:  file
>        at
> org.apache.axis.client.Call.setTargetEndpointAddress(Call.java:853)
>        at vcas.gui.wsdl.VSSStub.createCall(Unknown Source)
>        at vcas.gui.wsdl.VSSStub.signOn(Unknown Source)
>        at vcas.gui.vss.LoginDialog.cmdLogin_actionPerformed(Unknown Source)
>        at
> vcas.gui.vss.LoginDialog_cmdLogin_actionAdapter.actionPerformed(Unknown
> Source)
>        at
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
>        at
> javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
>        at
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
>        at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
>        at
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
>        at java.awt.Component.processMouseEvent(Component.java:5100)
>        at java.awt.Component.processEvent(Component.java:4897)
>        at java.awt.Container.processEvent(Container.java:1569)
>        at java.awt.Component.dispatchEventImpl(Component.java:3615)
>        at java.awt.Container.dispatchEventImpl(Container.java:1627)
>        at java.awt.Component.dispatchEvent(Component.java:3477)
>        at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
>        at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
>        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
>        at java.awt.Container.dispatchEventImpl(Container.java:1613)
>        at java.awt.Window.dispatchEventImpl(Window.java:1606)
>        at java.awt.Component.dispatchEvent(Component.java:3477)
>        at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
>        at
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
>        at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
>        at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
>        at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
>        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
> AxisFault
> faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
> faultSubcode:
> faultString: No client transport named 'null' found!
> faultActor:
> faultNode:
> faultDetail:
> {http://xml.apache.org/axis/}stackTrace:No client transport named 'null'
> found!
>        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:170)
>        at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
>        at org.apache.axis.client.Call.invoke(Call.java:2748)
>        at org.apache.axis.client.Call.invoke(Call.java:2424)
>        at org.apache.axis.client.Call.invoke(Call.java:2347)
>        at org.apache.axis.client.Call.invoke(Call.java:1804)
>        at vcas.gui.wsdl.VSSStub.signOn(Unknown Source)
>        at vcas.gui.vss.LoginDialog.cmdLogin_actionPerformed(Unknown Source)
>        at
> vcas.gui.vss.LoginDialog_cmdLogin_actionAdapter.actionPerformed(Unknown
> Source)
>        at
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
>        at
> javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
>        at
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
>        at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
>        at
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
>        at java.awt.Component.processMouseEvent(Component.java:5100)
>        at java.awt.Component.processEvent(Component.java:4897)
>        at java.awt.Container.processEvent(Container.java:1569)
>        at java.awt.Component.dispatchEventImpl(Component.java:3615)
>        at java.awt.Container.dispatchEventImpl(Container.java:1627)
>        at java.awt.Component.dispatchEvent(Component.java:3477)
>        at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
>        at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
>        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
>        at java.awt.Container.dispatchEventImpl(Container.java:1613)
>        at java.awt.Window.dispatchEventImpl(Window.java:1606)
>        at java.awt.Component.dispatchEvent(Component.java:3477)
>        at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
>        at
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
>        at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
>        at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
>        at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
>        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
> 
> {http://xml.apache.org/axis/}hostname:RIVERA-IBM
> 
> No client transport named 'null' found!
>        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:170)
>        at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
>        at org.apache.axis.client.Call.invoke(Call.java:2748)
>        at org.apache.axis.client.Call.invoke(Call.java:2424)
>        at org.apache.axis.client.Call.invoke(Call.java:2347)
>        at org.apache.axis.client.Call.invoke(Call.java:1804)
>        at vcas.gui.wsdl.VSSStub.signOn(Unknown Source)
>        at vcas.gui.vss.LoginDialog.cmdLogin_actionPerformed(Unknown Source)
>        at
> vcas.gui.vss.LoginDialog_cmdLogin_actionAdapter.actionPerformed(Unknown
> Source)
>        at
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
>        at
> javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
>        at
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
>        at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
>        at
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
>        at java.awt.Component.processMouseEvent(Component.java:5100)
>        at java.awt.Component.processEvent(Component.java:4897)
>        at java.awt.Container.processEvent(Container.java:1569)
>        at java.awt.Component.dispatchEventImpl(Component.java:3615)
>        at java.awt.Container.dispatchEventImpl(Container.java:1627)
>        at java.awt.Component.dispatchEvent(Component.java:3477)
>        at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
>        at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
>        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
>        at java.awt.Container.dispatchEventImpl(Container.java:1613)
>        at java.awt.Window.dispatchEventImpl(Window.java:1606)
>        at java.awt.Component.dispatchEvent(Component.java:3477)
>        at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
>        at
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
>        at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
>        at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
>        at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
>        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
> Error in SignON ==> No client transport named 'null' found!
> 
> *******************************************************************************
> 
> This one has nothing to do (or so I believe) with the permissions in the
> policy file.
> 
> --Luis R.
> 
>     From: "Henry Chan (JIRA)" <wsif-dev@ws.apache.org>
> To: luiggiIL@hotmail.com
> Subject: [jira] Commented: (WSIF-70) Axis Client crashes the applet unless
> new permissions are added to the policy file (or a custom security manager
> is used)
> Date: Wed, 13 Jul 2005 01:18:10 +0200 (CEST)
> 
> [ http://issues.apache.org/jira/browse/WSIF-70?page=comments#action_12315639
> ]
> 
> Henry Chan commented on WSIF-70:
> --------------------------------
> 
> Definitely doesn't work with 1.5 in Applet mode, I wonder does it work as an
> application
> under 1.5?  Tried it with 1.4.2 and it works fine:
> http://people.apache.org/~hchan/wsInvoker/wsInvokerApplet.html
> 
> I'll definitely look at 1.5 as soon as I get freed up
> 
> >Axis Client crashes the applet unless new permissions are added to the
> >policy file (or a custom security manager is used)
> >-------------------------------------------------------------------------------------------------------------------------
> >
> >          Key: WSIF-70 URL: http://issues.apache.org/jira/browse/WSIF-70
> >   Project: Axis-WSIF         Type: Bug   Components: Basic Architecture
> >  Versions: current (nightly)  Environment: WindowsXP, Sun jdk1.5.0_03
> >(running client inside an applet), Axis 1.2.1, commons-logging-1.0.4,
> >commons-httpclient-3.0-rc3, using ant 1.6.5 and a laptop IBM Thinkpad R51
> >   Reporter: Luis Rivera     Priority: Blocker
> 
> >
> >To solve the following kind of exceptions,
> >***********************************************************************************************************
> >java.lang.ExceptionInInitializerError         at
> >org.apache.commons.discovery.jdk.JDKHooks.<clinit>(JDKHooks.java:75)
> >  at
> >org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:412)
> >         at
> >org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378)
> >         at
> >org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
> >    at java.security.AccessController.doPrivileged(Native Method)
> >at
> >org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
> >         at
> >org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
> >       at
> >org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43)
> >  at org.apache.axis.client.Service.getAxisClient(Service.java:103)
> >at org.apache.axis.client.Service.<init>(Service.java:112)         at
> >vcas.gui.wsdl.VCASLocator.<init>(Unknown Source)         at
> >vcas.gui.vss.VSSApplet.init(Unknown Source)         at
> >sun.applet.AppletPanel.run(AppletPanel.java:374)         at
> >java.lang.Thread.run(Thread.java:595) Caused by:
> >java.security.AccessControlException: access denied
> >(java.lang.RuntimePermission createClassLoader)         at
> >java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
> >         at
> >java.security.AccessController.checkPermission(AccessController.java:427)
> >       at
> >java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
> >at
> >java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:594)
> >        at java.lang.ClassLoader.<init>(ClassLoader.java:225)         at
> >org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.<init>(PsuedoSystemClassLoader.java:73)
> >         at
> >org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12Hooks.java:215)
> >         at
> >org.apache.commons.discovery.jdk.JDK12Hooks.<clinit>(JDK12Hooks.java:73)
> >      ... 14 more
> >*********************************************************************************************************************************
> >I had to add the following permissions to a custom policy file.
> >********************************************************************************************************************************
> >permission java.lang.RuntimePermission "createClassLoader"; permission
> >java.lang.RuntimePermission "getClassLoader"; permission
> >java.util.PropertyPermission "org.apache.commons.discovery.log.level",
> >"read"; permission java.util.PropertyPermission
> >"axis.EngineConfigFactory","read"; permission java.util.PropertyPermission
> >"org.apache.axis.EngineConfigurationFactory","read"; permission
> >java.util.PropertyPermission "axis.ClientConfigFile","read"; permission
> >java.util.PropertyPermission "axis.ServerConfigFile","read"; permission
> >java.util.PropertyPermission "axis.xml.reuseParsers","read"; permission
> >java.util.PropertyPermission "axis.attachments.implementation","read";
> >********************************************************************************************************************************
> >So, I see that part of the problem is appache commons logger and other
> >libraries trying to read and write to files, including the commons logger
> >used by axis. I wanted to know if there is a simple way to prevent this or
> >if I there exist a version of the Axis library without these issues, so it
> >can happily work inside the sandbox with the default permissions, I would
> >be happy to try it.        Thanks in advance,        --Luis R.
> 
> _________________________________________________________________
> Don�t just search. Find. Check out the new MSN Search!
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> 
> 


-- 
Davanum Srinivas -http://blogs.cocoondev.org/dims/
Mime
View raw message