Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9518

Swagger may see non-camel MBeans

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.16.1
    • 2.16.2, 2.17.0
    • None
    • None
    • Unknown

    Description

      10:06:13,591 INFO  [org.apache.camel.impl.DefaultCamelContext] (pool-1-thread-1) Apache Camel 2.16.1.redhat-630008 (CamelContext: swagger-test) started in 0.399 seconds
      10:06:14,413 INFO  [stdout] (pool-1-thread-1) org.apache.camel:context=swagger-test,type=context,name="swagger-test": <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      10:06:14,413 INFO  [stdout] (pool-1-thread-1) <rests xmlns="http://camel.apache.org/schema/spring">
      10:06:14,414 INFO  [stdout] (pool-1-thread-1)     <rest path="/hello">
      10:06:14,414 INFO  [stdout] (pool-1-thread-1)         <get uri="/{name}" consumes="application/json" produces="application/json" outType="org.wildfly.camel.test.swagger.subA.User" routeId="route1">
      10:06:14,414 INFO  [stdout] (pool-1-thread-1)             <description>A user object</description>
      10:06:14,414 INFO  [stdout] (pool-1-thread-1)             <param name="name" type="path"/>
      10:06:14,414 INFO  [stdout] (pool-1-thread-1)             <to uri="direct:hello" customId="true" id="route1"/>
      10:06:14,414 INFO  [stdout] (pool-1-thread-1)         </get>
      10:06:14,414 INFO  [stdout] (pool-1-thread-1)     </rest>
      10:06:14,414 INFO  [stdout] (pool-1-thread-1) </rests>
      10:06:14,415 INFO  [stdout] (pool-1-thread-1) 
      10:06:14,416 INFO  [stdout] (pool-1-thread-1) jboss.jsr77:j2eeType=JVM,name=default,J2EEServer=default: null
      10:06:14,417 INFO  [stdout] (pool-1-thread-1) jboss.jsr77:j2eeType=J2EEServer,name=default: null
      10:06:14,417 INFO  [stdout] (pool-1-thread-1) jboss.jsr77:j2eeType=J2EEDomain,name=jboss.jsr77: null
      10:06:14,447 WARN  [org.apache.camel.swagger.servlet.RestSwaggerServlet] (http-/127.0.0.1:8080-1) Error rendering Swagger API due JBAS019903: No attribute called CamelVersion: javax.management.AttributeNotFoundException: JBAS019903: No attribute called CamelVersion
      	at org.jboss.as.jsr77.managedobject.BaseHandler.getAttribute(BaseHandler.java:59)
      	at org.jboss.as.jsr77.managedobject.JVMHandler.getAttribute(JVMHandler.java:80)
      	at org.jboss.as.jsr77.managedobject.ManagedObjectHandlerRegistry.getAttribute(ManagedObjectHandlerRegistry.java:91)
      	at org.jboss.as.jsr77.subsystem.JSR77ManagementMBeanServer.getAttribute(JSR77ManagementMBeanServer.java:141)
      	at org.jboss.as.jmx.PluggableMBeanServerImpl.getAttribute(PluggableMBeanServerImpl.java:392)
      	at org.apache.camel.swagger.RestSwaggerSupport.findCamelContexts(RestSwaggerSupport.java:162) [camel-swagger-java-2.16.1.redhat-630008.jar:2.16.1.redhat-630008]
      	at org.apache.camel.swagger.servlet.RestSwaggerServlet.doGet(RestSwaggerServlet.java:140) [camel-swagger-java-2.16.1.redhat-630008.jar:2.16.1.redhat-630008]
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            tdiesler Thomas Diesler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: