PHP cURL Error

G’day everyone, just wondering if someone could shed some light on this ugly error I am getting when trying to send a request with cURL to an SMS Gateway:

ERROR: Exception in API method java.lang.NumberFormatException: Zero length BigInteger at java.math.BigInteger.( at com.zinek.smpp.MeXWSHTTPServlet.sendsms( at com.zinek.smpp.MeXWSHTTPServlet.doPost( at com.zinek.smpp.MeXWSHTTPServlet.doGet( at javax.servlet.http.HttpServlet.service( at javax.servlet.http.HttpServlet.service( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at org.apache.catalina.core.StandardWrapperValve.invoke( at org.apache.catalina.core.StandardContextValve.invoke( at org.apache.catalina.core.StandardHostValve.invoke( at org.apache.catalina.valves.ErrorReportValve.invoke( at org.apache.catalina.core.StandardEngineValve.invoke( at org.apache.catalina.connector.CoyoteAdapter.service( at org.apache.coyote.http11.Http11Processor.process( at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection( at at at org.apache.tomcat.util.threads.ThreadPool$ at

Thanks in advance

I guess I’m missing something, but that doesn’t look like any PHP error I’ve ever seen. It looks like some of the many Java errors I’ve seen though.

Is this what you’re getting back? If so, my guess would be that the API is expecting a “BigInteger” and you’re not sending one.

Yep, that’s what is was. I was missing a parameter that the API was expecting.


Sounds like a poorly writen API, in that case :slight_smile: Sprouting errors like that