I am trying to run the ClockFrame sample but got some exceptions in Ubuntu 10. According to the guide, I have copied the jar packages of Apache Xerces, kXML2, JAXP, XMLPull and Cyberlink to JRE path: /usr/lib/jvm/java-6-sun-184.108.40.206/jre. So I think the configuration is right. The exception message is as following:
CyberGarage warning : org.cybergarage.xml.ParserException: org.xmlpull.v1.XmlPullParserException: could not load any factory class (even small or full default implementation); nested exception is:
org.cybergarage.upnp.device.InvalidDescriptionException: org.cybergarage.xml.ParserException: org.xmlpull.v1.XmlPullParserException: could not load any factory class (even small or full default implementation); nested exception is:
Exception in thread "main" java.lang.NullPointerException
I am new to UPNP. Can anyone kindly give me some help? Thank you very much.
One more thing…I just checked the source code of kxml2. There is no org.kxml2.io.XmlReader in the path. Maybe the packages are not compatible? Please help me. Thank you.
Could you remove your kXML parser from in your JRE directory ?
I have used the kXML parser on Android 1.6 under, but the parser is not supported on
the latest Android version. Thus, the implementation is no good.
First, thank you for your reply. I have solve the issue in my way. What I have done is as following:
1. Remove all the jar packages from the jre directory.
2. Only add clink210.jar and kxml2.jar as a external jar files in the project property in Eclipse.
This is wired. Maybe the jar packages will conflict in some way if we add all of them. By the way, I don't think it is a good idea to copy all packages to jre directory. It will make other applications also load these jar packages.
Welcome for any advice.
And by the way, I found that the control point doesn't display the device some times. I will look at it. If I can't solve it, I will post another topic for the issue. But of course, any advice is welcome.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.