try {
distribution = cloudFrontService.createDistribution
(originBucketName, callerReference, CNAME, comment, distributionTogle,
loggingStatus, originAccessIdentityId, trustedSignerSelf,
trustedSignerAwsAccountNumbers);
} catch (CloudFrontServiceException e) {
e.printStackTrace();
}
log.debug("New Private Distribution: " + distribution);
return distribution ;
}
above is the simple code snippet and I am getting an exception where
the line of fetching createDistribution method.
I am sending originBucketName & originAccessIdentityId only, rest
variables are set to null.
And I am getting an exception as
java.lang.ClassCastException:
com.sun.org.apache.xerces.internal.dom.DocumentImpl cannot be cast to
org.w3c.dom.Element
any ideas or suggestions would be appreciated.
Thanks in advance.
I've changed the library from java-xmlbuilder-0.3.jar(added by maven
setting) to java-xmlbuilder-2.jar(added by eclipse) and this exception
will be resolved.
Any ideas why?
Thanks guys
--
You received this message because you are subscribed to the Google Groups "JetS3t Users" group.
To post to this group, send email to jets3t...@googlegroups.com.
To unsubscribe from this group, send email to jets3t-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jets3t-users?hl=en.
This is the stack trace I am getting and below is the contents of
pom.xml file I have.
<repositories>
<repository>
<name>jets3t</name>
<id>jets3t</id>
<url>http://jets3t.s3.amazonaws.com/maven2</url>
</repository>
<repository>
<id>googlecode.java-xmlbuilder</id>
<url>http://java-xmlbuilder.googlecode.com/svn/repo</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>net.java.dev.jets3t</groupId>
<artifactId>jets3t</artifactId>
<version>0.7.2</version>
</dependency>
<dependency>
<groupId>com.jamesmurty.utils</groupId>
<artifactId>java-xmlbuilder</artifactId>
<version>0.3</version>
</dependency>
</dependencies>
> > jets3t-users...@googlegroups.com<jets3t-users%2Bunsu...@googlegroups.com>