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

Cannot create XMLStreamReader or XMLEvent Reader #69

Open
dkennedy-eng opened this issue Apr 12, 2021 · 1 comment
Open

Cannot create XMLStreamReader or XMLEvent Reader #69

dkennedy-eng opened this issue Apr 12, 2021 · 1 comment

Comments

@dkennedy-eng
Copy link

Hey all,

Trying to use a bulk query against our API. Using the below SOQL statement

val account_soql = "select industry from account"

I get the following error when the bulk flag is attached and the object is set to account

Exception in User Class: java.lang.UnsupportedOperationException : Cannot create XMLStreamReader or XMLEventReader from a org.codehaus.stax2.io.Stax2ByteArraySource

I've tried both of the below as source queries and see the same issue

val account_data = sparkSession.read.format("com.springml.spark.salesforce").option("soql",account_soql).option("username", "username").option("password","password").option("sfObject","account").option("bulk","true").load()


val account_data = sparkSession.read.format("com.springml.spark.salesforce").option("soql",account_soql).option("username", "username").option("password","password").option("multiLine","true").option("sfObject","account").option("inferSchema","true").option("bulk","true").option("version","latest-version").load()

I am using the following api versions

force-partner-api-40.0.0.jar
force-wsc-40.0.0.jar
salesforce-wave-api-1.0.9.jar
spark-salesforce_2.11-1.1.1.jar

These are sourced from this article

https://aws.amazon.com/blogs/big-data/extracting-salesforce-com-data-using-aws-glue-and-analyzing-with-amazon-athena/

I did try updating to the latest version of spark-salesforce (feb 2021) and got the following error

Command failed with exit code 1 - 21/04/12 16:02:42 INFO ApplicationMaster: Final app status: FAILED, exitCode: 15, (reason: User class threw exception: java.lang.NoSuchMethodError: scala.Product.$init$(Lscala/Product;)V)

Let me know if I can provide any other detail to assist

@dkennedy-eng
Copy link
Author

I'm going to leave this open to see if the team is ever able to address it, but see the below stackoverflow for the solution

https://stackoverflow.com/questions/67063848/springml-salesforce-cannot-create-xmlstreamreader-from-org-codehaus-stax2-io-st

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

1 participant