hi all,
i rewrite myMediator class:

import org.apache.synapse.mediators.AbstractMediator;
import org.apache.synapse.MessageContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.synapse.Constants;

public class myMediator extends AbstractMediator {

        private static final Log log =
LogFactory.getLog(myMediator.class);

        public boolean mediate(MessageContext synCtx){
                log.debug("myMediator mediate is called!!");
                return true;
        }
}

but i still receive this error at runtime:


[HttpConnection-8008-1] DEBUG ClassMediator - Class mediator
<myMediator>:: mediate() 
[HttpConnection-8008-1] ERROR ClassMediator - Error while creating an
instance of the specified mediator class : myMediator 
java.lang.IllegalAccessException: Class
org.apache.synapse.mediators.ext.ClassMediator can not access a member
of class myMediator with modifiers ""
        at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
        at java.lang.Class.newInstance0(Class.java:344)
...
...



Where is the mistake?


thx



On gio, 2007-03-22 at 22:05 +0530, Asankha C. Perera wrote:
> Lorenzo
> 
> > [HttpConnection-8008-1] ERROR ClassMediator - Error while creating an
> > instance of the specified mediator class : myMediator 
> > java.lang.IllegalAccessException: Class
> > org.apache.synapse.mediators.ext.ClassMediator can not access a member
> > of class myMediator with modifiers ""
> >         at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
> >         at java.lang.Class.newInstance0(Class.java:344)
> >
> >
> > Where i'm wrong?
> >   
> Make your class and any constructors (if any) public
> 
> asankha
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to