Nifi Registry 0.8 throws java.lang.IllegalStateException: Unable to load cache item - java-15

I am trying to run Nifi Registry 0.8 on Windows Server 2019 using Amazon Corretto 15. I am aware that Nifi Registry is not officially support on Windows but some sources say it should run. Nifi Registry should also support Java 15. Both the path to Java and Nifi Registry do not have space in them.
When I try to run the run run-nifi-registry.bat, I got the following exception:
java.lang.IllegalStateException: Unable to load cache item
at org.springframework.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:79)
at org.springframework.cglib.core.internal.LoadingCache.get(LoadingCache.java:34)
at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:134)
at org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:319)
at org.springframework.cglib.proxy.Enhancer.createHelper(Enhancer.java:569)
at org.springframework.cglib.proxy.Enhancer.createClass(Enhancer.java:416)
at org.springframework.context.annotation.ConfigurationClassEnhancer.createClass(ConfigurationClassEnhancer.java:137)
at org.springframework.context.annotation.ConfigurationClassEnhancer.enhance(ConfigurationClassEnhancer.java:109)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:423)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:257)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:286)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:130)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:706)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152)
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132)
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92)
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)
at org.eclipse.jetty.plus.annotation.ContainerInitializer.callStartup(ContainerInitializer.java:136)
at org.eclipse.jetty.annotations.ServletContainerInitializersStarter.doStart(ServletContainerInitializersStarter.java:64)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:347)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:854)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:278)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:167)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:119)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:167)
at org.eclipse.jetty.server.Server.start(Server.java:418)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.server.Server.doStart(Server.java:382)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.apache.nifi.registry.jetty.JettyServer.start(JettyServer.java:481)
at org.apache.nifi.registry.NiFiRegistry.<init>(NiFiRegistry.java:117)
at org.apache.nifi.registry.NiFiRegistry.main(NiFiRegistry.java:164)
Caused by: java.lang.ExceptionInInitializerError: null
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:468)
at org.springframework.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:571)
at org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:363)
at org.springframework.cglib.proxy.Enhancer.generate(Enhancer.java:582)
at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:110)
at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:108)
at org.springframework.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.springframework.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61)
... 44 common frames omitted
Caused by: java.lang.RuntimeException: Unable to create JAXBContext.
at org.apache.nifi.registry.security.authorization.AuthorizerFactory.initializeJaxbContext(AuthorizerFactory.java:100)
at org.apache.nifi.registry.security.authorization.AuthorizerFactory.<clinit>(AuthorizerFactory.java:91)
... 54 common frames omitted
Caused by: javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:131)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:318)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:478)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:435)
at org.apache.nifi.registry.security.authorization.AuthorizerFactory.initializeJaxbContext(AuthorizerFactory.java:98)
... 55 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:555)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at javax.xml.bind.ServiceLoaderUtil.nullSafeLoadClass(ServiceLoaderUtil.java:92)
at javax.xml.bind.ServiceLoaderUtil.safeLoadClass(ServiceLoaderUtil.java:125)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:128)
... 59 common frames omitted
I found this article during my research and checked the pom.xml in the source code (source downloaded just for investigation, I am using the downloaded zip version)
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
</dependency>
When I tried to look into this further, I found the following in the logs:
2021-07-15 10:51:24,625 DEBUG [main] o.eclipse.jetty.webapp.WebAppClassLoader WAP webapp loaded class javax.xml.bind.ContextFinder
2021-07-15 10:51:24,625 DEBUG [main] org.eclipse.jetty.webapp.WebAppContext isSystemResource==true javax.xml.bind.ServiceLoaderUtil$ExceptionHandler jar:file:/C:/ApacheNifi/nifi-registry-0.8.0/work/jetty/nifi-registry-web-api-0.8.0.war/webapp/WEB-INF/lib/jakarta.xml.bind-api-2.3.2.jar!/javax/xml/bind/ServiceLoaderUtil$ExceptionHandler.class
2021-07-15 10:51:24,625 DEBUG [main] o.eclipse.jetty.webapp.WebAppClassLoader WAP webapp loaded class javax.xml.bind.ServiceLoaderUtil$ExceptionHandler
2021-07-15 10:51:24,625 DEBUG [main] org.eclipse.jetty.webapp.WebAppContext isSystemResource==true javax.xml.bind.ContextFinder$1 jar:file:/C:/ApacheNifi/nifi-registry-0.8.0/work/jetty/nifi-registry-web-api-0.8.0.war/webapp/WEB-INF/lib/jakarta.xml.bind-api-2.3.2.jar!/javax/xml/bind/ContextFinder$1.class
2021-07-15 10:51:24,626 DEBUG [main] o.eclipse.jetty.webapp.WebAppClassLoader WAP webapp loaded class javax.xml.bind.ContextFinder$1
2021-07-15 10:51:24,626 DEBUG [main] org.eclipse.jetty.webapp.WebAppContext isSystemResource==true javax.xml.bind.GetPropertyAction jar:file:/C:/ApacheNifi/nifi-registry-0.8.0/work/jetty/nifi-registry-web-api-0.8.0.war/webapp/WEB-INF/lib/jakarta.xml.bind-api-2.3.2.jar!/javax/xml/bind/GetPropertyAction.class
2021-07-15 10:51:24,627 DEBUG [main] o.eclipse.jetty.webapp.WebAppClassLoader WAP webapp loaded class javax.xml.bind.GetPropertyAction
2021-07-15 10:51:24,627 DEBUG [main] org.eclipse.jetty.webapp.WebAppContext isSystemResource==true javax.xml.bind.ModuleUtil jar:file:/C:/ApacheNifi/nifi-registry-0.8.0/work/jetty/nifi-registry-web-api-0.8.0.war/webapp/WEB-INF/lib/jakarta.xml.bind-api-2.3.2.jar!/META-INF/versions/9/javax/xml/bind/ModuleUtil.class
2021-07-15 10:51:24,627 DEBUG [main] o.eclipse.jetty.webapp.WebAppClassLoader WAP webapp loaded class javax.xml.bind.ModuleUtil
2021-07-15 10:51:24,628 DEBUG [main] org.eclipse.jetty.webapp.WebAppContext isServerClass==false class java.lang.invoke.StringConcatFactory
2021-07-15 10:51:24,628 DEBUG [main] o.eclipse.jetty.webapp.WebAppClassLoader WAP parent loaded class java.lang.invoke.StringConcatFactory
2021-07-15 10:51:24,628 DEBUG [main] org.eclipse.jetty.webapp.WebAppContext isSystemResource==false org.apache.nifi.registry.security.authorization.generated.ObjectFactory jar:file:/C:/ApacheNifi/nifi-registry-0.8.0/work/jetty/nifi-registry-web-api-0.8.0.war/webapp/WEB-INF/lib/nifi-registry-framework-0.8.0.jar!/org/apache/nifi/registry/security/authorization/generated/ObjectFactory.class
2021-07-15 10:51:24,628 DEBUG [main] o.eclipse.jetty.webapp.WebAppClassLoader WAP webapp loaded class org.apache.nifi.registry.security.authorization.generated.ObjectFactory
2021-07-15 10:51:24,629 DEBUG [main] javax.xml.bind Resolved classes from context path: [class org.apache.nifi.registry.security.authorization.generated.ObjectFactory]
2021-07-15 10:51:24,629 DEBUG [main] o.eclipse.jetty.webapp.WebAppClassLoader getResource org/apache/nifi/registry/security/authorization/generated/jaxb.properties null
2021-07-15 10:51:24,629 DEBUG [main] o.eclipse.jetty.webapp.WebAppClassLoader getResource org/apache/nifi/registry/security/authorization/generated/jaxb.properties null
2021-07-15 10:51:24,629 DEBUG [main] javax.xml.bind Checking system property javax.xml.bind.JAXBContextFactory
2021-07-15 10:51:24,629 DEBUG [main] javax.xml.bind not found
2021-07-15 10:51:24,629 DEBUG [main] javax.xml.bind Checking system property javax.xml.bind.context.factory
2021-07-15 10:51:24,629 DEBUG [main] javax.xml.bind not found
2021-07-15 10:51:24,629 DEBUG [main] javax.xml.bind Checking system property javax.xml.bind.JAXBContext
2021-07-15 10:51:24,629 DEBUG [main] javax.xml.bind not found
2021-07-15 10:51:24,629 DEBUG [main] org.eclipse.jetty.webapp.WebAppContext isSystemResource==true javax.xml.bind.JAXBContextFactory jar:file:/C:/ApacheNifi/nifi-registry-0.8.0/work/jetty/nifi-registry-web-api-0.8.0.war/webapp/WEB-INF/lib/jakarta.xml.bind-api-2.3.2.jar!/javax/xml/bind/JAXBContextFactory.class
2021-07-15 10:51:24,630 DEBUG [main] o.eclipse.jetty.webapp.WebAppClassLoader WAP webapp loaded interface javax.xml.bind.JAXBContextFactory
2021-07-15 10:51:24,630 DEBUG [main] org.eclipse.jetty.webapp.WebAppContext isSystemResource==true javax.xml.bind.ServiceLoaderUtil jar:file:/C:/ApacheNifi/nifi-registry-0.8.0/work/jetty/nifi-registry-web-api-0.8.0.war/webapp/WEB-INF/lib/jakarta.xml.bind-api-2.3.2.jar!/javax/xml/bind/ServiceLoaderUtil.class
2021-07-15 10:51:24,630 DEBUG [main] o.eclipse.jetty.webapp.WebAppClassLoader WAP webapp loaded class javax.xml.bind.ServiceLoaderUtil
2021-07-15 10:51:24,631 DEBUG [main] o.eclipse.jetty.webapp.WebAppClassLoader getResources META-INF/services/javax.xml.bind.JAXBContextFactory []
2021-07-15 10:51:24,631 DEBUG [main] javax.xml.bind Searching META-INF/services
2021-07-15 10:51:24,631 DEBUG [main] o.eclipse.jetty.webapp.WebAppClassLoader getResource META-INF/services/javax.xml.bind.JAXBContext null
2021-07-15 10:51:24,631 DEBUG [main] javax.xml.bind Unable to load:META-INF/services/javax.xml.bind.JAXBContext
2021-07-15 10:51:24,632 DEBUG [main] org.eclipse.jetty.webapp.WebAppContext isSystemResource==false org.glassfish.hk2.osgiresourcelocator.ServiceLoader jar:file:/C:/ApacheNifi/nifi-registry-0.8.0/work/jetty/nifi-registry-web-api-0.8.0.war/webapp/WEB-INF/lib/osgi-resource-locator-1.0.3.jar!/org/glassfish/hk2/osgiresourcelocator/ServiceLoader.class
2021-07-15 10:51:24,632 DEBUG [main] o.eclipse.jetty.webapp.WebAppClassLoader WAP webapp loaded class org.glassfish.hk2.osgiresourcelocator.ServiceLoader
2021-07-15 10:51:24,632 DEBUG [main] org.eclipse.jetty.webapp.WebAppContext isSystemResource==false org.glassfish.hk2.osgiresourcelocator.ServiceLoader$ProviderFactory jar:file:/C:/ApacheNifi/nifi-registry-0.8.0/work/jetty/nifi-registry-web-api-0.8.0.war/webapp/WEB-INF/lib/osgi-resource-locator-1.0.3.jar!/org/glassfish/hk2/osgiresourcelocator/ServiceLoader$ProviderFactory.class
2021-07-15 10:51:24,633 DEBUG [main] o.eclipse.jetty.webapp.WebAppClassLoader WAP webapp loaded interface org.glassfish.hk2.osgiresourcelocator.ServiceLoader$ProviderFactory
2021-07-15 10:51:24,634 DEBUG [main] javax.xml.bind Unable to find from OSGi: [javax.xml.bind.JAXBContext]
java.lang.reflect.InvocationTargetException: null
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at javax.xml.bind.ServiceLoaderUtil.lookupUsingOSGiServiceLoader(ServiceLoaderUtil.java:58)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:309)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:478)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:435)
at org.apache.nifi.registry.security.authorization.AuthorizerFactory.initializeJaxbContext(AuthorizerFactory.java:98)
at org.apache.nifi.registry.security.authorization.AuthorizerFactory.<clinit>(AuthorizerFactory.java:91)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:468)
at org.springframework.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:571)
at org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:363)
at org.springframework.cglib.proxy.Enhancer.generate(Enhancer.java:582)
at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:110)
at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:108)
at org.springframework.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.springframework.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61)
at org.springframework.cglib.core.internal.LoadingCache.get(LoadingCache.java:34)
at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:134)
at org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:319)
at org.springframework.cglib.proxy.Enhancer.createHelper(Enhancer.java:569)
at org.springframework.cglib.proxy.Enhancer.createClass(Enhancer.java:416)
at org.springframework.context.annotation.ConfigurationClassEnhancer.createClass(ConfigurationClassEnhancer.java:137)
at org.springframework.context.annotation.ConfigurationClassEnhancer.enhance(ConfigurationClassEnhancer.java:109)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:423)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:257)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:286)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:130)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:706)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152)
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132)
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92)
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)
at org.eclipse.jetty.plus.annotation.ContainerInitializer.callStartup(ContainerInitializer.java:136)
at org.eclipse.jetty.annotations.ServletContainerInitializersStarter.doStart(ServletContainerInitializersStarter.java:64)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:347)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:854)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:278)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:167)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:119)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:167)
at org.eclipse.jetty.server.Server.start(Server.java:418)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.server.Server.doStart(Server.java:382)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.apache.nifi.registry.jetty.JettyServer.start(JettyServer.java:481)
at org.apache.nifi.registry.NiFiRegistry.<init>(NiFiRegistry.java:117)
at org.apache.nifi.registry.NiFiRegistry.main(NiFiRegistry.java:164)
Caused by: java.lang.NullPointerException: Cannot invoke "org.glassfish.hk2.osgiresourcelocator.ServiceLoader.lookupProviderClasses1(java.lang.Class)" because "org.glassfish.hk2.osgiresourcelocator.ServiceLoader._me" is null
at org.glassfish.hk2.osgiresourcelocator.ServiceLoader.lookupProviderClasses(ServiceLoader.java:108)
... 64 common frames omitted
It does not look like a Nifi Registry problem on Windows. What is missing and how to resolve this issue?

