Getting NoSuchMethodError on new EnterpriseConnection
- Dominant language
- Java
- Stars
- 276
- Forks
- 223
- PR merge metrics
- No merged PRs in 30d
Description
```
Caused by: java.lang.NoSuchMethodError: com.sforce.ws.bind.TypeMapper.(Ljava/lang/String;Ljava/lang/String;Z)V
at com.sforce.soap.enterprise.EnterpriseConnection.(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 (/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 !
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by comparing the generated EnterpriseConnection.class from the enterprise JAR with com.sforce.ws.bind.TypeMapper in force-wsc-34.2.2.jar, focusing on the constructor shown in the stack trace. Reproduce the failure with target/force-wsc-56.0.0-uber.jar and the enterprise and enterprise-partner JARs; done means the connection initializes without a NoSuchMethodError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100