Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting NoSuchMethodError on new EnterpriseConnection #306

Open
darshanNTNX opened this issue Sep 8, 2022 · 1 comment
Open

Getting NoSuchMethodError on new EnterpriseConnection #306

darshanNTNX opened this issue Sep 8, 2022 · 1 comment

Comments

@darshanNTNX
Copy link

Caused by: java.lang.NoSuchMethodError: com.sforce.ws.bind.TypeMapper.<init>(Ljava/lang/String;Ljava/lang/String;Z)V
	at com.sforce.soap.enterprise.EnterpriseConnection.<init>(EnterpriseConnection.java:18)
	at xxx.initialize(xxx.java:138)

Getting the above mentioned error on using enterprise and enterprise-partner JARs created using :
target/force-wsc-56.0.0-uber.jar

On Decompiling :
EnterpriseConnection class (<enterprise_jar>/com/sforce/soap/enterprise/EnterpriseConnection.class) has field :
private TypeMapper __typeMapper = new TypeMapper((String)null, (String)null, false);

Whereas the TypeMapper constructor doesnt expect any arguments (.m2/repository/com/force/api/force-wsc/34.2.2/force-wsc-34.2.2.jar!/com/sforce/ws/bind/TypeMapper.class)

Kindly Assist !

@krissirk
Copy link

krissirk commented Sep 8, 2022

Looks like you're using WSC 56.0.0 to generate a client, but when running the client, you're are using WSC 34.2.2 (which doesn't have the new constructor for TypeMapper). If you continue to run into trouble, please open a support case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants