VMware Cloud Community
thedoctor46
Enthusiast
Enthusiast
Jump to solution

REST-Plugin lost configuration after reboot

Hi,

i have a Problem with vRO 6.0.3 and the HTTP-REST Plugin 1.0.9.

I add a REST-Host and a REST-Operation. No Problem... everything works as expected. But after reboot the REST Plugin has lost its configuration.

Does somebody has any idea?

Regards

Logfile:

2015-09-28 15:23:31.153+0200 [http-bio-0.0.0.0-8281-exec-8] WARN  {} [SDKFinder] Unable to execute 'fetchRelation' for type : RootFinder : java.lang.IllegalArgumentException: The validated string is empty

java.lang.reflect.InvocationTargetException

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at ch.dunes.vso.sdk.DirectInvoker.invoke(DirectInvoker.java:55)

at ch.dunes.vso.sdk.SDKPluginFactoryInvoker.fetchRelation(SDKPluginFactoryInvoker.java:46)

at ch.dunes.vso.sdk.SDKFinder.fetchRelation(SDKFinder.java:377)

at ch.dunes.vso.sdk.SDKFinder._findRelation(SDKFinder.java:351)

at ch.dunes.vso.sdk.SDKFinder.findRelation(SDKFinder.java:265)

at ch.dunes.vso.sdk.ModulesFactory.findRelation(ModulesFactory.java:624)

at com.vmware.o11n.sdk.EnhancedScriptingSDK.findRelation(EnhancedScriptingSDK.java:132)

at com.vmware.o11n.service.sdk.SdkModuleServiceImpl.findRelation(SdkModuleServiceImpl.java:70)

at com.vmware.o11n.service.factory.VcoFactoryFacade.findRelation(VcoFactoryFacade.java:1687)

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at com.vmware.o11n.service.security.AccessRightsInterceptor.invoke(AccessRightsInterceptor.java:97)

at com.vmware.o11n.service.security.AccessRightsInterceptor.invoke(AccessRightsInterceptor.java:88)

at com.vmware.o11n.service.webremoting.VcoDelegatingWebFacade.invokeOperation(VcoDelegatingWebFacade.java:106)

at com.vmware.o11n.integration.initialization.VcoFactoryServiceFacadeProxy.invokeOperation(VcoFactoryServiceFacadeProxy.java:86)

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

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)

at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)

at com.sun.proxy.$Proxy74.invokeOperation(Unknown Source)

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

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.springframework.remoting.support.RemoteInvocation.invoke(RemoteInvocation.java:212)

at org.springframework.remoting.support.DefaultRemoteInvocationExecutor.invoke(DefaultRemoteInvocationExecutor.java:39)

at org.springframework.remoting.support.RemoteInvocationBasedExporter.invoke(RemoteInvocationBasedExporter.java:78)

at org.springframework.remoting.support.RemoteInvocationBasedExporter.invokeAndCreateResult(RemoteInvocationBasedExporter.java:114)

at org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter.handleRequest(HttpInvokerServiceExporter.java:74)

at org.springframework.web.context.support.HttpRequestHandlerServlet.service(HttpRequestHandlerServlet.java:68)

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

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at net.sf.ehcache.constructs.web.filter.GzipFilter.doFilter(GzipFilter.java:95)

at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:86)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:683)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:957)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.IllegalArgumentException: The validated string is empty

at org.apache.commons.lang.Validate.notEmpty(Validate.java:321)

at org.apache.commons.lang.Validate.notEmpty(Validate.java:339)

at com.vmware.o11n.plugin.rest.RESTHost.<init>(RESTHost.java:58)

at com.vmware.o11n.plugin.rest.configuration.HostConfigurationPersister.getHostFrom(HostConfigurationPersister.java:135)

at com.vmware.o11n.plugin.rest.configuration.HostConfigurationPersister.getAll(HostConfigurationPersister.java:81)

