Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Authentication >

java error during synchronization

Started by Adam Mulcahy -   in API Authentication

Hi Team,

We have an issue with our system talking to xero. The SSL expired and we created a new one following the instructions. We did this last year using the same process and all worked fine. This year we have come across an issue that we can not seem to pin point. We we run the synchronization and get the following java error. The main issue being invalid key format.

Any help appreciated.

An error occured processing the page
The error message returned was: 'java.lang.Exception: Error processing invoice '11235''
Stack Trace is :
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at kdtech.platform.server.web.servlets.PageSecurityFilter.doFilter(PageSecurityFilter.java:88)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at kdtech.platform.server.web.DBSessionFilter.doFilter(DBSessionFilter.java:29)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.CrawlerSessionManagerValve.invoke(CrawlerSessionManagerValve.java:164)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:317)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:204)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:311)
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: java.lang.Exception: Error processing invoice '11235'
at ota.biz.actions.xero.SyncCustomerOrder.execute(SyncCustomerOrder.java:84)
at kdtech.platform.server.actions.Action.execute(Action.java:59)
at ota.biz.actions.xero.SyncCustomerOrders.execute(SyncCustomerOrders.java:52)
at kdtech.platform.server.actions.Action.execute(Action.java:59)
at kdtech.platform.server.web.tags.actions.ExecuteTag.doEndTag(ExecuteTag.java:55)
... 31 more
Caused by: net.oauth.OAuthException: java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: invalid key format
at net.oauth.signature.RSA_SHA1.initialize(RSA_SHA1.java:118)
at net.oauth.signature.OAuthSignatureMethod.newMethod(OAuthSignatureMethod.java:271)
at net.oauth.signature.OAuthSignatureMethod.newSigner(OAuthSignatureMethod.java:256)
at net.oauth.OAuthMessage.sign(OAuthMessage.java:322)
at net.oauth.OAuthMessage.addRequiredParameters(OAuthMessage.java:311)
at net.oauth.OAuthAccessor.newRequestMessage(OAuthAccessor.java:94)
at net.oauth.OAuthAccessor.newRequestMessage(OAuthAccessor.java:100)
at net.oauth.client.OAuthClient.invoke(OAuthClient.java:260)
at ota.biz.actions.xero.SyncCustomerOrder.fetchInvoice(SyncCustomerOrder.java:92)
at ota.biz.actions.xero.SyncCustomerOrder.execute(SyncCustomerOrder.java:51)
... 35 more
Caused by: java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: i