dbus-java-2.7 CreateInterface Exception in thread "main" java.io.FileNotFoundException: http://standards.freedesktop.org/dbus/1.0/introspect.dtd-spec

Matthew Johnson dbus at matthew.ath.cx
Thu Feb 11 04:33:09 PST 2010


On Thu Feb 11 03:11, ozgur cagdas wrote:
> I am using dbus-java-2.7 bindings and trying to create the source file by
> using CreateInterface binary. I am getting the below exception 
> 
> Exception in thread "main" java.io.FileNotFoundException:
> http://standards.freedesktop.org/dbus/1.0/introspect.dtd-spec at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1267)
>
> The obvious reason is
> http://standards.freedesktop.org/dbus/1.0/introspect.dtd-spec url is dead and
> the correct one should be
> http://standards.freedesktop.org/dbus/1.0/introspect.dtd. This problem and
> reason has already been reported in the post
> http://lists.freedesktop.org/archives/dbus/2009-July/011619.html however
> there is no reply yet.
> 
> Am I doing anything wrong or any fixes for this problem?

Well, the XML library I use requires the DTD to be valid, but it doesn't have
to be given. Whatever you are introspection should give a valid DTD line. If it
does not, you could dump the introspection yourself, remove the DTD line and
then use CreateInterface on that.

Matt

-- 
www.matthew.ath.cx
D-Bus Java
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/dbus/attachments/20100211/c5ec348c/attachment-0001.pgp 


More information about the dbus mailing list