We use Guice injection to help setup our classes, and also help us handle our transaction handling with the database connection. We have a custom Annotation that I think may be screwing up the publishing of the Webservice.
If we have this one method in the Service:
@TransactionalSimple
UserPhotoSummary retrievePhotoSummary(long loginId, long propertyId, long listingId) {
//Make call to the database
}
Then we get an NPE. If I remove that method and its annotation, everything runs fine (....except we cant make a call to the DB like we like to).
The NPE is this:
Caused by: java.lang.NullPointerException
at com.sun.xml.ws.server.EndpointFactory.getWsdlLocation(EndpointFactory.java:399)
at com.sun.xml.ws.transport.http.server.EndpointImpl.getPrimaryWsdl(EndpointImpl.java:284)
at com.sun.xml.ws.transport.http.server.EndpointImpl.createEndpoint(EndpointImpl.java:224)
at com.sun.xml.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:154)
at com.redfin.uploader.photoService.PhotoServicePublisher.configureAndPublishEndpoint(PhotoServicePublisher.java:154)
... 1 more
Here's our annotation we have:
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.PARAMETER})
@BindingAnnotation
@Documented
public @interface TransactionalSimple {}
Is there something wrong with this custom annotation we are trying to use? Do we need to declare something differnt about it?
[Message sent by forum member 'demichej' (demichej)]
http://forums.java.net/jive/thread.jspa?messageID=354998---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...