Return-Path: X-Original-To: apmail-juddi-dev-archive@www.apache.org Delivered-To: apmail-juddi-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C8A67CAC for ; Fri, 23 Dec 2011 20:00:58 +0000 (UTC) Received: (qmail 23856 invoked by uid 500); 23 Dec 2011 20:00:58 -0000 Delivered-To: apmail-juddi-dev-archive@juddi.apache.org Received: (qmail 23815 invoked by uid 500); 23 Dec 2011 20:00:58 -0000 Mailing-List: contact dev-help@juddi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@juddi.apache.org Delivered-To: mailing list dev@juddi.apache.org Received: (qmail 23808 invoked by uid 99); 23 Dec 2011 20:00:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2011 20:00:58 +0000 X-ASF-Spam-Status: No, hits=-2002.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2011 20:00:54 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 55BA81255B2 for ; Fri, 23 Dec 2011 20:00:32 +0000 (UTC) Date: Fri, 23 Dec 2011 20:00:32 +0000 (UTC) From: "subes (Commented) (JIRA)" To: dev@juddi.apache.org Message-ID: <1501165685.43142.1324670432352.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <999619805.26236.1324303770930.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (JUDDI-536) org.xml.sax.SAXParseException: s4s-att-not-allowed: Attribute 'nillable' cannot appear in element 'element'. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JUDDI-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13175562#comment-13175562 ] subes commented on JUDDI-536: ----------------------------- About JUDDI 3.1.2 NPE, this is the real exception causing this: {code} Caused by: java.lang.NullPointerException: null at org.apache.juddi.validation.ValidatePublish.validateSaveBusinessMax(ValidatePublish.java:280) ~[juddi-core-3.1.2.jar:3.1.2] at org.apache.juddi.api.impl.UDDIPublicationImpl.saveBusiness(UDDIPublicationImpl.java:595) ~[juddi-core-3.1.2.jar:3.1.2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_23] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.6.0_23] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.6.0_23] at java.lang.reflect.Method.invoke(Method.java:616) ~[na:1.6.0_23] at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173) ~[cxf-bundle-2.5.0.jar:2.5.0] at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89) ~[cxf-bundle-2.5.0.jar:2.5.0] ... 40 common frames omitted {code} This is on method: {code} public void validateSaveBusinessMax(EntityManager em) throws DispositionReportFaultMessage { //Obtain the maxSettings for this publisher or get the defaults Publisher publisher = em.find(Publisher.class, getPublisher().getAuthorizedName()); Integer maxBusinesses = publisher.getMaxBusinesses(); try { if (maxBusinesses==null) { if (AppConfig.getConfiguration().containsKey(Property.JUDDI_MAX_BUSINESSES_PER_PUBLISHER)) { maxBusinesses = AppConfig.getConfiguration().getInteger(Property.JUDDI_MAX_BUSINESSES_PER_PUBLISHER, -1); } else { maxBusinesses = -1; } } } catch (ConfigurationException e) { log.error(e.getMessage(), e); } //if we have the maxBusinesses set for this publisher then we need to make sure we did not exceed it. if (maxBusinesses > 0) { //get the businesses owned by this publisher List businessKeysFound = FindBusinessByPublisherQuery.select(em, null, publisher, null); if (businessKeysFound!=null && businessKeysFound.size() > maxBusinesses) throw new MaxEntitiesExceededException(new ErrorMessage("errors.save.maxBusinessesExceeded")); } } {code} The problem is that the publisher is not found for the publisher name "invesdwin". Because publisher is null, it cannot load the default settings for him. > org.xml.sax.SAXParseException: s4s-att-not-allowed: Attribute 'nillable' cannot appear in element 'element'. > ------------------------------------------------------------------------------------------------------------ > > Key: JUDDI-536 > URL: https://issues.apache.org/jira/browse/JUDDI-536 > Project: jUDDI > Issue Type: Bug > Components: CXF > Affects Versions: 3.1.0 > Environment: CXF 2.5.0 > Reporter: subes > Assignee: Kurt T Stam > Attachments: error.log > > > When using CXF with JUDDI 3.1.0, the following exception is printed quite often: > 2011-12-19 14:44:07,585 [ |qtp1530777310-23 ] WARN org.apache.cxf.wsdl.EndpointReferenceUtils.createSchema - SAXException for newSchema() > org.xml.sax.SAXParseException: s4s-att-not-allowed: Attribute 'nillable' cannot appear in element 'element'. > at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198) ~[na:1.7.0_147-icedtea] > at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134) ~[na:1.7.0_147-icedtea] > at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:437) ~[na:1.7.0_147-icedtea] > at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:4124) ~[na:1.7.0_147-icedtea] > at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:4107) ~[na:1.7.0_147-icedtea] > at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSAttributeChecker.reportSchemaError(XSAttributeChecker.java:1567) ~[na:1.7.0_147-icedtea] > at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSAttributeChecker.checkAttributes(XSAttributeChecker.java:1103) ~[na:1.7.0_147-icedtea] > at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSAttributeChecker.checkAttributes(XSAttributeChecker.java:961) ~[na:1.7.0_147-icedtea] > at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTraverser.traverseLocal(XSDElementTraverser.java:160) ~[na:1.7.0_147-icedtea] > at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.traverseLocalElements(XSDHandler.java:3580) ~[na:1.7.0_147-icedtea] > at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:622) ~[na:1.7.0_147-icedtea] > at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:585) ~[na:1.7.0_147-icedtea] > at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:552) ~[na:1.7.0_147-icedtea] > at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:518) ~[na:1.7.0_147-icedtea] > at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:227) ~[na:1.7.0_147-icedtea] > at org.apache.cxf.wsdl.EndpointReferenceUtils.createSchema(EndpointReferenceUtils.java:693) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.apache.cxf.wsdl.EndpointReferenceUtils.getSchema(EndpointReferenceUtils.java:737) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.apache.cxf.interceptor.AbstractInDatabindingInterceptor.setSchemaInMessage(AbstractInDatabindingInterceptor.java:108) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.apache.cxf.interceptor.AbstractInDatabindingInterceptor.getDataReader(AbstractInDatabindingInterceptor.java:93) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.apache.cxf.interceptor.AbstractInDatabindingInterceptor.getDataReader(AbstractInDatabindingInterceptor.java:98) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:69) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:206) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:218) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:200) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:114) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:107) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:163) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:558) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:488) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:972) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:417) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:906) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.server.Server.handle(Server.java:350) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:442) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:941) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:52) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) [de.invesdwin.gemeinsam.integration.ws.registry-prod-0.1.3.jar:0.1.3] > at java.lang.Thread.run(Thread.java:722) [na:1.7.0_147-icedtea] > Though the functionality does not seem to be affected by this. Any idea where this comes from and how to suppress this? The previous version of JUDDI did not cause this exception. > I've also reported this issue on CXF, because I can't estimate which project in fact causes this: https://issues.apache.org/jira/browse/CXF-3980 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira