Skip to content

Getting NoSuchMethodError on new EnterpriseConnection #306

Description

@darshanNTNX
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 !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions