I am new to Guice. I am currently trying to inject a service
dependency and continue to get the following error. Any help would be
appreciated. Thanks.

com.google.inject.internal.ComputationExcep
tion: com.google.inject.internal.ComputationException:
com.google.inject.interna
l.cglib.core.CodeGenerationException:
java.lang.reflect.InvocationTargetExceptio
n-->null

I basically have a server class.
@Inject
        public PostServiceImpl( String serverAddress) {
                this.serverAddress;
        }

I am not sure

        @Inject
        public Inquiry(ContactDAO contactDAO, PostService postService) {

                this.contactDAO = contactDAO;
                this.postService = postService;

        }

And in the contextlistener file.

bind(PostService.class).to(PostServiceImpl.class);

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to