电子发票出现
java.net.MalformedURLException: no protocol: spbm/services/DZFPService
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at com.xxx.xxxx.task.InvoiceTask.execute(InvoiceTask.java:195)
at sun.reflect.GeneratedMethodAccessor177.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269)
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:257)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
InvoiceTask.execute() line: 119
org.apache.axis.client.Service s = new org.apache.axis.client.Service();
Call call = (Call) s.createCall();
call.setTargetEndpointAddress(new URL(rc.getAddress()));
call.setOperation("doService");
通过观察变量值,发现:rc.getAddress()配置的是:spbm/services/DZFPService
所以报错,
正确的应该为:
服务地址:https://xxxx:xxxx/fpt-dsqz-spbm/services/DZFPService
下次直接复制粘贴的时候,不要从数据库复制粘贴,容易漏掉一些,只复制出来了一部分
应该直接从平台上进行复制粘贴,并进行对比无误.