at com.vmware.o11n.plugin.rest.configuration.HostConfigurationServiceImpl.reload(HostConfigurationServiceImpl.java:182)

at com.vmware.o11n.plugin.rest.configuration.HostConfigurationServiceImpl.getAll(HostConfigurationServiceImpl.java:99)

at com.vmware.o11n.plugin.rest.RESTHostManager.getAll(RESTHostManager.java:363)

at com.vmware.o11n.plugin.rest.RESTPluginFactory.findRelation(RESTPluginFactory.java:174)

... 62 more

2015-09-28 15:23:31.159+0200 [http-bio-0.0.0.0-8281-exec-8] ERROR {} [VcoDelegatingWebFacade] Server Error...

ch.dunes.model.sdk.SDKFinderException: Unable to execute 'fetchRelation' for type : RootFinder : java.lang.IllegalArgumentException: The validated string is empty

at ch.dunes.vso.sdk.SDKFinder.logAndThrow(SDKFinder.java:907)

at ch.dunes.vso.sdk.SDKFinder.fetchRelation(SDKFinder.java:387)

at ch.dunes.vso.sdk.SDKFinder._findRelation(SDKFinder.java:351)

at ch.dunes.vso.sdk.SDKFinder.findRelation(SDKFinder.java:265)

at ch.dunes.vso.sdk.ModulesFactory.findRelation(ModulesFactory.java:624)

at com.vmware.o11n.sdk.EnhancedScriptingSDK.findRelation(EnhancedScriptingSDK.java:132)

at com.vmware.o11n.service.sdk.SdkModuleServiceImpl.findRelation(SdkModuleServiceImpl.java:70)

at com.vmware.o11n.service.factory.VcoFactoryFacade.findRelation(VcoFactoryFacade.java:1687)

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at com.vmware.o11n.service.security.AccessRightsInterceptor.invoke(AccessRightsInterceptor.java:97)

at com.vmware.o11n.service.security.AccessRightsInterceptor.invoke(AccessRightsInterceptor.java:88)

at com.vmware.o11n.service.webremoting.VcoDelegatingWebFacade.invokeOperation(VcoDelegatingWebFacade.java:106)

at com.vmware.o11n.integration.initialization.VcoFactoryServiceFacadeProxy.invokeOperation(VcoFactoryServiceFacadeProxy.java:86)

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

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)

at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)

at com.sun.proxy.$Proxy74.invokeOperation(Unknown Source)

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

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.springframework.remoting.support.RemoteInvocation.invoke(RemoteInvocation.java:212)

at org.springframework.remoting.support.DefaultRemoteInvocationExecutor.invoke(DefaultRemoteInvocationExecutor.java:39)

at org.springframework.remoting.support.RemoteInvocationBasedExporter.invoke(RemoteInvocationBasedExporter.java:78)

at org.springframework.remoting.support.RemoteInvocationBasedExporter.invokeAndCreateResult(RemoteInvocationBasedExporter.java:114)

at org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter.handleRequest(HttpInvokerServiceExporter.java:74)

at org.springframework.web.context.support.HttpRequestHandlerServlet.service(HttpRequestHandlerServlet.java:68)

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

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at net.sf.ehcache.constructs.web.filter.GzipFilter.doFilter(GzipFilter.java:95)

at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:86)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:683)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:957)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.reflect.InvocationTargetException

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at ch.dunes.vso.sdk.DirectInvoker.invoke(DirectInvoker.java:55)

at ch.dunes.vso.sdk.SDKPluginFactoryInvoker.fetchRelation(SDKPluginFactoryInvoker.java:46)

at ch.dunes.vso.sdk.SDKFinder.fetchRelation(SDKFinder.java:377)

... 55 more

Caused by: java.lang.IllegalArgumentException: The validated string is empty

at org.apache.commons.lang.Validate.notEmpty(Validate.java:321)

