SOAPFaultException: Error: access-denied

Any communication concerning the SMS module

Moderators: hugo, alexandre, rmvanarkel

Post Reply
gdkobla
Posts: 26
Joined: Mon Feb 27, 2012 10:10 am

SOAPFaultException: Error: access-denied

Post by gdkobla »

Hi,

I get this error in my sms log when sms notifications are to be sent by sms.
I'm using a gateway service provider and I'm hosting on jelastic.
I've also tested with the sms simulator and it's goes through without errors.

"javax.xml.ws.soap.SOAPFaultException: Error: access-denied
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:156)
at $Proxy167.send(Unknown Source)
at nl.strohalm.cyclos.utils.sms.SmsSenderImpl.send(SmsSenderImpl.java:125)
at nl.strohalm.cyclos.services.elements.MessageServiceImpl.doSendSms(MessageServiceImpl.java:627)
at nl.strohalm.cyclos.services.elements.MessageServiceImpl.access$000(MessageServiceImpl.java:99)
at nl.strohalm.cyclos.services.elements.MessageServiceImpl$1.doInTransactionWithoutResult(MessageServiceImpl.java:332)
at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
at nl.strohalm.cyclos.utils.TransactionHelperImpl$1.doInTransaction(TransactionHelperImpl.java:242)
at nl.strohalm.cyclos.utils.TransactionHelperImpl$1.doInTransaction(TransactionHelperImpl.java:236)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at nl.strohalm.cyclos.utils.TransactionHelperImpl.runInCurrentThreadWithResult(TransactionHelperImpl.java:236)
at nl.strohalm.cyclos.utils.TransactionHelperImpl.access$200(TransactionHelperImpl.java:51)
at nl.strohalm.cyclos.utils.TransactionHelperImpl$TransactionCallable.call(TransactionHelperImpl.java:142)
at nl.strohalm.cyclos.utils.TransactionHelperImpl$TransactionCallable.call(TransactionHelperImpl.java:126)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.cxf.binding.soap.SoapFault: Error: access-denied
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75)
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:46)
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)
at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:798)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1667)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1520)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1428)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:658)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:532)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:464)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:367)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:320)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:89)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
... 18 more "

Thanks in advance

admin
Site Admin
Posts: 1423
Joined: Mon Jan 24, 2005 10:31 am

Re: SOAPFaultException: Error: access-denied

Post by admin »

Make sure you have a liberated the IP/domain in the webservice client

gdkobla
Posts: 26
Joined: Mon Feb 27, 2012 10:10 am

Re: SOAPFaultException: Error: access-denied

Post by gdkobla »

Hi,
Can you explain what you mean by "liberate IP/Domain"

admin
Site Admin
Posts: 1423
Joined: Mon Jan 24, 2005 10:31 am

Re: SOAPFaultException: Error: access-denied

Post by admin »

Here is the help file of the webservices client:

Insert/modify Web services client
Here you can insert a new web services client, or edit an existing. When done click the "submit" button to save your changes. If you are modifying an existing, you should first click the "change" button to make changes.

Name: Here you can specify the name. This is only for internal use.
Internet address: Here you can specify the IP address or domain name (which will resolved to an IP address) that is allowed to access the web service.
Take care that if you want to connect to server via an ISP the same IP is probably used for other websites (using hostheaders). This means that all these sites would have access to the webinstance. Many times the IP to wich resolves an website domain name is another IP the website will connect through. In this case you would to contact your provider what IP (range) is used to make external connections.
It is also possible to specify an IP range (e.g. 77.88.45.1-256). Note that specifying a range might be a security hole. In case of less critical access like viewing advertisements this would not be an issue but for more serious actions like payments or viewing member data it is preferable only allowing a single IP address.

gdkobla
Posts: 26
Joined: Mon Feb 27, 2012 10:10 am

Re: SOAPFaultException: Error: access-denied

Post by gdkobla »

Hi,
I've done exactly that but it still gives this error in the logs and the sms is not delivered.
Could it also be a problem from where I'm hosting(Jelastic).

Thanks

Post Reply