Originally posted by Isomorphic
View Post
So when I use "Integer", "regent" or any other random value, I get the following warning:
Code:
=== 2012-07-23 16:48:59,273 [l0-4] WARN BasicDataSource - Related data source 'domain_DataSource' does not match declared field type 'Integer' for field 'parentDomainId'. Treating as simple field.
So I don't know that it means by "treating as a simple field", but that "simple field" treatment makes everything work for me.
As far as the NumberFormatException, it sounds like you already have a solution, but we would need actual diagnostic information to help. We don't even know if you mean a client or server exception right now.
Code:
=== 2012-07-23 16:51:57,184 [l0-4] DEBUG JPADataSource - Releasing entity manager. === 2012-07-23 16:51:57,252 [l0-4] INFO RequestContext - URL: '/JPADS_js/sc/IDACall', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header === 2012-07-23 16:51:57,255 [l0-5] DEBUG DSRequest - [builtinApplication.domain_DataSource_fetch] Clobbering existing FreeResourcesHandler of type 'com.isomorphic.jpa.JPADataSource' with a 'com.isomorphic.jpa.JPADataSource' === 2012-07-23 16:51:57,256 [l0-5] DEBUG JPADataSource - [builtinApplication.domain_DataSource_fetch] Executing fetch. === 2012-07-23 16:51:57,256 [l0-4] DEBUG XML - Parsed XML from (in memory stream): 3ms === 2012-07-23 16:51:57,256 [l0-5] DEBUG JPADataSource - [builtinApplication.domain_DataSource_fetch] Query string: select _Domain from Domain _Domain where _Domain.parentDomainId is null === 2012-07-23 16:51:57,257 [l0-4] DEBUG RPCManager - Processing 1 requests. === 2012-07-23 16:51:57,258 [l0-4] DEBUG RPCManager - Request #1 (DSRequest) payload: { values:{ name:"Global", parentDomainId:null }, operationConfig:{ dataSource:"domain_DataSource", operationType:"add" }, componentId:"isc_TreeGrid_0", appID:"builtinApplication", operation:"domain_DataSource_add", oldValues:{ name:"Global", parentDomainId:null }, criteria:{ } } === 2012-07-23 16:51:57,258 [l0-4] INFO IDACall - Performing 1 operation(s) === 2012-07-23 16:51:57,259 [l0-4] DEBUG AppBase - [builtinApplication.domain_DataSource_add] No userTypes defined, allowing anyone access to all operations for this application === 2012-07-23 16:51:57,259 [l0-4] DEBUG AppBase - [builtinApplication.domain_DataSource_add] No public zero-argument method named '_domain_DataSource_add' found, performing generic datasource operation === 2012-07-23 16:51:57,259 [l0-4] DEBUG JPADataSource - [builtinApplication.domain_DataSource_add] Auto-joining transactions. === 2012-07-23 16:51:57,262 [l0-4] DEBUG JPADataSource - [builtinApplication.domain_DataSource_add] Creating EntityManager, starting transaction and setting it to RPCManager. === 2012-07-23 16:51:57,268 [l0-4] DEBUG DSRequest - [builtinApplication.domain_DataSource_add] Clobbering existing FreeResourcesHandler of type 'com.isomorphic.jpa.JPADataSource' with a 'com.isomorphic.jpa.JPADataSource' === 2012-07-23 16:51:57,269 [l0-4] DEBUG JPADataSource - [builtinApplication.domain_DataSource_add] Executing add. Hibernate: select domain0_.id as id25_, domain0_.name as name25_, domain0_.parentDomain as parentDo3_25_ from T_DOMAIN domain0_ where domain0_.parentDomain is null Hibernate: select domain0_.id as id25_, domain0_.name as name25_, domain0_.parentDomain as parentDo3_25_ from T_DOMAIN domain0_ where domain0_.id=? === 2012-07-23 16:51:57,277 [l0-5] INFO DSResponse - [builtinApplication.domain_DataSource_fetch] DSResponse: List with 0 items === 2012-07-23 16:51:57,277 [l0-5] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8 === 2012-07-23 16:51:57,277 [l0-5] DEBUG JPADataSource - Committing current transaction. === 2012-07-23 16:51:57,278 [l0-5] DEBUG RPCManager - non-DMI response, dropExtraFields: true === 2012-07-23 16:51:57,279 [l0-5] DEBUG JPADataSource - Releasing entity manager. Hibernate: insert into T_DOMAIN (id, name, parentDomain) values (null, ?, ?) Hibernate: call identity() === 2012-07-23 16:51:57,307 [l0-4] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8 === 2012-07-23 16:51:57,307 [l0-4] DEBUG JPADataSource - Committing transaction for 1 queued operation(s). === 2012-07-23 16:51:57,311 [l0-4] DEBUG RPCManager - non-DMI response, dropExtraFields: true === 2012-07-23 16:51:57,312 [l0-4] WARN DataSource - Couldn't get value for property 'parentDomainId' for datasource 'domain_DataSource' - ignoring. Actual error: java.lang.NullPointerException === 2012-07-23 16:51:57,313 [l0-4] DEBUG JPADataSource - Releasing entity manager. === 2012-07-23 16:52:29,623 [l0-5] INFO RequestContext - URL: '/JPADS_js/sc/IDACall', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header === 2012-07-23 16:52:29,626 [l0-5] DEBUG XML - Parsed XML from (in memory stream): 1ms === 2012-07-23 16:52:29,629 [l0-5] DEBUG RPCManager - Processing 1 requests. === 2012-07-23 16:52:29,630 [l0-5] DEBUG RPCManager - Request #1 (DSRequest) payload: { values:{ name:"new-domain", parentDomainId:1 }, operationConfig:{ dataSource:"domain_DataSource", operationType:"add" }, componentId:"isc_TreeGrid_0", appID:"builtinApplication", operation:"domain_DataSource_add", oldValues:{ name:"new-domain", parentDomainId:1 }, criteria:{ } } === 2012-07-23 16:52:29,630 [l0-5] INFO IDACall - Performing 1 operation(s) === 2012-07-23 16:52:29,630 [l0-5] DEBUG AppBase - [builtinApplication.domain_DataSource_add] No userTypes defined, allowing anyone access to all operations for this application === 2012-07-23 16:52:29,630 [l0-5] DEBUG AppBase - [builtinApplication.domain_DataSource_add] No public zero-argument method named '_domain_DataSource_add' found, performing generic datasource operation === 2012-07-23 16:52:29,631 [l0-5] DEBUG JPADataSource - [builtinApplication.domain_DataSource_add] Auto-joining transactions. === 2012-07-23 16:52:29,631 [l0-5] DEBUG JPADataSource - [builtinApplication.domain_DataSource_add] Creating EntityManager, starting transaction and setting it to RPCManager. === 2012-07-23 16:52:29,632 [l0-5] DEBUG DSRequest - [builtinApplication.domain_DataSource_add] Clobbering existing FreeResourcesHandler of type 'com.isomorphic.jpa.JPADataSource' with a 'com.isomorphic.jpa.JPADataSource' === 2012-07-23 16:52:29,632 [l0-5] DEBUG JPADataSource - [builtinApplication.domain_DataSource_add] Executing add. Hibernate: select domain0_.id as id25_, domain0_.name as name25_, domain0_.parentDomain as parentDo3_25_ from T_DOMAIN domain0_ where domain0_.id=? === 2012-07-23 16:52:29,645 [l0-5] WARN DataSource - [builtinApplication.domain_DataSource_add] Couldn't set property 'parentDomainId' for datasource 'domain_DataSource'. Actual error: java.lang.NumberFormatException Hibernate: insert into T_DOMAIN (id, name, parentDomain) values (null, ?, ?) Hibernate: call identity() === 2012-07-23 16:52:29,648 [l0-5] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8 === 2012-07-23 16:52:29,648 [l0-5] DEBUG JPADataSource - Committing transaction for 1 queued operation(s). === 2012-07-23 16:52:29,654 [l0-5] DEBUG RPCManager - non-DMI response, dropExtraFields: true === 2012-07-23 16:52:29,657 [l0-5] WARN DataSource - Couldn't get value for property 'parentDomainId' for datasource 'domain_DataSource' - ignoring. Actual error: java.lang.NullPointerException === 2012-07-23 16:52:29,658 [l0-5] DEBUG JPADataSource - Releasing entity manager. === 2012-07-23 16:52:29,692 [l0-5] INFO RequestContext - URL: '/JPADS_js/sc/IDACall', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header === 2012-07-23 16:52:29,697 [l0-5] DEBUG XML - Parsed XML from (in memory stream): 2ms === 2012-07-23 16:52:29,700 [l0-5] DEBUG RPCManager - Processing 1 requests. === 2012-07-23 16:52:29,702 [l0-5] DEBUG RPCManager - Request #1 (DSRequest) payload: { criteria:{ parentDomainId:1 }, operationConfig:{ dataSource:"domain_DataSource", operationType:"fetch", textMatchStyle:"exact" }, componentId:"isc_TreeGrid_0", appID:"builtinApplication", operation:"domain_DataSource_fetch", oldValues:{ parentDomainId:1 } } === 2012-07-23 16:52:29,702 [l0-5] INFO IDACall - Performing 1 operation(s) === 2012-07-23 16:52:29,702 [l0-5] DEBUG AppBase - [builtinApplication.domain_DataSource_fetch] No userTypes defined, allowing anyone access to all operations for this application === 2012-07-23 16:52:29,702 [l0-5] DEBUG AppBase - [builtinApplication.domain_DataSource_fetch] No public zero-argument method named '_domain_DataSource_fetch' found, performing generic datasource operation === 2012-07-23 16:52:29,703 [l0-5] DEBUG JPADataSource - [builtinApplication.domain_DataSource_fetch] Creating EntityManager and starting transaction. === 2012-07-23 16:52:29,708 [l0-5] DEBUG DSRequest - [builtinApplication.domain_DataSource_fetch] Clobbering existing FreeResourcesHandler of type 'com.isomorphic.jpa.JPADataSource' with a 'com.isomorphic.jpa.JPADataSource' === 2012-07-23 16:52:29,708 [l0-5] DEBUG JPADataSource - [builtinApplication.domain_DataSource_fetch] Executing fetch. === 2012-07-23 16:52:29,708 [l0-5] DEBUG JPADataSource - [builtinApplication.domain_DataSource_fetch] Query string: select _Domain from Domain _Domain where _Domain.parentDomainId = :p0 === 2012-07-23 16:52:29,720 [l0-5] DEBUG JPADataSource - [builtinApplication.domain_DataSource_fetch] Parameter p0: 1 Hibernate: select domain0_.id as id25_, domain0_.name as name25_, domain0_.parentDomain as parentDo3_25_ from T_DOMAIN domain0_ where domain0_.parentDomain=? === 2012-07-23 16:52:29,726 [l0-5] INFO DSResponse - [builtinApplication.domain_DataSource_fetch] DSResponse: List with 0 items === 2012-07-23 16:52:29,726 [l0-5] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8 === 2012-07-23 16:52:29,726 [l0-5] DEBUG JPADataSource - Committing current transaction. === 2012-07-23 16:52:29,728 [l0-5] DEBUG RPCManager - non-DMI response, dropExtraFields: true === 2012-07-23 16:52:29,729 [l0-5] DEBUG JPADataSource - Releasing entity manager.
Leave a comment: