Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • SmartClient Evaluation version 11.1: Error while running start_embedded_server.bat file

    As per the steps mentioned in readme.txt: ../SmartClient_v111p_2017-11-01_Evaluation/SmartClient_v111p_2017-11-01_Evaluation/smartclientSDK/docs/readme.html

    When I invoke the batch file start_embedded_server.bat, I get the following error message. Since there are no listeners on the mentioned port, call to http://localhost:8080/ gives 404 error.

    Due to the following error, I am not able to proceed further with the smartClient.

    SEVERE: Exception sending context initialized event to listener instance of clas
    s [org.springframework.web.context.ContextLoaderListener]
    org.springframework.beans.factory.BeanCreationException: Error creating bean wit
    h name 'supplyItemDao' defined in ServletContext resource [/WEB-INF/applicationC
    ontext.xml]: Cannot resolve reference to bean 'txManager' while setting bean pro
    perty 'transactionManager'; nested exception is org.springframework.beans.factor
    y.BeanCreationException: Error creating bean with name 'txManager' defined in Se
    rvletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve referenc
    e to bean 'hibernateSessionFactory' while setting bean property 'sessionFactory'
    ; nested exception is org.springframework.beans.factory.BeanCreationException: E
    rror creating bean with name 'hibernateSessionFactory' defined in ServletContext
    resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; n
    ested exception is org.hibernate.HibernateException: Unable to get the default B
    ean Validation factory
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java:359)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFactory.java:483)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
    ject(AbstractBeanFactory.java:306)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
    y.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
    an(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
    (AbstractBeanFactory.java:197)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.
    preInstantiateSingletons(DefaultListableBeanFactory.java:742)
    at org.springframework.context.support.AbstractApplicationContext.finish
    BeanFactoryInitialization(AbstractApplicationContext.java:867)
    at org.springframework.context.support.AbstractApplicationContext.refres
    h(AbstractApplicationContext.java:543)
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebA
    pplicationContext(ContextLoader.java:443)
    at org.springframework.web.context.ContextLoader.initWebApplicationConte
    xt(ContextLoader.java:325)
    at org.springframework.web.context.ContextLoaderListener.contextInitiali
    zed(ContextLoaderListener.java:107)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
    t.java:4745)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContex
    t.java:5207)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.
    java:1419)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.
    java:1409)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo
    lExecutor.java:1167)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo
    olExecutor.java:641)
    at java.base/java.lang.Thread.run(Thread.java:844)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
    ng bean with name 'txManager' defined in ServletContext resource [/WEB-INF/appli
    cationContext.xml]: Cannot resolve reference to bean 'hibernateSessionFactory' w
    hile setting bean property 'sessionFactory'; nested exception is org.springframe
    work.beans.factory.BeanCreationException: Error creating bean with name 'hiberna
    teSessionFactory' defined in ServletContext resource [/WEB-INF/applicationContex
    t.xml]: Invocation of init method failed; nested exception is org.hibernate.Hibe
    rnateException: Unable to get the default Bean Validation factory
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java:359)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFactory.java:483)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
    ject(AbstractBeanFactory.java:306)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
    y.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
    an(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
    (AbstractBeanFactory.java:197)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java:351)
    ... 24 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
    ng bean with name 'hibernateSessionFactory' defined in ServletContext resource [
    /WEB-INF/applicationContext.xml]: Invocation of init method failed; nested excep
    tion is org.hibernate.HibernateException: Unable to get the default Bean Validat
    ion factory
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFactory.java:483)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
    ject(AbstractBeanFactory.java:306)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
    y.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
    an(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
    (AbstractBeanFactory.java:197)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java:351)
    ... 34 more
    Caused by: org.hibernate.HibernateException: Unable to get the default Bean Vali
    dation factory
    at org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(Bea
    nValidationActivator.java:127)
    at org.hibernate.cfg.Configuration.applyBeanValidationConstraintsOnDDL(C
    onfiguration.java:1704)
    at org.hibernate.cfg.Configuration.applyConstraintsToDDL(Configuration.j
    ava:1654)
    at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:
    1445)
    at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1375
    )
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessi
    onFactory(LocalSessionFactoryBean.java:660)
    at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPr
    opertiesSet(AbstractSessionFactoryBean.java:191)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
    ... 41 more
    Caused by: java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nativ
    e Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native
    MethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(De
    legatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(Bea
    nValidationActivator.java:118)
    ... 49 more
    Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    at org.hibernate.validator.engine.ConfigurationImpl.parseValidationXml(C
    onfigurationImpl.java:252)
    at org.hibernate.validator.engine.ConfigurationImpl.buildValidatorFactor
    y(ConfigurationImpl.java:143)
    at javax.validation.Validation.buildDefaultValidatorFactory(Validation.j
    ava:111)
    at org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactor
    y(TypeSafeActivator.java:380)
    at org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyDDL(TypeSafeA
    ctivator.java:109)
    ... 54 more
    Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClas
    sLoaderBase.java:1291)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClas
    sLoaderBase.java:1119)
    ... 59 more

    Nov 02, 2017 10:28:09 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: One or more listeners failed to start. Full details will be found in the
    appropriate container log file
    Nov 02, 2017 10:28:09 AM org.apache.catalina.util.SessionIdGeneratorBase createS
    ecureRandom
    WARNING: Creation of SecureRandom instance for session ID generation using [SHA1
    PRNG] took [167] milliseconds.
    Nov 02, 2017 10:28:09 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Context [] startup failed due to previous errors
    Nov 02, 2017 10:28:09 AM org.apache.catalina.core.ApplicationContext log
    INFO: Closing Spring root WebApplicationContext
    Nov 02, 2017 10:28:09 AM org.apache.catalina.loader.WebappClassLoaderBase clearR
    eferencesJdbc
    WARNING: The web application [ROOT] registered the JDBC driver [org.hsqldb.jdbc.
    JDBCDriver] but failed to unregister it when the web application was stopped. To
    prevent a memory leak, the JDBC Driver has been forcibly unregistered.
    Nov 02, 2017 10:28:09 AM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-nio-8080"]

  • Isomorphic
    replied
    This configuration is for a sample, so your SDK will be functional except for this sample.

    However, all of the files necessary for this sample are in fact present in the SDK and we continue to be unable to reproduce any problem - nor do we have anyone else reporting an issue with the SDK.

    We suspect something simple happened, such as, your disk was full when extracting the .zip archive so some files never made it.

    Leave a comment:


  • nmurthy
    replied
    On further debugging, I found that issue is due to the following snippet defined in WEB-INF/applicationContext.xml. After commenting the below block of code, I was able to launch SmartClient Evaluation edition successfully. I have not removed any jars from the downloaded package, I do see 'hibernate3' jar in lib location. Please let me know if any change is required in the above mentioned xml file.

    <bean id="supplyItemDaoTarget" class="com.isomorphic.examples.spring.SupplyItemDao">
    <property name="sessionFactory" ref="hibernateSessionFactory"/>
    </bean>

    <!-- Transaction proxy for supplyItemDMI -->
    <bean id="supplyItemDao" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
    <property name="transactionManager" ref="txManager"/>
    <property name="target" ref="supplyItemDaoTarget"/>
    <property name="transactionAttributes">
    <props>
    <prop key="fetch">PROPAGATION_REQUIRED</prop>
    <prop key="add">PROPAGATION_REQUIRED</prop>
    <prop key="update">PROPAGATION_REQUIRED</prop>
    <prop key="remove">PROPAGATION_REQUIRED</prop>
    </props>
    </property>
    </bean>

    <!-- Transaction manager for supplyItemDMI and generic Spring transaction support -->
    <bean id="txManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
    <property name="sessionFactory" ref="hibernateSessionFactory"/>
    </bean>

    <!-- Hibernate SessionFactory -->
    <bean id="hibernateSessionFactory"
    class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
    <property name="configLocation" value="classpath:hibernate.cfg.xml"/>
    <property name="mappingLocations" value="classpath:com/isomorphic/examples/SupplyItem.hbm.xml"/>
    </bean>

    Thank you.

    Leave a comment:


  • nmurthy
    replied
    I installed 'SmartClient_v111p_2017-11-02_Evaluation' version of SmartClient from the website, followed steps mentioned in readme.txt file. I am using Windows 7, 64-bit machine. Consistently getting the error when I start batch file from command prompt. I did not modify/remove any files from the installed package.

    Leave a comment:


  • Isomorphic
    replied
    We can't reproduce this with the exact same SDK on either Windows 10 or Linux.

    What other steps did you take? This crash looks like you may have removed .jars you thought weren't needed, or modified startup files.

    Leave a comment:

Working...
X