You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "David Brandow (JIRA)" <ax...@ws.apache.org> on 2006/02/23 19:45:39 UTC
[jira] Created: (AXIS-2418) Unable to find Java method when method
isn't allowed
Unable to find Java method when method isn't allowed
----------------------------------------------------
Key: AXIS-2418
URL: http://issues.apache.org/jira/browse/AXIS-2418
Project: Apache Axis
Type: Bug
Components: Basic Architecture
Versions: 1.3
Reporter: David Brandow
Priority: Critical
I have a service that works fine when all the methods are allowed, either by listing them all explicitly or by using an asterisk, but if one of those methods is not in allowedMethods (whether its in disallowedMethods is irrelevant), the service won't work. This is the exception I'm getting:
Caused by: java.lang.Exception: Couldn't find a matching Java operation for WSDD operation "echoFloat" (1 args)
| at org.apache.axis.InternalException.<init>(InternalException.java:71)
| at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:902)
| at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:477)
| at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:285)
| at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:500)
| at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
| at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
| at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:427)
| at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:231)
| at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
| at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2418) Unable to find Java method when
method isn't allowed
Posted by "Bjorn Townsend (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2418?page=comments#action_12368065 ]
Bjorn Townsend commented on AXIS-2418:
--------------------------------------
David, from looking at the Axis source this seems to be by design. The method getSyncedOperationsForName in JavaServiceDesc.java is called to synchronize the OperationDescs with the implementation class, and at that point methods are checked to see if they are allowed or disallowed.
// Skip it if it's not a sanctioned method name
if ((allowedMethods != null) &&
!allowedMethods.contains(methodName))
return;
if ((disallowedMethods != null) &&
disallowedMethods.contains(methodName))
return;
>From this we can infer that the following cases are possible:
* explicitly allow some methods and disallow all others (allowMethods contains one or more methods, disallowMethods is null)
* explicitly allow all methods (allowMethods is null or contains the wildcard * character)
* explicitly disallow some methods and allow all others (disallowMethods contains one or more methods, allowMethods is null or *)
* explicitly disallow all methods (this would be silly, but what the heck)
So my opinion is that this is working as designed.
> Unable to find Java method when method isn't allowed
> ----------------------------------------------------
>
> Key: AXIS-2418
> URL: http://issues.apache.org/jira/browse/AXIS-2418
> Project: Apache Axis
> Type: Bug
> Components: Basic Architecture
> Versions: 1.3
> Reporter: David Brandow
> Priority: Critical
> Attachments: echo.jar, server-config.wsdd
>
> I have a service that works fine when all the methods are allowed, either by listing them all explicitly or by using an asterisk, but if one of those methods is not in allowedMethods (whether its in disallowedMethods is irrelevant), the service won't work. This is the exception I'm getting:
> Caused by: java.lang.Exception: Couldn't find a matching Java operation for WSDD operation "echoFloat" (1 args)
> | at org.apache.axis.InternalException.<init>(InternalException.java:71)
> | at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:902)
> | at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:477)
> | at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:285)
> | at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:500)
> | at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
> | at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
> | at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:427)
> | at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:231)
> | at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
> | at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2418) Unable to find Java method when
method isn't allowed
Posted by "David Brandow (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2418?page=comments#action_12368107 ]
David Brandow commented on AXIS-2418:
-------------------------------------
I'm afraid I can't agree. Perhaps I'm missing something but there appears to be no way of setting the allowedMethods and disallowedMethods properties so that I can have echoFloat be disallowed (or not explicitly allowed, either way or even both) without it throwing an exception when it tries to initialize the service. If it throws an exception on initialization when you try to disallow a method, then disallowing a method isn't really a viable option.
> Unable to find Java method when method isn't allowed
> ----------------------------------------------------
>
> Key: AXIS-2418
> URL: http://issues.apache.org/jira/browse/AXIS-2418
> Project: Apache Axis
> Type: Bug
> Components: Basic Architecture
> Versions: 1.3
> Reporter: David Brandow
> Priority: Critical
> Attachments: echo.jar, server-config.wsdd
>
> I have a service that works fine when all the methods are allowed, either by listing them all explicitly or by using an asterisk, but if one of those methods is not in allowedMethods (whether its in disallowedMethods is irrelevant), the service won't work. This is the exception I'm getting:
> Caused by: java.lang.Exception: Couldn't find a matching Java operation for WSDD operation "echoFloat" (1 args)
> | at org.apache.axis.InternalException.<init>(InternalException.java:71)
> | at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:902)
> | at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:477)
> | at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:285)
> | at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:500)
> | at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
> | at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
> | at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:427)
> | at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:231)
> | at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
> | at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (AXIS-2418) Unable to find Java method when method
isn't allowed
Posted by "David Brandow (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2418?page=all ]
David Brandow updated AXIS-2418:
--------------------------------
Attachment: server-config.wsdd
> Unable to find Java method when method isn't allowed
> ----------------------------------------------------
>
> Key: AXIS-2418
> URL: http://issues.apache.org/jira/browse/AXIS-2418
> Project: Apache Axis
> Type: Bug
> Components: Basic Architecture
> Versions: 1.3
> Reporter: David Brandow
> Priority: Critical
> Attachments: server-config.wsdd
>
> I have a service that works fine when all the methods are allowed, either by listing them all explicitly or by using an asterisk, but if one of those methods is not in allowedMethods (whether its in disallowedMethods is irrelevant), the service won't work. This is the exception I'm getting:
> Caused by: java.lang.Exception: Couldn't find a matching Java operation for WSDD operation "echoFloat" (1 args)
> | at org.apache.axis.InternalException.<init>(InternalException.java:71)
> | at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:902)
> | at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:477)
> | at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:285)
> | at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:500)
> | at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
> | at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
> | at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:427)
> | at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:231)
> | at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
> | at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (AXIS-2418) Unable to find Java method when method
isn't allowed
Posted by "David Brandow (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2418?page=all ]
David Brandow updated AXIS-2418:
--------------------------------
Attachment: echo.jar
> Unable to find Java method when method isn't allowed
> ----------------------------------------------------
>
> Key: AXIS-2418
> URL: http://issues.apache.org/jira/browse/AXIS-2418
> Project: Apache Axis
> Type: Bug
> Components: Basic Architecture
> Versions: 1.3
> Reporter: David Brandow
> Priority: Critical
> Attachments: echo.jar, server-config.wsdd
>
> I have a service that works fine when all the methods are allowed, either by listing them all explicitly or by using an asterisk, but if one of those methods is not in allowedMethods (whether its in disallowedMethods is irrelevant), the service won't work. This is the exception I'm getting:
> Caused by: java.lang.Exception: Couldn't find a matching Java operation for WSDD operation "echoFloat" (1 args)
> | at org.apache.axis.InternalException.<init>(InternalException.java:71)
> | at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:902)
> | at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:477)
> | at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:285)
> | at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:500)
> | at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
> | at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
> | at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:427)
> | at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:231)
> | at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
> | at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2418) Unable to find Java method when
method isn't allowed
Posted by "Bjorn Townsend (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2418?page=comments#action_12368171 ]
Bjorn Townsend commented on AXIS-2418:
--------------------------------------
It might help me understand the problem if you explain the use case here -- why do you want to define echoFloat as a web service, but not allow it?
> Unable to find Java method when method isn't allowed
> ----------------------------------------------------
>
> Key: AXIS-2418
> URL: http://issues.apache.org/jira/browse/AXIS-2418
> Project: Apache Axis
> Type: Bug
> Components: Basic Architecture
> Versions: 1.3
> Reporter: David Brandow
> Priority: Critical
> Attachments: echo.jar, server-config.wsdd
>
> I have a service that works fine when all the methods are allowed, either by listing them all explicitly or by using an asterisk, but if one of those methods is not in allowedMethods (whether its in disallowedMethods is irrelevant), the service won't work. This is the exception I'm getting:
> Caused by: java.lang.Exception: Couldn't find a matching Java operation for WSDD operation "echoFloat" (1 args)
> | at org.apache.axis.InternalException.<init>(InternalException.java:71)
> | at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:902)
> | at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:477)
> | at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:285)
> | at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:500)
> | at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
> | at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
> | at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:427)
> | at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:231)
> | at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
> | at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2418) Unable to find Java method when
method isn't allowed
Posted by "David Brandow (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2418?page=comments#action_12368193 ]
David Brandow commented on AXIS-2418:
-------------------------------------
Well, presumably the question is "why do you want to define echoFloat as a method on a web service, but not allow it?"
The answer is that I want to write my WSDL with all the methods the web service could possibly support and then choose after the fact whether to allow or disallow those methods. If I have to take out the definition of the method from the web service in order to disallow it (and then add it back in again in order to re-allow it), thats a real pain, and its not how I read the spec, nor how it used to work.
> Unable to find Java method when method isn't allowed
> ----------------------------------------------------
>
> Key: AXIS-2418
> URL: http://issues.apache.org/jira/browse/AXIS-2418
> Project: Apache Axis
> Type: Bug
> Components: Basic Architecture
> Versions: 1.3
> Reporter: David Brandow
> Priority: Critical
> Attachments: echo.jar, server-config.wsdd
>
> I have a service that works fine when all the methods are allowed, either by listing them all explicitly or by using an asterisk, but if one of those methods is not in allowedMethods (whether its in disallowedMethods is irrelevant), the service won't work. This is the exception I'm getting:
> Caused by: java.lang.Exception: Couldn't find a matching Java operation for WSDD operation "echoFloat" (1 args)
> | at org.apache.axis.InternalException.<init>(InternalException.java:71)
> | at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:902)
> | at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:477)
> | at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:285)
> | at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:500)
> | at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
> | at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
> | at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:427)
> | at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:231)
> | at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
> | at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira