java.lang.ClassCastException: [I cannot be cast to [Ljava.lang.Object;

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.ClassCastException: [I cannot be cast to [Ljava.lang.Object;
at com.sforce.ws.bind.TypeMapper.readArray(TypeMapper.java:578)
at com.sforce.soap.tooling.Coverage.loadFields(Coverage.java:83)
at com.sforce.soap.tooling.Coverage.load(Coverage.java:75)
at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:653)
at com.sforce.soap.tooling.ApexCodeCoverageAggregate.loadFields(ApexCodeCoverageAggregate.java:346)
at com.sforce.soap.tooling.ApexCodeCoverageAggregate.load(ApexCodeCoverageAggregate.java:329)
at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:653)
at com.sforce.ws.bind.TypeMapper.readArray(TypeMapper.java:553)
at com.sforce.soap.tooling.QueryResult.loadFields(QueryResult.java:208)
at com.sforce.soap.tooling.QueryResult.load(QueryResult.java:184)
at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:653)
at com.sforce.soap.tooling.QueryAllResponse_element.loadFields(QueryAllResponse_element.java:62)
at com.sforce.soap.tooling.QueryAllResponse_element.load(QueryAllResponse_element.java:54)
at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:653)
at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:529)
at com.sforce.ws.transport.SoapConnection.bind(SoapConnection.java:178)
at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:152)
at com.sforce.soap.tooling.ToolingConnection.query(ToolingConnection.java:282)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.