Re: Struts2: Problem result input

2007-12-13 Thread Laurie Harper
For what it's worth, overloaded setters are not supported by the 
JavaBeans specification, so if you do that you no longer have a valid 
JavaBean. The behaviour of code which depends on JavaBeans-style 
introspection (such as Struts) is JVM version dependent in such cases, 
which is a good reason to avoid this pattern.


L.

Marc Eckart wrote:

Solved the problem:

In my case the problem was a type conversion :-) I have a bean class, which
is filled by hidden fields. I have some overloaded setters with a type and a
string which converts into the type. So I assume struts doesn't look at the
signature of the setter and just uses the first it gets. So in my case it
tried to put a String in the setter with a type which causes a type
conversion error which leads to the result input problem. So I added a
setter with different name which does the conversion from String to my type.

Marc

2007/12/12, Dave Newton <[EMAIL PROTECTED]>:

There is *some* reason it's expecting an input result: it could be your
configuration, a type conversion error, something... if nothing else I'd
crank up logging full-blast and see what's there.

HTHBIPD (Hope This Helps But It Probably Doesn't)
d.

--- Marc Eckart <[EMAIL PROTECTED]> wrote:


Hi,

I have a problem when I call a action with dojo by publishing a topic.
Struts wants a input result and I don't know why. I haven't changed
anything
in this region of the application and it worked for a long time. I don't
have any validation methods neither have I added a validation

intercepter.

I added a input page and tried to print all actionmessages and
actionerrors,
but there was nothing

Any other advice what I can try to resolve this problem?

Best regards,
Marc


Errormessage:

 No result defined for action de.seb.bpc.presentation.SessionCtxActionand
result input - action -


file:/C:/workspace_bpc2/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/bpc/WEB-INF/classes/bpc.struts.xml:68:88


at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
DefaultActionInvocation.java:350) at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(
DefaultActionInvocation.java :253) at
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(
ValidationInterceptor.java:150) at


org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept

(AnnotationValidationInterceptor.java:48) at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(
MethodFilterInterceptor.java:86) at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling (
DefaultActionInvocation.java:224) at



-
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]



Re: Struts2: Problem result input

2007-12-13 Thread Marc Eckart
Solved the problem:

In my case the problem was a type conversion :-) I have a bean class, which
is filled by hidden fields. I have some overloaded setters with a type and a
string which converts into the type. So I assume struts doesn't look at the
signature of the setter and just uses the first it gets. So in my case it
tried to put a String in the setter with a type which causes a type
conversion error which leads to the result input problem. So I added a
setter with different name which does the conversion from String to my type.

Marc

2007/12/12, Dave Newton <[EMAIL PROTECTED]>:
>
> There is *some* reason it's expecting an input result: it could be your
> configuration, a type conversion error, something... if nothing else I'd
> crank up logging full-blast and see what's there.
>
> HTHBIPD (Hope This Helps But It Probably Doesn't)
> d.
>
> --- Marc Eckart <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > I have a problem when I call a action with dojo by publishing a topic.
> > Struts wants a input result and I don't know why. I haven't changed
> > anything
> > in this region of the application and it worked for a long time. I don't
> > have any validation methods neither have I added a validation
> intercepter.
> >
> > I added a input page and tried to print all actionmessages and
> > actionerrors,
> > but there was nothing
> >
> > Any other advice what I can try to resolve this problem?
> >
> > Best regards,
> > Marc
> >
> >
> > Errormessage:
> >
> >  No result defined for action de.seb.bpc.presentation.SessionCtxActionand
> > result input - action -
> >
> file:/C:/workspace_bpc2/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/bpc/WEB-INF/classes/bpc.struts.xml:68:88
>
> > at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
> > DefaultActionInvocation.java:350) at
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(
> > DefaultActionInvocation.java :253) at
> > com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(
> > ValidationInterceptor.java:150) at
> >
>
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept
> > (AnnotationValidationInterceptor.java:48) at
> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(
> > MethodFilterInterceptor.java:86) at
> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling (
> > DefaultActionInvocation.java:224) at
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Struts2: Problem result input

2007-12-12 Thread Dave Newton
There is *some* reason it's expecting an input result: it could be your
configuration, a type conversion error, something... if nothing else I'd
crank up logging full-blast and see what's there.

HTHBIPD (Hope This Helps But It Probably Doesn't)
d.

--- Marc Eckart <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I have a problem when I call a action with dojo by publishing a topic.
> Struts wants a input result and I don't know why. I haven't changed
> anything
> in this region of the application and it worked for a long time. I don't
> have any validation methods neither have I added a validation intercepter.
> 
> I added a input page and tried to print all actionmessages and
> actionerrors,
> but there was nothing
> 
> Any other advice what I can try to resolve this problem?
> 
> Best regards,
> Marc
> 
> 
> Errormessage:
> 
>  No result defined for action de.seb.bpc.presentation.SessionCtxAction and
> result input - action -
>
file:/C:/workspace_bpc2/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/bpc/WEB-INF/classes/bpc.struts.xml:68:88
> at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
> DefaultActionInvocation.java:350) at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(
> DefaultActionInvocation.java:253) at
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(
> ValidationInterceptor.java:150) at
>
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept
> (AnnotationValidationInterceptor.java:48) at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(
> MethodFilterInterceptor.java:86) at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
> DefaultActionInvocation.java:224) at
> 


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



Struts2: Problem result input

2007-12-12 Thread Marc Eckart
Hi,

I have a problem when I call a action with dojo by publishing a topic.
Struts wants a input result and I don't know why. I haven't changed anything
in this region of the application and it worked for a long time. I don't
have any validation methods neither have I added a validation intercepter.

I added a input page and tried to print all actionmessages and actionerrors,
but there was nothing

Any other advice what I can try to resolve this problem?

Best regards,
Marc


Errormessage:

 No result defined for action de.seb.bpc.presentation.SessionCtxAction and
result input - action -
file:/C:/workspace_bpc2/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/bpc/WEB-INF/classes/bpc.struts.xml:68:88
at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
DefaultActionInvocation.java:350) at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(
DefaultActionInvocation.java:253) at
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(
ValidationInterceptor.java:150) at
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept
(AnnotationValidationInterceptor.java:48) at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(
MethodFilterInterceptor.java:86) at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
DefaultActionInvocation.java:224) at