function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jdengjdeng 

javax.xml.rpc.JAXRPCException: unknown protocol: https

I'm using IBM 1.4.2 java and Axis 1.4
I'm running the same code on multiple platforms, however, two of the platforms giving me this error during login(solaris 9 and HP Itanium)

javax.xml.rpc.JAXRPCException: unknown protocol: https

at org.apache.axis.client.Stub._setProperty

It seems the error occurs during this call

SforceService service = new SforceService();

service.setSoapEndpointAddress(aProductionUrl);

binding = (SoapBindingStub)service.getSoap();  // error seems occur here

binding.setTimeout((bindingTimeOut*2));

 

private class SforceService extends SforceServiceLocator

{

 

public Call createCall() throws ServiceException

{

Call call = null;

try{

call = super.createCall();

call.setProperty(HTTPConstants.MC_ACCEPT_GZIP,Boolean.TRUE);

call.setProperty(HTTPConstants.MC_GZIP_REQUEST,Boolean.TRUE);

}catch (Exception ex){

ex.printStackTrace();};

return call;

}

 

Anyone has any suggestions? thanks

jdengjdeng

Here's the change that I made to solve this issue

 

Security.addProvider(new com.ibm.jsse.IBMJSSEProvider());
     Properties properties = System.getProperties();
     String handler = System.getProperty("java.protocol.handler.pkgs");
     if (handler == null)
     {
      properties.setProperty("java.protocol.handler.pkgs","com.ibm.net.ssl.www2.protocol");
      
     }else
     {
      properties.setProperty("java.protocol.handler.pkgs","com.ibm.net.ssl.www2.protocol".concat(handler));
     }
 
just in case, someone else runs into this issue