Issue Type: Feature Request Feature Request
Affects Versions: 0.2.0
Assignee: Unassigned
Components: UnifiedPush-java-sender
Created: 09/Jul/13 1:20 PM
Description:

Trying to use a @Producer for the DefaultJavaSender, in the form:

..
@Produces @ApplicationScoped
public DefaultJavaSender produceJavaSender() {
   return new DefaultJavaSender("http://localhost:8080/ag-push", new RestEasyClient());
}

I got back an exception from CDI of a missing no no-args constructor:

...
org.jboss.weld.exceptions.UnproxyableResolutionException: WELD-001435 Normal scoped bean class org.aerogear.unifiedpush.DefaultJavaSender is not proxyable because it has no no-args constructor - Producer Method [DefaultJavaSender] with qualifiers [@Any @Default] declared as [[method] @Produces @ApplicationScoped public org.jboss.aerogear.prodoctor.resources.Resources.produceJavaSender()].
	at org.jboss.weld.util.Proxies.getUnproxyableClassException(Proxies.java:211)
	at org.jboss.weld.util.Proxies.getUnproxyableTypeException(Proxies.java:178)
	at org.jboss.weld.util.Proxies.getUnproxyableTypesExceptionInt(Proxies.java:193)
...

not sure if I am missing sth here..

I solved it by adding a 'protected' non-args constructor to DefaultJavaSender class

Project: AeroGear Push
Priority: Major Major
Reporter: Christos Vasilakis
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira