5 Replies Latest reply on Oct 31, 2016 9:37 AM by Steven Hawkins

    On setting teiid cluster throwing java.lang.IllegalArgumentException.

    Kulbhushan Chaskar Master

      Hi,

       

      I am trying to set up mod_cluster of Wildfly server with teiid its product-name is WildFly full and product version is 9.0.2, I am getting java.lang.IllegalArgumentException while creating data-source using admin api. Set serverGroupNames = serverGroups.keys(); this code line is throwing the exception.

       

      ModelNode outcome = this.connection.execute(request);

      returns :

      {

          "outcome" => "success",

          "result" => undefined,

          "server-groups" => undefined

      }

       

      while final ModelNode request = buildRequest("teiid", "list-vdbs");//$NON-NLS-1$ //$NON-NLS-2$

      returns:

      {

          "operation" => "list-vdbs",

          "address" => [

              ("profile" => "ha"),

              ("subsystem" => "teiid")

          ]

      }

       

       

      Full Stack trace:-

       

      java.lang.IllegalArgumentException

        at org.jboss.dmr.ModelValue.getKeys(ModelValue.java:136)

        at org.jboss.dmr.ModelNode.keys(ModelNode.java:1373)

        at org.teiid.adminapi.jboss.AdminFactory$AdminImpl.getDomainAwareList(AdminFactory.java:1575)

        at org.teiid.adminapi.jboss.AdminFactory$AdminImpl.getVDBs(AdminFactory.java:1662)

        at org.teiid.adminapi.jboss.AdminFactory$AdminImpl.getVDBs(AdminFactory.java:195)

        at com.bitwise.tdm.teiid.internal.business.AdminApiClient.getVdbs(AdminApiClient.java:732)

        at com.bitwise.tdm.teiid.internal.business.AdminApiClient.getVDB(AdminApiClient.java:749)

        at com.bitwise.tdm.teiid.internal.business.AdminApiClient.deleteVDB(AdminApiClient.java:772)

        at com.bitwise.tdm.teiid.internal.business.AdminApiClient.deleteVDBs(AdminApiClient.java:799)

        at com.bitwise.tdm.teiid.internal.management.TeiidMgmtService.undeployVdb(TeiidMgmtService.java:1073)

        at com.bitwise.tdm.teiid.internal.management.TeiidMgmtService.testConnection(TeiidMgmtService.java:844)

        at com.bitwise.tdm.teiid.internal.business.TeiidService.testConnection(TeiidService.java:88)

        at com.bitwise.tdm.connection.internal.business.ConnectionService.testConnection(ConnectionService.java:272)

        at com.bitwise.tdm.connection.internal.delegator.ConnectionDelegate.lambda$13(ConnectionDelegate.java:174)

        at com.bitwise.tdm.connection.internal.delegator.ConnectionDelegate$$Lambda$12/979755677.accept(Unknown Source)

        at java.util.Optional.ifPresent(Unknown Source)

        at com.bitwise.common.communication.Either.apply(Either.java:39)

        at com.bitwise.tdm.connection.internal.delegator.ConnectionDelegate.testConnection(ConnectionDelegate.java:173)

        at com.bitwise.tdm.connection.internal.rest.ConnectionResource.testConnection(ConnectionResource.java:195)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

        at org.apache.wink.server.internal.handlers.InvokeMethodHandler.handleRequest(InvokeMethodHandler.java:63)

        at org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:33)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)

        at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)

        at org.apache.wink.server.internal.handlers.CreateInvocationParametersHandler.handleRequest(CreateInvocationParametersHandler.java:54)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)

        at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)

        at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceMethod(FindResourceMethodHandler.java:183)

        at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:110)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)

        at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)

        at org.apache.wink.server.internal.handlers.FindRootResourceHandler.handleRequest(FindRootResourceHandler.java:95)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)

        at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)

        at org.apache.wink.server.internal.handlers.HeadMethodHandler.handleRequest(HeadMethodHandler.java:53)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)

        at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)

        at org.apache.wink.server.internal.handlers.OptionsMethodHandler.handleRequest(OptionsMethodHandler.java:46)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)

        at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)

        at org.apache.wink.server.internal.handlers.SearchResultHandler.handleRequest(SearchResultHandler.java:33)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)

        at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)

        at org.apache.wink.server.internal.log.ResourceInvocation.handleRequest(ResourceInvocation.java:92)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)

        at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)

        at org.apache.wink.server.internal.log.Requests.handleRequest(Requests.java:76)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)

        at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)

        at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)

        at org.apache.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:48)

        at org.apache.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:207)

        at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:154)

        at org.amdatu.web.rest.wink.WinkFilterManager.handleRequest(WinkFilterManager.java:119)

        at org.amdatu.web.rest.wink.WinkFilter$1.run(WinkFilter.java:62)

        at org.amdatu.web.rest.wink.WinkFilter$1.run(WinkFilter.java:1)

        at java.security.AccessController.doPrivileged(Native Method)

        at org.amdatu.web.rest.wink.WinkFilter.doFilter(WinkFilter.java:55)

        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

        at com.bitwise.tdm.connection.internal.filter.LoggingFilter.doFilter(LoggingFilter.java:54)

        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:84)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:84)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:84)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:84)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:84)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:84)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:84)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:84)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:84)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:84)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:84)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

        at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:76)

        at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:49)

        at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)

        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)

        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)

        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)

        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)

        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)

        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)

        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)

        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

        at org.eclipse.jetty.server.Server.handle(Server.java:497)

        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)

        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)

        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)

        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)

        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

        at java.lang.Thread.run(Unknown Source)

       

      Thanks,

      Kulbhushan Chaskar.