Announcement
Collapse
No announcement yet.
X
-
As suspected it's the problem from the FAQ. Get rid of the com.smartgwt imports and replace them with smartgwtpro imports.
You're also loading two skins. See the QuickStart Guide, Extending Smart GWT -> Switching Theme for the correct procedure for switching theme.
Leave a comment:
-
My Config details: .gwt.xml file.
users.ds.xml fileCode:<?xml version="1.0" encoding="UTF-8"?> <module rename-to='myApp'> <!-- Inherit the core Web Toolkit stuff. --> <inherits name='com.google.gwt.user.User'/> <inherits name="com.smartgwtpro.SmartGwtPro"/> <!-- Other module inherits --> <inherits name="com.smartgwt.SmartGwtNoTheme" /> <inherits name="com.smartgwt.SmartGwtNoScript" /> <inherits name="com.smartclient.theme.graphite.Graphite"/> <!-- Specify the app entry point class. --> <entry-point class='com.myApp.client.myApp'/> <!-- Specify the paths for translatable code --> <source path='client'/> <source path='shared'/> </module>
Application-Context.xmlCode:<DataSource ID="users" serverType="generic" > <fields> <field name="userId" type="text" length="30" title="User Id" primaryKey="true"> </field> <field name="firstName" type="text" length="30" title="First Name"> </field> <field name="lastName" type="text" length="30" title="Last Name"> </field> <field name="passwd" type="text" length="20" title="Passwd"> </field> <field name="email" type="text" length="100" title="Email"> </field> </fields> <serverObject lookupStyle="spring" bean="usersDao"/> </DataSource>
I also stopped all the servers and cleaned the myapp folder under war. Did fresh clean build... still the error comes !!Code:<bean id="usersDao" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> <property name="transactionManager" ref="txManager"/> <property name="target" ref="usersDaoTarget"/> <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> <!-- Beans used by Hibernate Data Binding example --> <bean id="usersDaoTarget" class="com.myApp.demoApp.server.UsersDao"> <property name="sessionFactory" ref="hibernateSessionFactory"/> </bean> <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"> <list> <value>classpath*:com/myApp/demoApp/server/Files.hbm.xml</value> <value>classpath*:com/myApp/demoApp/server/Users.hbm.xml</value> </list> </property> </bean>
What is incorrect in the above settings/imports. Can you suggest ?Last edited by anurag_agarwal; 30 Sep 2010, 10:16.
Leave a comment:
-
iscServer error !!
Version: SmartGWTPro2.3, SmartClientPro
I m using SpringhibernateDMI integration using SmartGWTPro
I am receiving the error:
This happend when I used the attribute dataFormat="iscServer" from the UploadFile example of SmartGWTEE showcase.Code:DataSource: myapp_users: attempt to use DataSource of type iscServer without SmartClient Server option. Please either set clientOnly: true for one-time fetch against dataURL/testFileName or upgrade to SmartClient Pro or SmartClient Enterprise Stack trace: DataSource.sendDSRequest(_1=>Obj) DataSource.performDSOperation(_1=>"fetch", _2=>Obj, _3=>Obj, _4=>Obj) DataSource.fetchData(_1=>Obj, _2=>Obj, _3=>Obj) ResultSet.fetchRemoteData(_1=>Obj, _2=>0, _3=>75) ResultSet.$39w() ResultSet.getRangePaged(_1=>0, _2=>7, _3=>undef, _4=>undef) ResultSet.$39u(_1=>0, _2=>7, _3=>undef, _4=>undef) ResultSet.getRange(_1=>0, _2=>7, _3=>undef, _4=>undef) ListGrid.requestVisibleRows() Canvas.filterWithCriteria(_1=>Obj, _2=>Obj{ID:callrt_users_fetch}, _3=>Obj) Canvas.$wo(_1=>"fetch", _2=>Obj, _3=>null, _4=>Obj) Class.invokeSuper(_1=>null, _2=>"$wo", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef) Class.Super(_1=>"$wo", _2=>Array[4], _3=>Obj{length:4}) ListGrid.$wo(_1=>"fetch", _2=>undef, _3=>null, _4=>Obj, _5=>undef) Canvas.fetchData(_1=>undef, _2=>null, _3=>Obj) Canvas.doInitialFetch() Canvas.draw(_1=>undef, undef, undef, undef, undef, undef, undef, undef) ** recursed on Class.invokeSuper
I removed the dataFormat="iscServer" from the upload.ds.xml file. Still it gives me the same error.
Now, it is giving me this error for all the other ds.xml files of my application. However, NO other ds.xml file of my application has such iscServer settings. Rest of my application was running fine before this error came.
Can you suggest me the solution for this ??Tags: None
Leave a comment: