So I have migrated from my spring app to using Cuba. I use an accounting software called Xero which I need to link to but for some reason it is not working with Cuba. I don’t really know where to begin looking for the problem…
I have followed the guide for “Spring Based Config” here [url=]https://github.com/XeroAPI/Xero-Java[/url]
The bean that is created is this:
@Configuration
@PropertySource("classpath:/com/daryn/ecosmart/xero.properties")
public class XeroBean {
@Autowired
private Environment environment;
@Bean
public XeroClient xeroClient(Environment environment) {
SpringConfig config = new SpringConfig("xero.", environment);
XeroClient client = new XeroClient(config);
client.setOAuthToken(config.getConsumerKey(), config.getConsumerSecret());
return client;
}
The error I keep getting when I try to use the bean is this:
java.lang.AbstractMethodError: com.daryn.ecosmart.service.XeroSpringConfig.getConnectTimeout()I
at com.xero.api.OAuthRequestResource.init(OAuthRequestResource.java:109) ~[xero-java-sdk-0.4.7.jar:na]
at com.xero.api.OAuthRequestResource.(OAuthRequestResource.java:123) ~[xero-java-sdk-0.4.7.jar:na]
at com.xero.api.XeroClient.get(XeroClient.java:180) ~[xero-java-sdk-0.4.7.jar:na]
at com.xero.api.XeroClient.get(XeroClient.java:174) ~[xero-java-sdk-0.4.7.jar:na]
I don’t know too much about what is going on in the backend here - way beyond my knowledge level. All I know is that the exact same program works in my Spring app but not in Cuba for some reason…