at org.apache.commons.lang.Validate.notEmpty(Validate.java:339)

at com.vmware.o11n.plugin.rest.RESTHost.<init>(RESTHost.java:58)

at com.vmware.o11n.plugin.rest.configuration.HostConfigurationPersister.getHostFrom(HostConfigurationPersister.java:135)

at com.vmware.o11n.plugin.rest.configuration.HostConfigurationPersister.getAll(HostConfigurationPersister.java:81)

at com.vmware.o11n.plugin.rest.configuration.HostConfigurationServiceImpl.reload(HostConfigurationServiceImpl.java:182)

at com.vmware.o11n.plugin.rest.configuration.HostConfigurationServiceImpl.getAll(HostConfigurationServiceImpl.java:99)

at com.vmware.o11n.plugin.rest.RESTHostManager.getAll(RESTHostManager.java:363)

at com.vmware.o11n.plugin.rest.RESTPluginFactory.findRelation(RESTPluginFactory.java:174)

... 62 more

2015-09-28 15:23:31.160+0200 [http-bio-0.0.0.0-8281-exec-8] ERROR {} [VcoFactoryServiceFacadeProxy] ch.dunes.util.DunesServerException: Unable to execute 'fetchRelation' for type : RootFinder : java.lang.IllegalArgumentException: The validated string is empty

Reply
0 Kudos
1 Solution

Accepted Solutions
thedoctor46
Enthusiast
Enthusiast
Jump to solution

I have delete all child nodes. Now it is working. Thank you!

View solution in original post

Reply
0 Kudos
3 Replies
iiliev
VMware Employee
VMware Employee
Jump to solution

What type of database do you use? The embedded one, or the PostgreSQL coming with the vRO appliance, or some external DB? If I recall correctly, there were a few reports in the past that embedded DB sometimes got corrupted, or that after a restart a different database got selected. Please verify in vRO configurator that your DB configuration hasn't changed after the reboot.

Also, could you check if the configuration resource is completely missing or its content is corrupter? Open vRO Java client, switch to 'Design' perspective, click on 'Resources' tab in the left pane, navigate to Library->REST->Configuration. Is there some child node labelled with a guid string? If yes, then the configuration is still there, but its content is corrupted. In this case, click on the node and then on 'Viewer' tab. It should open a XML document with configuration data; could you send it to us to take a look?

Reply
0 Kudos
thedoctor46
Enthusiast
Enthusiast
Jump to solution

Hi Ilian Iliev,

i use the embedded one. It was a clean Installation with an import of my own workflows. On the Reources tab I can find some child node.

The Content of the first node is:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<endpoint pluginVersion="1.0.9">

    <properties>

        <property type="bool" name="useProxy">true</property>

        <property type="string" name="sessionMode">Shared Session</property>

        <property type="string" name="proxyHost"></property>

        <property type="integer" name="operationTimeout">60</property>

        <property type="integer" name="proxyPort">0</property>

        <property type="password" name="password">vcoencrypted:dI9HWnRI7Pniv+yK2x3/rg==</property>

        <property type="string" name="authenticationType">Basic</property>

        <property type="string" name="url">https://infobloxdemo.abc.global</property>

        <property type="string" name="schema">&lt;com.vmware.o11n.plugin.rest.schema.SchemaRespository&gt;

  &lt;sources/&gt;

&lt;/com.vmware.o11n.plugin.rest.schema.SchemaRespository&gt;</property>

        <property type="bool" name="hostVerification">false</property>

        <property type="string" name="username">admin</property>

        <property type="integer" name="connectionTimeout">30</property>

        <property type="string" name="name">infobloxdemo</property>

        <property type="string" name="operations">&lt;list/&gt;</property>

    </properties>

</endpoint>

Reply
0 Kudos
thedoctor46
Enthusiast
Enthusiast
Jump to solution

I have delete all child nodes. Now it is working. Thank you!

Reply
0 Kudos