나는 글래스 피쉬 4.0WeldListener에서 isHexDigit 예외를 잡는 방법? 어딘가에서
package WebApplication1;
import javax.ejb.Stateless;
import javax.ws.rs.Path;
import javax.ws.rs.GET;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
@Stateless
@Path("/testme")
public class NewSessionBean {
/**
* http://localhost:8080/WebApplication1/webresources/testme?stupidparameter=dyndcvgz/&%$\xa7edns
*
* @param stupidparameter
* @return
*/
@GET
@Produces("text/plain")
public String getXml(
@QueryParam("stupidparameter") String stupidparameter) {
System.out.println("stupidparameter = " + stupidparameter);
return "got " + stupidparameter;
}
}
와와 jdk1.7u40에 넷빈즈 빌드,
내 샘플 응용 프로그램은 다음과 같습니다http://localhost:8080/WebApplication1/webresources/testme?stupidparameter=dyndcvgz/&%$\xa7edns
처럼 Webservice를 몇 가지 어리 석고 잘못된 URL 요청을 받았습니다 주어진 테스트 url 나는 항상 IllegalStateException : isHexDigit from org.jboss.weld.servlet.WeldListener. 이 예외를 피하거나 처리하려면 어떻게해야합니까?