svn commit: r1099388 - /ofbiz/trunk/framework/common/servicedef/services_security.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1099388 - /ofbiz/trunk/framework/common/servicedef/services_security.xml

jleroux@apache.org
Author: jleroux
Date: Wed May  4 10:00:57 2011
New Revision: 1099388

URL: http://svn.apache.org/viewvc?rev=1099388&view=rev
Log:
Fixes a data type issue introduced recently (works in R10.04 and R9.04). I did not take the time to analysis the problem further, but I expect the same issue may appear with the same condition: ie a DB field type NUMERIC and an entity.field of type Integer used in a service, switching to Long lazily solves the issue

GenericEntity.java:426:WARN ]
---- exception report ----------------------------------------------------------
=-=-=-=-=-=-=-=-= Database type warning GenericEntity.set =-=-=-=-=-=-=-=-= In entity field [ProtectedView.maxHits] set the value passed in [java.lang.Integer] is not compatible with the Java type of the fiel
d [Long]
Exception: java.lang.Exception
Message: Location of database type warning
---- stack trace ---------------------------------------------------------------
java.lang.Exception: Location of database type warning
org.ofbiz.entity.GenericEntity.set(GenericEntity.java:426)
org.ofbiz.entity.GenericEntity.set(GenericEntity.java:372)
org.ofbiz.entity.GenericEntity.setAllFields(GenericEntity.java:906)
org.ofbiz.entity.GenericEntity.setNonPKFields(GenericEntity.java:862)
org.ofbiz.service.engine.EntityAutoEngine.runSync(EntityAutoEngine.java:235)
org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:832)
_$gen.file_58$.D_58$.workspace.ofbizDev.framework.common.servicedef.services_95$security_46$xml_35$addProtectedViewToSecurityGroup.runSync(file:/D:/workspace/ofbizDev/framework/common/servicedef/services_secu
rity.xml#addProtectedViewToSecurityGroup:95)

Modified:
    ofbiz/trunk/framework/common/servicedef/services_security.xml

Modified: ofbiz/trunk/framework/common/servicedef/services_security.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/servicedef/services_security.xml?rev=1099388&r1=1099387&r2=1099388&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/servicedef/services_security.xml (original)
+++ ofbiz/trunk/framework/common/servicedef/services_security.xml Wed May  4 10:00:57 2011
@@ -97,7 +97,7 @@ under the License.
         <permission-service service-name="securityPermissionCheck" main-action="CREATE"/>
         <attribute name="viewNameId" type="String" mode="IN" optional="false"/>
         <attribute name="groupId" type="String" mode="IN" optional="false"/>
-        <attribute name="maxHits" type="Integer" mode="IN" optional="false"/>
+        <attribute name="maxHits" type="Long" mode="IN" optional="false"/>
         <attribute name="maxHitsDuration" type="Long" mode="IN" optional="false"/>
         <attribute name="tarpitDuration" type="Long" mode="IN" optional="false"/>
     </service>
@@ -106,7 +106,7 @@ under the License.
         <permission-service service-name="securityPermissionCheck" main-action="UPDATE"/>
         <attribute name="viewNameId" type="String" mode="IN" optional="false"/>
         <attribute name="groupId" type="String" mode="IN" optional="false"/>
-        <attribute name="maxHits" type="Integer" mode="IN" optional="false"/>
+        <attribute name="maxHits" type="Long" mode="IN" optional="false"/>
         <attribute name="maxHitsDuration" type="Long" mode="IN" optional="false"/>
         <attribute name="tarpitDuration" type="Long" mode="IN" optional="false"/>
     </service>