It turned out Nifi Registry does come with JAXB implementation jar file under <install-dir>\lib\java11. However, since I am running Java 15, I suspect those are not loaded. I set log level to TRACE and confirmed that was indeed the case. Copying the jar files under java11 folder to the lib folder resolved the issue for me.

Related

Liquibase stopped working after moving from 3.6.3 to 3.8.7 or 3.10.2

I was using liquibase 3.6.3 and everything worked fine but today I've moved to 3.10.2 and suddenly I can't run any database updates. The only thing which is in the log file I've pasted below.
We run on DB2 for IBM i.
We use power shell scripts and bat scripts and if we run them outside of the liquibase, everything works fine but when those scripts get called from liquibase after the upgrade, it hangs on the last line from below log.
liquibase.log exist.
Liquibase found.
10:42:16.338 [main] DEBUG l.integration.commandline.Main - Custom logging config found, not going to modify
10:42:16.373 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/liquibase.jar!/liquibase.build.properties as liquibase.build.properties
10:42:16.378 [main] INFO l.integration.commandline.Main -
Starting Liquibase at Mon, 24 Aug 2020 10:42:16 CEST (version 3.10.2 #22 built at Mon Jul 27 04:21:02 UTC 2020)
10:42:16.392 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/liquibase.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.393 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/commons-cli-1.4.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.393 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/h2-1.4.200.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.394 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/jaxb-api-2.3.0.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.394 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/jaxb-core-2.3.0.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.395 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/jaxb-impl-2.3.0.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.396 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/logback-classic-1.2.3.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.397 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/logback-core-1.2.3.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.397 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/slf4j-api-1.7.25.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.398 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/slf4j-api-1.7.28.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.398 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/snakeyaml-1.18.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.398 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/snakeyaml-1.24.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.403 [main] DEBUG l.servicelocator.ServiceLocator - ServiceLocator.findClasses for liquibase.license.LicenseService
10:42:16.403 [main] DEBUG l.servicelocator.ServiceLocator - ServiceLocator finding classes matching interface liquibase.license.LicenseService
10:42:16.403 [main] DEBUG l.s.DefaultPackageScanClassResolver - Searching for implementations of liquibase.license.LicenseService in packages: [liquibase.change, liquibase.command, liquibase.changelog, liquibase.database, liquibase.parser, liquibase.precondition, liquibase.datatype, liquibase.serializer, liquibase.sqlgenerator, liquibase.executor, liquibase.snapshot, liquibase.logging, liquibase.diff, liquibase.structure, liquibase.structurecompare, liquibase.lockservice, liquibase.sdk.database, liquibase.ext, liquibase.pro, com.datical.liquibase]```

No suitable driver found for jdbc:pstgresql://localhost:5432/hibernatedb

I am getting this error. Tried two jar files into src folder, project folder etc too. Please check and help.
Tried Hibernate 3.6.4 and 5.4.2 both in different projects.
294 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.6.4.Final
297 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found
303 [main] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
311 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
446 [main] INFO org.hibernate.cfg.Configuration - configuring from resource: /hibernate.cfg.xml
446 [main] INFO org.hibernate.cfg.Configuration - Configuration resource: /hibernate.cfg.xml
1330 [main] INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null
1476 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.SecondHibernateProject.dto.UserDetails
1550 [main] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.SecondHibernateProject.dto.UserDetails on table UserDetails
1629 [main] INFO org.hibernate.cfg.Configuration - Hibernate Validator not found: ignoring
1635 [main] INFO org.hibernate.cfg.search.HibernateSearchEventListenerRegister - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
1647 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
1647 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 1
1647 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
1678 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: org.postgresql.Driver at URL: jdbc:pstgresql://localhost:5432/hibernatedb
1678 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=admin, password=****}
1680 [main] WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection to query metadata
java.sql.SQLException: No suitable driver found for jdbc:pstgresql://localhost:5432/hibernatedb
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:113)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)
at org.vishal.hibernate.HibernateTest2.main(HibernateTest2.java:12)
1742 [main] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.PostgreSQLDialect
1760 [main] INFO org.hibernate.engine.jdbc.JdbcSupportLoader - Disabling contextual LOB creation as connection was null
1762 [main] INFO org.hibernate.transaction.TransactionFactoryFactory - Using default transaction strategy (direct JDBC transactions)
1764 [main] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
1764 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
1764 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
1765 [main] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: disabled
1765 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): disabled
1765 [main] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
1766 [main] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
1767 [main] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
1767 [main] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
1767 [main] INFO org.hibernate.cfg.SettingsFactory - Order SQL inserts for batching: disabled
1767 [main] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
1770 [main] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
1771 [main] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
1771 [main] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: disabled
1772 [main] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
1772 [main] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
1773 [main] INFO org.hibernate.cfg.SettingsFactory - Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
1777 [main] INFO org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge - Cache provider: org.hibernate.cache.NoCacheProvider
1778 [main] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
1778 [main] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
1784 [main] INFO org.hibernate.cfg.SettingsFactory - Echoing all SQL to stdout
1785 [main] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
1785 [main] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
1786 [main] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
1786 [main] INFO org.hibernate.cfg.SettingsFactory - Named query checking : enabled
1786 [main] INFO org.hibernate.cfg.SettingsFactory - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
1868 [main] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
1882 [main] INFO org.hibernate.type.BasicTypeRegistry - Type registration [materialized_blob] overrides previous : org.hibernate.type.MaterializedBlobType#35fc6dc4
2572 [main] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
2584 [main] INFO org.hibernate.tool.hbm2ddl.SchemaExport - Running hbm2ddl schema export
2585 [main] INFO org.hibernate.tool.hbm2ddl.SchemaExport - exporting generated schema to database
2585 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaExport - schema export unsuccessful
java.sql.SQLException: No suitable driver found for jdbc:pstgresql://localhost:5432/hibernatedb
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51)
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:263)
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:219)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:372)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872)
at org.vishal.hibernate.HibernateTest2.main(HibernateTest2.java:12)
2659 [main] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 0, SQLState: 08001
2659 [main] ERROR org.hibernate.util.JDBCExceptionReporter - No suitable driver found for jdbc:pstgresql://localhost:5432/hibernatedb
Exception in thread "main" org.hibernate.exception.JDBCConnectionException: Cannot open connection
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:99)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:160)
at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:81)
at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1473)
at org.vishal.hibernate.HibernateTest2.main(HibernateTest2.java:14)
Caused by: java.sql.SQLException: No suitable driver found for jdbc:pstgresql://localhost:5432/hibernatedb
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
... 5 more
My hibernate configuration file looks like:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- Database Connection Settings
-->
<property name="connection.driver_class">org.postgresql.Driver</property>
<property name="connection.url">jdbc:pstgresql://localhost:5432/hibernatedb</property>
<property name="connection.username">admin</property>
<property name="connection.password">admin</property>
<!-- JDBC Connection pool (use the build-in) -->
<property name="connection.pool_size">1</property>
<!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
<!-- Disable Second level cache -->
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>
<!-- Drop and re-create the database on startup -->
<property name="hbm2ddl.auto">create</property>
<!-- Names the annotated entity class -->
<mapping class="org.SecondHibernateProject.dto.UserDetails" />
</session-factory>
</hibernate-configuration>
And the Main Java Class is as below:
package org.vishal.hibernate;
import org.SecondHibernateProject.dto.UserDetails;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;;
public class HibernateTest2 {
public static void main(String[] args) {
UserDetails user = new UserDetails();
user.setUserId(1);
user.setUserName("First User");
SessionFactory sessionFactory=new Configuration().configure().buildSessionFactory();
Session session= sessionFactory.openSession();
session.beginTransaction();
session.save(user);
session.getTransaction().commit();
}
}
Could you please refer the given steps to fix this issue.
To download the PostgreSQL jar from the given path as per version.
https://jdbc.postgresql.org/download.html
Add the jar to the project by using "external jar" option in eclipse.
Verify the classpath and URL path of PostgreSQL DB.
Make sure that the "hibernate.cfg.xml" file should be placed at the root of "src"
folder if you are using given code for reading this file.
SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
If the "hibernate.cfg.xml" located at a different location then read this file from the given path.
SessionFactory sessionFactory = new Configuration().configure("/path/to/hibernate.cfg.xml").buildSessionFactory();

UnresolvedAdressException milo

Im trying to connect from an basic Milo-Client (ReadSample), but getting UnresolvedAdressException. Both Client and Server are in an remote Network and I only got Access to the Client. I'm pretty sure its not a Firewall since I can Connect with other Clients (Prosys OPC UA Client) and i can see that the ip is resolved to an Host-Name in the Logs:
Server is opc.tcp://192.168.115.40:49580 aka opc.tcp://Extern-Mess-Rec:49580 (tried both in UaTcpStackClient.getEndpoints(url).get();)
13:24:51.530 [main] DEBUG
io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as
the default logging framework 13:24:51.546 [main] DEBUG
io.netty.channel.MultithreadEventLoopGroup -
-Dio.netty.eventLoopThreads: 8 13:24:51.561 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address:
available 13:24:51.561 [main] DEBUG
io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe:
available 13:24:51.561 [main] DEBUG
io.netty.util.internal.PlatformDependent0 -
sun.misc.Unsafe.copyMemory: available 13:24:51.561 [main] DEBUG
io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned:
true 13:24:51.561 [main] DEBUG
io.netty.util.internal.PlatformDependent - Platform: Windows
13:24:51.561 [main] DEBUG io.netty.util.internal.PlatformDependent -
Java version: 8 13:24:51.561 [main] DEBUG
io.netty.util.internal.PlatformDependent - -Dio.netty.noUnsafe: false
13:24:51.561 [main] DEBUG io.netty.util.internal.PlatformDependent -
sun.misc.Unsafe: available 13:24:51.561 [main] DEBUG
io.netty.util.internal.PlatformDependent - -Dio.netty.noJavassist:
false 13:24:51.686 [main] DEBUG
io.netty.util.internal.PlatformDependent - Javassist: available
13:24:51.686 [main] DEBUG io.netty.util.internal.PlatformDependent -
-Dio.netty.tmpdir: C:\Users\SOFTWA~1\AppData\Local\Temp\3 (java.io.tmpdir) 13:24:51.686 [main] DEBUG
io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64
(sun.arch.data.model) 13:24:51.686 [main] DEBUG
io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect:
false 13:24:51.718 [main] DEBUG io.netty.channel.nio.NioEventLoop -
-Dio.netty.noKeySetOptimization: false 13:24:51.718 [main] DEBUG io.netty.channel.nio.NioEventLoop -
-Dio.netty.selectorAutoRebuildThreshold: 512 13:24:51.858 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level:
simple 13:24:51.858 [main] DEBUG io.netty.util.ResourceLeakDetector -
-Dio.netty.leakDetection.maxRecords: 4 13:24:52.264 [main] DEBUG io.netty.buffer.PooledByteBufAllocator -
-Dio.netty.allocator.numHeapArenas: 8 13:24:52.264 [main] DEBUG io.netty.buffer.PooledByteBufAllocator -
-Dio.netty.allocator.numDirectArenas: 8 13:24:52.264 [main] DEBUG io.netty.buffer.PooledByteBufAllocator -
-Dio.netty.allocator.pageSize: 8192 13:24:52.264 [main] DEBUG io.netty.buffer.PooledByteBufAllocator -
-Dio.netty.allocator.maxOrder: 11 13:24:52.264 [main] DEBUG io.netty.buffer.PooledByteBufAllocator -
-Dio.netty.allocator.chunkSize: 16777216 13:24:52.264 [main] DEBUG io.netty.buffer.PooledByteBufAllocator -
-Dio.netty.allocator.tinyCacheSize: 512 13:24:52.264 [main] DEBUG io.netty.buffer.PooledByteBufAllocator -
-Dio.netty.allocator.smallCacheSize: 256 13:24:52.264 [main] DEBUG io.netty.buffer.PooledByteBufAllocator -
-Dio.netty.allocator.normalCacheSize: 64 13:24:52.264 [main] DEBUG io.netty.buffer.PooledByteBufAllocator -
-Dio.netty.allocator.maxCachedBufferCapacity: 32768 13:24:52.264 [main] DEBUG io.netty.buffer.PooledByteBufAllocator -
-Dio.netty.allocator.cacheTrimInterval: 8192 13:24:52.296 [main] DEBUG io.netty.util.internal.ThreadLocalRandom -
-Dio.netty.initialSeedUniquifier: 0x35f32988e43eab85 (took 10 ms) 13:24:52.327 [main] DEBUG io.netty.buffer.ByteBufUtil -
-Dio.netty.allocator.type: unpooled 13:24:52.327 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize:
65536 13:24:52.327 [main] DEBUG io.netty.buffer.ByteBufUtil -
-Dio.netty.maxThreadLocalCharBufferSize: 16384 13:24:52.358 [ua-netty-event-loop-0] DEBUG
io.netty.util.internal.JavassistTypeParameterMatcherGenerator -
Generated:
io.netty.util.internal.matchers.org.eclipse.milo.opcua.stack.client.handlers.UaRequestFutureMatcher 13:24:52.389 [ua-netty-event-loop-0] DEBUG
io.netty.buffer.AbstractByteBuf -
-Dio.netty.buffer.bytebuf.checkAccessible: true 13:24:52.858 [ua-netty-event-loop-0] DEBUG io.netty.util.Recycler -
-Dio.netty.recycler.maxCapacity.default: 262144 13:24:52.890 [ua-netty-event-loop-0] DEBUG
org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientAcknowledgeHandler
- Sent Hello message on channel=[id: 0xa0ec7fec, L:/130.83.225.169:58872 - R:/192.168.115.40:49580]. 13:24:52.905
[ua-netty-event-loop-0] DEBUG
org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientAcknowledgeHandler
- Received Acknowledge message on channel=[id: 0xa0ec7fec, L:/130.83.225.169:58872 - R:/192.168.115.40:49580]. 13:24:52.921
[ua-netty-event-loop-0] DEBUG
org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientMessageHandler
- OpenSecureChannel timeout scheduled for +5s 13:24:52.967 [ua-netty-event-loop-0] DEBUG
org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientMessageHandler
- OpenSecureChannel timeout canceled 13:24:52.967 [ua-shared-pool-0] DEBUG
org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientMessageHandler
- Sent OpenSecureChannelRequest (Issue, id=0, currentToken=-1, previousToken=-1). 13:24:52.999 [ua-shared-pool-1] DEBUG
org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientMessageHandler
- Received OpenSecureChannelResponse. 13:24:52.999 [ua-shared-pool-1] DEBUG
org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientMessageHandler
- SecureChannel id=1140, currentTokenId=1, previousTokenId=-1, lifetime=3600000ms, createdAt=DateTime{utcTime=131384570808248472,
javaDate=Fri May 05 13:24:40 CEST 2017} 13:24:52.999
[ua-netty-event-loop-0] DEBUG
org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientMessageHandler
- 0 message(s) queued before handshake completed; sending now. 13:24:52.999 [ForkJoinPool.commonPool-worker-1] DEBUG
org.eclipse.milo.opcua.stack.client.ClientChannelManager - Channel
bootstrap succeeded: localAddress=/130.83.225.169:58872,
remoteAddress=/192.168.115.40:49580 13:24:53.061
[ForkJoinPool.commonPool-worker-1] DEBUG
org.eclipse.milo.opcua.stack.client.ClientChannelManager - Sending
CloseSecureChannelRequest... 13:24:53.061 [main] INFO
org.eclipse.milo.examples.client.ClientExampleRunner - Using endpoint:
opc.tcp://Extern-Mess-Rec:49580 [None] 13:24:53.077
[ua-netty-event-loop-0] DEBUG
org.eclipse.milo.opcua.stack.client.ClientChannelManager -
channelInactive(), disconnect complete 13:24:53.077
[ua-netty-event-loop-0] DEBUG
org.eclipse.milo.opcua.stack.client.ClientChannelManager - disconnect
complete, state set to Idle 13:24:53.124 [main] DEBUG
org.eclipse.milo.opcua.sdk.client.OpcUaClient - Added
ServiceFaultListener:
org.eclipse.milo.opcua.sdk.client.ClientSessionManager$$Lambda$1049/664457955#58134517
13:24:53.171 [main] DEBUG
org.eclipse.milo.opcua.sdk.client.OpcUaClient - Added
SessionActivityListener:
org.eclipse.milo.opcua.sdk.client.subscriptions.OpcUaSubscriptionManager$1#2d2e5f00
13:24:55.592 [ForkJoinPool.commonPool-worker-1] DEBUG
org.eclipse.milo.opcua.stack.client.ClientChannelManager - Channel
bootstrap failed: null java.nio.channels.UnresolvedAddressException:
null
at sun.nio.ch.Net.checkAddress(Net.java:101)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:622)
at io.netty.channel.socket.nio.NioSocketChannel.doConnect(NioSocketChannel.java:209)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:207)
at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1279)
at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:453)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:439)
at io.netty.channel.ChannelDuplexHandler.connect(ChannelDuplexHandler.java:50)
at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:453)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:439)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:421)
at io.netty.channel.DefaultChannelPipeline.connect(DefaultChannelPipeline.java:1024)
at io.netty.channel.AbstractChannel.connect(AbstractChannel.java:203)
at io.netty.bootstrap.Bootstrap$2.run(Bootstrap.java:167)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:358)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:374)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
at java.lang.Thread.run(Thread.java:745) 13:24:55.608 [main] ERROR org.eclipse.milo.examples.client.ClientExampleRunner - Error
running client example: java.nio.channels.UnresolvedAddressException
java.util.concurrent.ExecutionException:
java.nio.channels.UnresolvedAddressException
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895)
at org.eclipse.milo.examples.client.ReadExample.run(ReadExample.java:43)
at org.eclipse.milo.examples.client.ClientExampleRunner.run(ClientExampleRunner.java:106)
at org.eclipse.milo.examples.client.ReadExample.main(ReadExample.java:35)
Caused by: java.nio.channels.UnresolvedAddressException: null
at sun.nio.ch.Net.checkAddress(Net.java:101)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:622)
at io.netty.channel.socket.nio.NioSocketChannel.doConnect(NioSocketChannel.java:209)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:207)
at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1279)
at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:453)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:439)
at io.netty.channel.ChannelDuplexHandler.connect(ChannelDuplexHandler.java:50)
at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:453)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:439)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:421)
at io.netty.channel.DefaultChannelPipeline.connect(DefaultChannelPipeline.java:1024)
at io.netty.channel.AbstractChannel.connect(AbstractChannel.java:203)
at io.netty.bootstrap.Bootstrap$2.run(Bootstrap.java:167)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:358)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:374)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
at java.lang.Thread.run(Thread.java:745)
The server you're getting endpoints from is probably returning "Extern-Mess-Rec" as its hostname, which you can't resolve.
See this answer for how to deal with that scenario.

Error after generating model

I wanted to lern xtext, for many years i lerned xpand and xtend and worked fine, but xtext seems to replaced the other both. And the xtext way looks fine to me.
As start i read follwing Tutorials: http://www.eclipse.org/Xtext/documentation/101_five_minutes.html, Including "15 Minutes Tutorial" and "15 Minutes Tutorial - Extended" and others. So i created a simple "Model"
grammar org.bs.test.Test with org.eclipse.xtext.common.Terminals
generate Test "http://www.bs.org/test/Test"
Test:
main=TMain;
TMain:
'main' name=ID
'done';
Generated on following way: "GenerateTest.mwe2" > right click > 'Run As' → 'MWE2 Workflow'.
Then made a copy of the Project. It was already my second or third try to find out what i made wrong.
Now i changed in the model following line: "main=TMain;" to "main=TMain?;". Then i used 'MWE2 Workflow' again, which run successful, but after running following happens:
Everthing files under 'src-gen/org/bs/test/Test/' and files in the subfolders 'impl' and 'util' are deleted. So they get deleted, then i copied the saved project and try following action on "Test.xtext" > right click > 'Run As' → 'Generate Xtext Artifacts', which result in the same.
There are two question for me:
1) What is the difference between "Generate Xtext Artifacts" and "MWE2 Workflow" and when did i do need them. I cannot figure that out on the Tutorial and especialy when to use them.
2) What did i wrong, and what i have to do to create generate the elements from the changed model
I could not find much on this, i hope someone could help me. I did not find something to both question.
EDIT 1:
When i create a complete new test project it works:
project name: org.test
name: org.test.MyTest
extensions: mytest
with following xtext:
grammar org.test.MyTest with org.eclipse.xtext.common.Terminals
generate myTest "http://www.test.org/MyTest"
Test:
main=TMain;
TMain:
'main' name=ID
'done'
But when i do the same with following input:
Project name: org.bs.craass
Name: org.bs.craass.CraAss
Extension: craass
xtext:
grammar org.bs.craass.CraAss with org.eclipse.xtext.common.Terminals
generate craAss "http://www.bs.org/craass/CraAss"
CraAss:
main=CAMain;
CAMain:
'main' name=ID
'done';
Later i will try following: install a new eclispe emf and create a new workspace.
EDIT2:
So i tested a new workspace, there it look liks, that it is working. Perhaps something with the old workspace. Like in a comment, in the orginal workspace, after i get a good "version", i wanted to put it on git (learning reason). Since then this not working anymore. Here some output of the generation:
0 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Registering platform uri 'C:\workspaces\emf_01'
401 [main] WARN lipse.emf.mwe.utils.StandaloneSetup - Skipping conflicting project org.bs.craass at 'file:/C:/workspaces/emf_01/org.bs.craass/' and using 'file:/C:/workspaces/emf_01/error_01/org.bs.craass/' instead.
926 [main] WARN lipse.emf.mwe.utils.StandaloneSetup - Skipping conflicting project org.bs.craass at 'file:/C:/workspaces/emf_01/error_01/org.bs.craass/' and using 'file:/C:/workspaces/emf_01/org.bs.craass/' instead.
939 [main] WARN lipse.emf.mwe.utils.StandaloneSetup - Skipping conflicting project org.bs.craass.sdk at 'file:/C:/workspaces/emf_01/error_01/org.bs.craass.sdk/' and using 'file:/C:/workspaces/emf_01/org.bs.craass.sdk/' instead.
970 [main] WARN lipse.emf.mwe.utils.StandaloneSetup - Skipping conflicting project org.bs.craass.tests at 'file:/C:/workspaces/emf_01/error_01/org.bs.craass.tests/' and using 'file:/C:/workspaces/emf_01/org.bs.craass.tests/' instead.
1090 [main] WARN lipse.emf.mwe.utils.StandaloneSetup - Skipping conflicting project org.bs.craass.ui at 'file:/C:/workspaces/emf_01/error_01/org.bs.craass.ui/' and using 'file:/C:/workspaces/emf_01/org.bs.craass.ui/' instead.
1749 [main] WARN lipse.emf.mwe.utils.StandaloneSetup - Skipping conflicting project org.bs.craass at 'file:/C:/workspaces/emf_01/org.bs.craass/' and using 'file:/C:/workspaces/emf_01/save_01/org.bs.craass/' instead.
1762 [main] WARN lipse.emf.mwe.utils.StandaloneSetup - Skipping conflicting project org.bs.craass.sdk at 'file:/C:/workspaces/emf_01/org.bs.craass.sdk/' and using 'file:/C:/workspaces/emf_01/save_01/org.bs.craass.sdk/' instead.
1820 [main] WARN lipse.emf.mwe.utils.StandaloneSetup - Skipping conflicting project org.bs.craass.tests at 'file:/C:/workspaces/emf_01/org.bs.craass.tests/' and using 'file:/C:/workspaces/emf_01/save_01/org.bs.craass.tests/' instead.
2082 [main] WARN lipse.emf.mwe.utils.StandaloneSetup - Skipping conflicting project org.bs.craass.ui at 'file:/C:/workspaces/emf_01/org.bs.craass.ui/' and using 'file:/C:/workspaces/emf_01/save_01/org.bs.craass.ui/' instead.
2577 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Adding generated EPackage 'org.eclipse.xtext.xbase.XbasePackage'
4253 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/Xtext/Xbase/XAnnotations' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
4265 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/xbase/Xtype' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
4335 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/xbase/Xbase' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
4335 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/common/JavaVMTypes' from 'platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel'
6234 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Adding generated EPackage 'org.eclipse.xtext.common.types.TypesPackage'
6267 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning C:\workspaces\emf_01\org.bs.craass\..\org.bs.craass\src-gen
6326 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning C:\workspaces\emf_01\org.bs.craass\..\org.bs.craass\model\generated
6330 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning C:\workspaces\emf_01\org.bs.craass\..\org.bs.craass.ui\src-gen
6378 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning C:\workspaces\emf_01\org.bs.craass\..\org.bs.craass.tests\src-gen
9146 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.bs.org/craass/CraAss' from 'file:/C:/workspaces/emf_01/org.bs.craass/model/generated/CraAss.genmodel'
15709 [main] INFO text.generator.junit.Junit4Fragment - generating Junit4 Test support classes
15731 [main] INFO text.generator.junit.Junit4Fragment - generating Compare Framework infrastructure
15973 [main] INFO .emf.mwe2.runtime.workflow.Workflow - Done.
I compared with a run in a other workspace, and the WARN, does not come there. To be hornest, i ignored first, because it was "only" warnings. A run that runs successful:
0 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Registering platform uri 'C:\workspaces\emf'
541 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Adding generated EPackage 'org.eclipse.xtext.xbase.XbasePackage'
1020 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/Xtext/Xbase/XAnnotations' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
1031 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/xbase/Xtype' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
1064 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/xbase/Xbase' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
1064 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/common/JavaVMTypes' from 'platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel'
2307 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Adding generated EPackage 'org.eclipse.xtext.common.types.TypesPackage'
2355 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning C:\workspaces\emf\org.bs.craass\..\org.bs.craass\src-gen
2382 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning C:\workspaces\emf\org.bs.craass\..\org.bs.craass\model\generated
2390 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning C:\workspaces\emf\org.bs.craass\..\org.bs.craass.ui\src-gen
2407 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning C:\workspaces\emf\org.bs.craass\..\org.bs.craass.tests\src-gen
4446 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.bs.org/craass/CraAss' from 'platform:/resource/org.bs.craass/model/generated/CraAss.genmodel'
11647 [main] INFO text.generator.junit.Junit4Fragment - generating Junit4 Test support classes
11719 [main] INFO text.generator.junit.Junit4Fragment - generating Compare Framework infrastructure
11997 [main] INFO .emf.mwe2.runtime.workflow.Workflow - Done.
So far the stand of my troubleshooting.
EDIT 3:
I do not know why, but it accept now the old xtext file i created and while running it occurs following error (but seems to have no big impact), complete log:
0 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Registering platform uri 'C:\workspaces\emf'
664 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Adding generated EPackage 'org.eclipse.xtext.xbase.XbasePackage'
1864 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/Xtext/Xbase/XAnnotations' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
1882 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/xbase/Xtype' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
1987 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/xbase/Xbase' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
1987 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/common/JavaVMTypes' from 'platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel'
3982 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Adding generated EPackage 'org.eclipse.xtext.common.types.TypesPackage'
4018 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning C:\workspaces\emf\org.bs.craass\..\org.bs.craass\src-gen
4061 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning C:\workspaces\emf\org.bs.craass\..\org.bs.craass\model\generated
4064 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning C:\workspaces\emf\org.bs.craass\..\org.bs.craass.ui\src-gen
4087 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning C:\workspaces\emf\org.bs.craass\..\org.bs.craass.tests\src-gen
7153 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.bs.org/craass/CraAss' from 'platform:/resource/org.bs.craass/model/generated/CraAss.genmodel'
error(208): ../org.bs.craass/src-gen/org/bs/craass/parser/antlr/internal/InternalCraAss.g:1199:1: The following token definitions can never be matched because prior tokens match the same input: RULE_INT
error(208): ../org.bs.craass.ui/src-gen/org/bs/craass/ui/contentassist/antlr/internal/InternalCraAss.g:2688:1: The following token definitions can never be matched because prior tokens match the same input: RULE_INT
16642 [main] INFO text.generator.junit.Junit4Fragment - generating Junit4 Test support classes
16661 [main] INFO text.generator.junit.Junit4Fragment - generating Compare Framework infrastructure
16804 [main] INFO .emf.mwe2.runtime.workflow.Workflow - Done.
The trouble seems, that i have following:
grammar org.bs.craass.CraAss with org.eclipse.xtext.common.Terminals
but on the other side:
terminal INTEGER : '-'?('0'..'9')+;
terminal VAR_TERMINAL : '_' ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
terminal REGISTER_TERMINAL : ('ax' | 'bx' );
terminal FUNCTION_TERMINAL : (('a'..'z'|'_'|'0'..'9')*'.')?('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
And in the org.eclipse.xtext.common.Terminals is
terminal INT returns ecore::EInt: ('0'..'9')+;
But i have no what to do with it.
The Problem itself, while generating everthing in srce-gen/, except the generated java files under src-gen/org.bs.craass.craAss and subfolder. Now there are created, too. So more i try to find out, so less the error was reproducable. Well, i will see, when i push it to git again, perhaps the error comes back.
So far thanks
running the workflow directly or calling generate language artefacts does the very same. the workflow reads your Xtext file and generates all infrastructure Xtext provides for your language. thus you have to call it if you change your grammar or the workflow itself. if you have a misconfiguration on your language or a broken grammar the generation may fail. also the workflow may refer to project names which may have to be adopted as well (dont know how you do the copy and paste - you should use the Xtext Project wizard to create the project to be safe)

Oracle Enterprise Manager 12c Installation error on Oracle Enterprise Linux 6

I have Oracle Enterprise Linux 6 Update 5 installed as an OS, and installed Oracle Database 12c. Using SQL Developer, I am able to confirm that the Database is working fine. I have even had success connecting to the database from another computer in the institution using SQL Developer and my local address (172.16.5.40). I tried to install Oracle Enterprise Manager 12c, and run into the following error:
INFO: oracle.sysman.top.oms:About to execute plug-in Start Oracle Management Service
INFO: oracle.sysman.top.oms:The plug-in Start Oracle Management Service is running
INFO: oracle.sysman.top.oms:Internal PlugIn Class: oracle.sysman.oms.StartOMS
INFO: oracle.sysman.top.oms:Classpath = /u01/app/oracle/em/middleware/oms/sysman/jlib/omsConfig.jar:/u01/app/oracle/em/middleware/oms/jdbc/lib/ojdbc6.jar:/u01/app/oracle/em/middleware/oms/sysman/jlib/emcore_client.jar:/u01/app/oracle/em/middleware/oms/../modules/com.bea.core.apache.log4j_1.2.13.jar:/u01/app/oracle/em/middleware/oms/jlib/rcucommon.jar:/u01/app/oracle/em/middleware/oms/jdbc/lib/ojdbc6.jar:/u01/app/oracle/em/middleware/oms/sysman/jlib/emagentSDK.jar:/u01/app/oracle/em/middleware/oms/../oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar:/u01/app/oracle/em/middleware/oms/../oracle_common/modules/oracle.odl_11.1.1/ojdl.jar:/u01/app/oracle/em/middleware/oms/../oracle_common/modules/oracle.xdk_11.1.0/xml.jar:/u01/app/oracle/em/middleware/oms/../oracle_common/modules/oracle.jdbc_11.1.1/ojdbc6dms.jar:/u01/app/oracle/em/middleware/oms/../oracle_common/modules/oracle.dms_11.1.1/dms.jar:/u01/app/oracle/em/middleware/oms/../oracle_common/modules/oracle.odl_11.1.1/ojdl.jar:/u01/app/oracle/em/middleware/oms/jlib/rcu.jar
INFO: oracle.sysman.top.oms:BaseConfiguration:invoke:Starting BaseConfiguration invoke method on an aggregate=oracle.sysman.top.oms for Action=configuration in step=12:microstep=0
INFO: oracle.sysman.top.oms:Fetching the ports from staticports.ini file: /u01/app/oracle/em/middleware/.gcinstall_temp/staticports.ini
INFO: oracle.sysman.top.oms:Starting OMS ...
INFO: oracle.sysman.top.oms:Executing command: /u01/app/oracle/em/middleware/oms/bin/emctl start oms
INFO: oracle.sysman.top.oms:Oracle Enterprise Manager Cloud Control 12c Release 3
INFO: oracle.sysman.top.oms:Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
INFO: oracle.sysman.top.oms:Starting Oracle Management Server...
INFO: oracle.sysman.top.oms:Starting WebTier...
INFO: oracle.sysman.top.oms:WebTier Could Not Be Started
INFO: oracle.sysman.top.oms:Error Occurred: WebTier Could Not Be Started
INFO: oracle.sysman.top.oms:Please check /u01/app/oracle/em/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log for error details
SEVERE: oracle.sysman.top.oms:Starting of OMS failed.
INFO: oracle.sysman.top.oms:Starting export oms config...
INFO: oracle.sysman.top.oms:Executing command: /u01/app/oracle/em/middleware/oms/bin/emctl exportconfig oms -keep_host -dir /u01/app/oracle/em/gc_inst/em/EMGC_OMS1/sysman/backup
INFO: oracle.sysman.top.oms:Oracle Enterprise Manager Cloud Control 12c Release 3
INFO: oracle.sysman.top.oms:Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
INFO: oracle.sysman.top.oms:Enter Enterprise Manager Root (SYSMAN) Password : Enter Enterprise Manager Root (SYSMAN) Password : ExportConfig started...
INFO: oracle.sysman.top.oms:Machine is Admin Server host. Performing Admin Server backup...
INFO: oracle.sysman.top.oms:Exporting emoms properties...
INFO: oracle.sysman.top.oms:Exporting secure properties...
INFO: oracle.sysman.top.oms:
INFO: oracle.sysman.top.oms:Export has determined that the OMS is not fronted
INFO: oracle.sysman.top.oms:by an SLB. You have chosen to export the local
INFO: oracle.sysman.top.oms:hostname. The exported data may ONLY be imported
INFO: oracle.sysman.top.oms:on a host with the same hostname. Please see the
INFO: oracle.sysman.top.oms:EM Advanced Configuration Guide for more details.
INFO: oracle.sysman.top.oms:
INFO: oracle.sysman.top.oms:Exporting configuration for pluggable modules...
INFO: oracle.sysman.top.oms:Preparing archive file...
INFO: oracle.sysman.top.oms:Backup has been written to file: /u01/app/oracle/em/gc_inst/em/EMGC_OMS1/sysman/backup/opf_ADMIN_20140128_134121.bka
INFO: oracle.sysman.top.oms:
INFO: oracle.sysman.top.oms:The export file contains sensitive data.
INFO: oracle.sysman.top.oms: You must keep it secure.
INFO: oracle.sysman.top.oms:
INFO: oracle.sysman.top.oms:ExportConfig completed successfully!
INFO: oracle.sysman.top.oms:Export config of OMS is successful.
INFO: oracle.sysman.top.oms:The plug-in Start Oracle Management Service has failed its perform method
emctl.log:
2014-01-28 17:05:01,727 [main] INFO wls.OMSController main.219 - Executing emctl command : start
2014-01-28 17:05:16,102 [main] INFO util.EmctlUtil logp.251 - Output messages of the command :
opmnctl stopall: stopping opmn and all managed processes...
2014-01-28 17:05:16,102 [main] INFO util.EmctlUtil logp.251 - error messages of the command :
2014-01-28 17:07:18,004 [main] INFO util.EmctlUtil logp.251 - Output messages of the command :
opmnctl startall: starting opmn and all managed processes...
2014-01-28 17:07:18,005 [main] INFO util.EmctlUtil logp.251 - error messages of the command :
================================================================================
opmn id=OracleServer.Compsci:6701
Response: 0 of 1 processes started.
ias-instance id=instance1
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--------------------------------------------------------------------------------
ias-component/process-type/process-set:
ohs1/OHS/OHS/
Error
--> Process (index=1,uid=163667581,pid=5583)
time out while waiting for a managed process to start
Log:
/u01/app/oracle/em/gc_inst/WebTierIH1/diagnostics/logs/OHS/ohs1/console~OHS~1.log
2014-01-28 17:07:18,005 [main] ERROR commands.BaseCommand logAndPrint.620 - WebTier Could Not Be Started
2014-01-28 17:07:18,006 [main] ERROR wls.OMSController main.252 - OMSController failed for start oms
2014-01-28 17:07:18,008 [main] ERROR wls.OMSController main.253 - OMSController Error: WebTier Could Not Be Started
java.lang.Exception: WebTier Could Not Be Started
at oracle.sysman.emctl.commands.StartCommand.startOMS(StartCommand.java:257)
at oracle.sysman.emctl.commands.StartCommand.execute(StartCommand.java:155)
at oracle.sysman.emctl.wls.OMSController.main(OMSController.java:233)
2014-01-28 17:07:19,187 [main] DEBUG ctxt.CommandContext trace.419 - Starting processing of arguments
2014-01-28 17:07:19,190 [main] DEBUG ctxt.CommandContext trace.419 - Option keep_host entered
2014-01-28 17:07:19,190 [main] DEBUG ctxt.CommandContext trace.419 - Value of option dir specified as /u01/app/oracle/em/gc_inst/em/EMGC_OMS1/sysman/backup
2014-01-28 17:07:19,191 [main] DEBUG ctxt.CommandContext trace.419 - Done processing options passed on command line
2014-01-28 17:07:19,191 [main] DEBUG ctxt.CommandContext trace.419 - Checking if mandatory params are passed.
2014-01-28 17:07:19,191 [main] DEBUG ctxt.CommandContext trace.419 - Reading value of password option sysman_pwd
2014-01-28 17:07:19,230 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - ExportConfig started...
2014-01-28 17:07:19,230 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - oracle home is /u01/app/oracle/em/middleware/oms
2014-01-28 17:07:19,231 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - instance home is /u01/app/oracle/em/gc_inst/em/EMGC_OMS1
2014-01-28 17:07:19,231 [main] DEBUG ctxt.CommandContext trace.419 - Validating CommandContext and setting default values
2014-01-28 17:07:19,232 [main] DEBUG ctxt.CommandContext trace.419 - Setting optional parameter oms_only to default value false
2014-01-28 17:07:19,238 [main] INFO oms.AdminCredsWalletUtil setInstanceHome.177 - Getting credentials from wallet
2014-01-28 17:07:19,685 [main] INFO oms.AdminCredsWalletUtil setInstanceHome.192 - Read the credentials from wallet
2014-01-28 17:07:19,685 [main] INFO util.EmctlUtil logp.251 - Connecting over t3s to: OracleServer.Compsci/7102 using id: weblogic
2014-01-28 17:07:22,059 [main] INFO mas.CredStoreUtil logp.251 - getCredential : Got creds for mapName -EM keyName - REPOS_DETAILS
2014-01-28 17:07:23,134 [main] INFO mas.CredStoreUtil logp.251 - getCredential : Got creds for mapName -EM keyName - ENCR_DETAILS
2014-01-28 17:07:23,839 [main] INFO oms.HAUtil verifyReposPwd.95 - Sysman password is valid
2014-01-28 17:07:23,840 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - sysman password validated
2014-01-28 17:07:23,841 [main] INFO oms.AdminCredsWalletUtil setInstanceHome.177 - Getting credentials from wallet
2014-01-28 17:07:23,886 [main] INFO oms.AdminCredsWalletUtil setInstanceHome.192 - Read the credentials from wallet
2014-01-28 17:07:23,886 [main] INFO util.EmctlUtil logp.251 - Connecting over t3s to: OracleServer.Compsci/7102 using id: weblogic
2014-01-28 17:07:23,915 [main] INFO mas.CredStoreUtil logp.251 - getCredential : Got creds for mapName -EM keyName - REPOS_DETAILS
2014-01-28 17:07:23,969 [main] INFO mas.CredStoreUtil logp.251 - getCredential : Got creds for mapName -EM keyName - ENCR_DETAILS
2014-01-28 17:07:24,689 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - Admin backup is true
2014-01-28 17:07:26,395 [main] INFO script.ScriptExecutor output.2119 - read domain from "/u01/app/oracle/em/gc_inst/user_projects/domains/GCDomain"
2014-01-28 17:07:31,898 [main] INFO script.ScriptExecutor output.2119 - succeed: read domain from "/u01/app/oracle/em/gc_inst/user_projects/domains/GCDomain"
2014-01-28 17:07:32,136 [main] INFO script.ScriptExecutor output.2119 - find Server "EMGC_ADMINSERVER" as obj0
2014-01-28 17:07:32,231 [main] INFO script.ScriptExecutor output.2119 - succeed: find Server "EMGC_ADMINSERVER" as obj0
2014-01-28 17:07:32,323 [main] INFO script.ScriptExecutor output.2119 - find Server "EMGC_OMS1" as obj1
2014-01-28 17:07:32,325 [main] INFO script.ScriptExecutor output.2119 - succeed: find Server "EMGC_OMS1" as obj1
2014-01-28 17:07:32,338 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - admin backup cmd is /u01/app/oracle/em/middleware/oms/bin/zip -q -r -9 /u01/app/oracle/em/gc_inst/em/EMGC_OMS1/sysman/backup/GCDomain_backup.zip user_projects -x user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/tmp* -x user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/logs* -x user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/adr* -x user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/*.log* -x user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/*.trc* -x user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/*.lck* -x user_projects/domains/GCDomain/servers/EMGC_OMS1/tmp* -x user_projects/domains/GCDomain/servers/EMGC_OMS1/logs* -x user_projects/domains/GCDomain/servers/EMGC_OMS1/adr* -x user_projects/domains/GCDomain/servers/EMGC_OMS1/*.log* -x user_projects/domains/GCDomain/servers/EMGC_OMS1/*.trc* -x user_projects/domains/GCDomain/servers/EMGC_OMS1/*.lck*
2014-01-28 17:07:37,168 [main] INFO oms.ExportConfigOMSCmds logp.251 - zip exited with code 0
2014-01-28 17:07:37,168 [main] INFO oms.ExportConfigOMSCmds logp.251 - whether admin pack failed: false
2014-01-28 17:07:37,169 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - admin server backup completed successfully
2014-01-28 17:07:37,169 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - Export readme file is /u01/app/oracle/em/gc_inst/em/EMGC_OMS1/sysman/backup/plugins.list
2014-01-28 17:07:37,260 [main] DEBUG deploymentservice.EMPluginDeploymentUtil logp.251 - Version obtained from configmanager 12.1.0.3.0
2014-01-28 17:07:37,261 [main] DEBUG deploymentservice.EMPluginDeploymentUtil logp.251 - Unique OMS key obtained/generated = GCDomain#EMGC_OMS1#12.1.0.3.0
2014-01-28 17:07:37,275 [main] DEBUG deploymentservice.EMPluginDeploymentUtil logp.251 - Returning OMS GUID: 69258938A596AB98276D063F08AD4BE0
2014-01-28 17:07:37,282 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.971 - Fetching plugins for OMS 69258938A596AB98276D063F08AD4BE0
2014-01-28 17:07:37,408 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.sysman.emas:12.1.0.5.0
2014-01-28 17:07:37,409 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.sysman.mos:12.1.0.5.0
2014-01-28 17:07:37,410 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.em.satc:12.1.0.2.0
2014-01-28 17:07:37,410 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.sysman.db:12.1.0.5.0
2014-01-28 17:07:37,410 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.sysman.xa:12.1.0.5.0
2014-01-28 17:07:37,410 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.em.secl:12.1.0.2.0
2014-01-28 17:07:37,410 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.em.secs:12.1.0.2.0
2014-01-28 17:07:37,411 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.em.sesy:12.1.0.2.0
2014-01-28 17:07:37,411 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.em.soee:12.1.0.2.0
2014-01-28 17:07:37,411 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.em.sidb:12.1.0.2.0
2014-01-28 17:07:37,412 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.em.smdn:12.1.0.2.0
2014-01-28 17:07:37,412 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.sysman.emct:12.1.0.5.0
2014-01-28 17:07:37,412 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.em.sehc:12.1.0.4.0
2014-01-28 17:07:37,412 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.sysman.smf:12.1.0.3.0
2014-01-28 17:07:37,412 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.em.sovn:12.1.0.2.0
2014-01-28 17:07:37,413 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.sysman.vt:12.1.0.5.0
2014-01-28 17:07:37,413 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.sysman.emfa:12.1.0.5.0
2014-01-28 17:07:37,413 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.sysman.empa:12.1.0.4.0
2014-01-28 17:07:37,413 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.em.smad:12.1.0.1.0
2014-01-28 17:07:37,413 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.em.smbs:12.1.0.1.0
2014-01-28 17:07:37,415 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.em.smis:12.1.0.2.0
2014-01-28 17:07:37,415 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.em.smss:12.1.0.3.0
2014-01-28 17:07:37,416 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.em.soav:12.1.0.4.0
2014-01-28 17:07:37,416 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.em.savf:12.1.0.1.0
2014-01-28 17:07:37,416 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.sysman.bda:12.1.0.3.0
2014-01-28 17:07:37,416 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.sysman.ssa:12.1.0.7.0
2014-01-28 17:07:37,416 [main] DEBUG inventory.EMPluginInventoryManager getAllPluginsDeployed.990 - Obtained plugin for this oms: oracle.em.ssad:12.1.0.2.0
2014-01-28 17:07:37,418 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - Backup is being written to file: /u01/app/oracle/em/gc_inst/em/EMGC_OMS1/sysman/backup/export.properties
2014-01-28 17:07:37,421 [main] INFO oms.AdminCredsWalletUtil setInstanceHome.177 - Getting credentials from wallet
2014-01-28 17:07:37,443 [main] INFO oms.AdminCredsWalletUtil setInstanceHome.192 - Read the credentials from wallet
2014-01-28 17:07:37,444 [main] INFO util.EmctlUtil logp.251 - Connecting over t3s to: OracleServer.Compsci/7102 using id: weblogic
2014-01-28 17:07:37,476 [main] INFO mas.CredStoreUtil logp.251 - getCredential : Got creds for mapName -EM keyName - REPOS_DETAILS
2014-01-28 17:07:37,614 [main] INFO mas.CredStoreUtil logp.251 - getCredential : Got creds for mapName -EM keyName - ENCR_DETAILS
2014-01-28 17:07:37,972 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - Retrieving java callbacks from em_gcha_callbacks table
2014-01-28 17:07:37,988 [main] INFO oms.HAUtil addJarsInClassLoader.464 - Added jar /u01/app/oracle/em/middleware/oms/sysman/jlib/emCORE.jar to classpath
2014-01-28 17:07:38,018 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - executing java callback: oracle.sysman.core.ocm.gcha.OCMHACallbacks
2014-01-28 17:07:38,021 [main] INFO oms.ExportConfigOMSCmds logp.251 - Got export data from callback module ocm
2014-01-28 17:07:38,021 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - preparing archive file
2014-01-28 17:07:38,022 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - Adding: /u01/app/oracle/em/gc_inst/em/EMGC_OMS1/sysman/backup/GCDomain_backup.zip
2014-01-28 17:07:38,622 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - Adding: /u01/app/oracle/em/gc_inst/em/EMGC_OMS1/sysman/backup/plugins.list
2014-01-28 17:07:38,623 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - Adding: /u01/app/oracle/em/middleware/oms/sysman/prov/agentpush/agentpush.properties
2014-01-28 17:07:38,632 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - Adding: /u01/app/oracle/em/gc_inst/em/EMGC_OMS1/sysman/backup/export.properties
2014-01-28 17:07:38,633 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - Adding:
2014-01-28 17:07:38,633 [main] ERROR oms.ExportConfigOMSCmds logp.251 - Error reading file: . Skip file for archive.
2014-01-28 17:07:38,651 [main] INFO oms.AdminCredsWalletUtil setInstanceHome.177 - Getting credentials from wallet
2014-01-28 17:07:38,675 [main] INFO oms.AdminCredsWalletUtil setInstanceHome.192 - Read the credentials from wallet
2014-01-28 17:07:38,676 [main] INFO util.EmctlUtil logp.251 - Connecting over t3s to: OracleServer.Compsci/7102 using id: weblogic
2014-01-28 17:07:38,708 [main] INFO mas.CredStoreUtil logp.251 - getCredential : Got creds for mapName -EM keyName - REPOS_DETAILS
2014-01-28 17:07:38,772 [main] INFO mas.CredStoreUtil logp.251 - getCredential : Got creds for mapName -EM keyName - ENCR_DETAILS
2014-01-28 17:07:38,958 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - ExportConfig succeeded!
console~OHS~1.log:
--------
14/01/28 17:05:18 Start process
--------
/u01/app/oracle/em/middleware/Oracle_WT/ohs/bin/apachectl startssl: execing httpd
[Tue Jan 28 17:05:18 2014] [warn] Errors will be logged into /u01/app/oracle/em/gc_inst/WebTierIH1/diagnostics/logs/OHS/ohs1/ohs1.log
[Tue Jan 28 17:05:19 2014] [warn] Errors will be logged into /u01/app/oracle/em/gc_inst/WebTierIH1/diagnostics/logs/OHS/ohs1/ohs1.log
Audit init
Unable to resolve address for localhost:6700
ONS runtime exiting
--------
14/01/28 17:07:18 Stop process
--------
/u01/app/oracle/em/middleware/Oracle_WT/ohs/bin/apachectl stop: httpd stopped
ohs1.log:
[2014-01-28T17:05:20.2995-05:00] [OHS] [NOTIFICATION:16] [OHS-9999] [mod_weblogic.c] [host_id: OracleServer.Compsci] [host_addr: 127.0.0.1] [pid: 5583] [tid: 139855446157120] [user: oracle] [VirtualHost: main] WebLogic Server Plugin version 1.1 <WLSPLUGINS_11.1.1.6.0_LINUX.X64_111122.1115.0001>
[2014-01-28T17:05:20.5147-05:00] [OHS] [NOTIFICATION:16] [OHS-9999] [core.c] [host_id: OracleServer.Compsci] [host_addr: 127.0.0.1] [pid: 5583] [tid: 139855446157120] [user: oracle] [VirtualHost: main] Oracle-Application-Server-11g/11.1.1.6.0 Oracle-HTTP-Server (Unix) mod_ssl/11.0.0.0.0 OtherSSL/0.0.0 mod_plsql/11.1.1.0.0 mod_onsint/2.0 configured -- resuming normal operations
[2014-01-28T17:07:19.3932-05:00] [OHS] [NOTIFICATION:16] [OHS-9999] [core.c] [host_id: OracleServer.Compsci] [host_addr: 127.0.0.1] [pid: 5583] [tid: 139855446157120] [user: oracle] [VirtualHost: main] caught SIGTERM, shutting down
my hosts file contains 3 entries:
127.0.0.1 OracleServer.Compsci OracleServer
172.16.5.40 OralceServer.Compsci OracleServer
::1 OracleServer.Compsci OracleServer
Make sure that you have altered your hosts file to look someting like this :
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
11.111.1.111 srv01.com srv01
And you can ping the srv01 and that 11.111.1.111 will respond.
Make sure that the 6700 port is not in use by any process.