You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Markus Mehrwald <mm...@gmx.at> on 2008/10/17 23:42:55 UTC

validateRegExpr NPE

Hello,

I just updated from tomahawk 1.1.6 to 1.1.7. Now I have got a problem 
with my validateRegExpr tag. I did not change anything but now I get the 
following execption:

Message: An exception occurred processing JSP page 
/public/subs/registration/personal.jsp at line 223 220: 223: 225: 226: 
Stacktrace:

java.lang.NullPointerException
	at 
org.apache.myfaces.validator.ValidatorBaseTag._setProperties(ValidatorBaseTag.java:71)
	at 
org.apache.myfaces.custom.regexprvalidator.ValidateRegExprTag._setProperties(ValidateRegExprTag.java:55)
	at 
org.apache.myfaces.custom.regexprvalidator.ValidateRegExprTag.createValidator(ValidateRegExprTag.java:50)
	at javax.faces.webapp.ValidatorELTag.doStartTag(ValidatorELTag.java:119)
[..]

The code in my jsp looks like this:
<h:inputText required="true" 
value="#{registrationData.userToEdit.street}" id="street">
	<t:validateRegExpr pattern="\D+" message="{0} ist keine gültiger 
Straßenname" />
</h:inputText>

Might this be a bug or did something change which causes now a 
NullPointerException?

Thanks for help,
Markus

Re: validateRegExpr NPE

Posted by Leonardo Uribe <lu...@gmail.com>.
On Sat, Oct 18, 2008 at 3:20 PM, Markus Mehrwald <mm...@gmx.at> wrote:

> Hello again,
>
> now it is not only the regexp validator but the email validator as well.
> Can anyone help me please?
>

Checking the code there is an error on ValidatorBaseTag for tomahawk 12.
Could you file a jira issue on,

http://issues.apache.org/jira/browse/TOMAHAWK

 so we can fix it?

Thanks for your help

regards

Leonardo Uribe


>
> Thanks,
> Markus
>
>
> Markus Mehrwald schrieb:
>
>  Hello,
>>
>> I just updated from tomahawk 1.1.6 to 1.1.7. Now I have got a problem
>> with my validateRegExpr tag. I did not change anything but now I get the
>> following execption:
>>
>> Message: An exception occurred processing JSP page
>> /public/subs/registration/personal.jsp at line 223 220: 223: 225: 226:
>> Stacktrace:
>>
>> java.lang.NullPointerException
>>    at
>> org.apache.myfaces.validator.ValidatorBaseTag._setProperties(ValidatorBaseTag.java:71)
>>
>>    at
>> org.apache.myfaces.custom.regexprvalidator.ValidateRegExprTag._setProperties(ValidateRegExprTag.java:55)
>>
>>    at
>> org.apache.myfaces.custom.regexprvalidator.ValidateRegExprTag.createValidator(ValidateRegExprTag.java:50)
>>
>>    at
>> javax.faces.webapp.ValidatorELTag.doStartTag(ValidatorELTag.java:119)
>> [..]
>>
>> The code in my jsp looks like this:
>> <h:inputText required="true" value="#{registrationData.userToEdit.street}"
>> id="street">
>>    <t:validateRegExpr pattern="\D+" message="{0} ist keine gültiger
>> Straßenname" />
>> </h:inputText>
>>
>> Might this be a bug or did something change which causes now a
>> NullPointerException?
>>
>> Thanks for help,
>> Markus
>>
>>

Re: validateRegExpr NPE

Posted by Markus Mehrwald <mm...@gmx.at>.
Hello again,

now it is not only the regexp validator but the email validator as well.
Can anyone help me please?

Thanks,
Markus


Markus Mehrwald schrieb:
> Hello,
> 
> I just updated from tomahawk 1.1.6 to 1.1.7. Now I have got a problem 
> with my validateRegExpr tag. I did not change anything but now I get the 
> following execption:
> 
> Message: An exception occurred processing JSP page 
> /public/subs/registration/personal.jsp at line 223 220: 223: 225: 226: 
> Stacktrace:
> 
> java.lang.NullPointerException
>     at 
> org.apache.myfaces.validator.ValidatorBaseTag._setProperties(ValidatorBaseTag.java:71) 
> 
>     at 
> org.apache.myfaces.custom.regexprvalidator.ValidateRegExprTag._setProperties(ValidateRegExprTag.java:55) 
> 
>     at 
> org.apache.myfaces.custom.regexprvalidator.ValidateRegExprTag.createValidator(ValidateRegExprTag.java:50) 
> 
>     at 
> javax.faces.webapp.ValidatorELTag.doStartTag(ValidatorELTag.java:119)
> [..]
> 
> The code in my jsp looks like this:
> <h:inputText required="true" 
> value="#{registrationData.userToEdit.street}" id="street">
>     <t:validateRegExpr pattern="\D+" message="{0} ist keine gültiger 
> Straßenname" />
> </h:inputText>
> 
> Might this be a bug or did something change which causes now a 
> NullPointerException?
> 
> Thanks for help,
> Markus
>