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

Runtime Exception: Failed resolution of: Ljavax/xml/stream/XMLOutputFactory #63

Open
AdarshanaBlr opened this issue Dec 11, 2017 · 3 comments

Comments

@AdarshanaBlr
Copy link

Really surprised on how tricky this problem is. Unable to proceed further. I really don't know how to fix this. Tried all combinations. So basically com.microsoft.azure.storage seems like pure Java library. javax.xml.stream is missing.

Please help me here.

I'm building everything in Android Studio. So basically my Andorid App has to work. It is struggling to find the javax.xml.stream.* packages.

@jofri-msft
Copy link

jofri-msft commented Dec 12, 2017

Hi @AdarshanaBlr , what version of Android are you using? Can you verify that you have all necessary jars? http://www.findjar.com/index.x

@AdarshanaBlr
Copy link
Author

Currently I'm using Android Studio 2.3.3. built June 6th 2017. JRE 1.8.0_112
android {
compileSdkVersion 26
buildToolsVersion "25.0.3"
...
}
As you indicated, looks like the javax.xml.stream.* jar files don't exist. Thus the first call itself fails. CloudStorageAccount storageAccount = CloudStorageAccount.parse(connectionString);

Runtime error....
java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/xml/stream/XMLOutputFactory;
at com.microsoft.azure.storage.core.Utility.(Utility.java:120)
at com.microsoft.azure.storage.core.Utility.parseAccountString(Utility.java:685)
at com.microsoft.azure.storage.CloudStorageAccount.parse(CloudStorageAccount.java:239)
at
Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.xml.stream.XMLOutputFactory" on

@numankaraaslan
Copy link

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

3 participants