Rest org.apache.cxf.interceptor.Fault:调用公共java.lang.String JaxRS服务器时为null

Rest org.apache.cxf.interceptor.Fault:调用公共java.lang.String JaxRS服务器时为null,rest,url,jakarta-ee,jax-rs,query-parameters,Rest,Url,Jakarta Ee,Jax Rs,Query Parameters,我有一个简单的方法,当我在url中写入时: @GET @Path("/freePlaces") @Produces("application/json") public String places(@QueryParam("projectionId") String projectionId) { return projectionDAO.findById(Long.parseLong(projectionId)).getPlaces().toString(); } 我得到一个例外:

我有一个简单的方法,当我在url中写入时:

@GET
@Path("/freePlaces")
@Produces("application/json")
public String places(@QueryParam("projectionId") String projectionId) {
    return projectionDAO.findById(Long.parseLong(projectionId)).getPlaces().toString();
}
我得到一个例外:

java.lang.RuntimeException:org.apache.cxf.interceptor.Fault:null 调用public java.lang.String时 带有参数的cinema.services.ProjectionManager.places(java.lang.String) [351]. org.apache.cxf.interceptor.Fault:调用public时为null java.lang.String 带有参数的cinema.services.ProjectionManager.places(java.lang.String) [351]

我需要一些帮助来解决这个问题

http://localhost:8080/cinema/rest/projection/freePlaces?projectionId=351