Got it worked when I remove <rule name="mask" from all groups.
Thanks,
-----Original Message-----
From: Neelima Yadla
Sent: Wednesday, June 06, 2007 9:55 AM
To: Turbine Users List
Subject: intake.isAllValid() always returns false
Hi,
I upgraded turbine 2.2 to turbine 2.3.2. When I enter values for first
three fields (required fields) and try to insert the record into the
database it is always failing at intake.isAllValid(). I didn't modify
intake.xml which is initially written in 2.2 Is this have any effect on
services I added in tr.properties.
Intake.xml
----------
<group name="algorithmVariableGroup" key="algorithmVariableGroupKey"
mapToObject="AlgorithmVariable">
<field name="AlgorithmId" key="AlgorithmIdKey"
type="String">
<rule name="required" value="true">required</rule>
</field>
<field name="VariableExecuteNbr" key="VariableExecuteNbrKey"
type="String">
<rule name="required" value="true">required</rule>
<rule name="mask" value="[0-9]{1}">Must be numeric</rule>
</field>
<field name="VariableName" key="VariableNameKey"
type="String">
<rule name="required" value="true">required</rule>
</field>
<field name="VariableDesc" key="VariableDescKey"
type="String">
</field>
<field name="Definition" key="DefinitionKey"
type="String">
</field>
<field name="InvalidMissingValue" key="InvalidMissingValueKey"
type="String">
</field>
<field name="NoDataValue" key="NoDataValueKey"
type="String">
</field>
<field name="MnthsSinceOp" key="MnthsSinceOpKey"
type="String" >
</field>
<field name="MnthsSinceValue" key="MnthsSinceValueKey"
type="String" mapToProperty="MnthsSinceValue" >
<rule name="mask" value="^[0-9]*$">Months Must be
numeric</rule>
</field>
<field name="AmountOp" key="AmountOpKey"
type="String">
</field>
<field name="AmountValue" key="AmountValueKey"
type="String" mapToProperty="AmountValue">
<rule name="mask" value="^[0-9]*$">Money Amount Must be
numeric</rule>
</field>
</group>
When I start my weblogic, following are services it started,
[INFO] Turbine - Configured log4j from
C:\bea\user_projects\domains\score\applications\scoring\WEB-INF\conf\Log
4j.properties
[INFO] Turbine - Loaded configuration (Properties) from
/WEB-INF/conf/TurbineResources.properties
(C:\bea\user_projects\domains\score\applications\scoring\WEB-INF\conf\Tu
rbineResources.properties)
[INFO] BaseServiceBroker - Added Mapping for Service:
AvalonComponentService
[INFO] BaseServiceBroker - Added Mapping for Service: FactoryService
[INFO] BaseServiceBroker - Added Mapping for Service: PoolService
[INFO] BaseServiceBroker - Added Mapping for Service: RunDataService
[INFO] BaseServiceBroker - Added Mapping for Service: ServletService
[INFO] BaseServiceBroker - Added Mapping for Service:
AssemblerBrokerService
[INFO] BaseServiceBroker - Added Mapping for Service:
LocalizationService
[INFO] BaseServiceBroker - Added Mapping for Service: MimeTypeService
[INFO] BaseServiceBroker - Added Mapping for Service: GlobalCacheService
[INFO] BaseServiceBroker - Added Mapping for Service: SchedulerService
[INFO] BaseServiceBroker - Added Mapping for Service: UniqueIdService
[INFO] BaseServiceBroker - Added Mapping for Service: SecurityService
[INFO] BaseServiceBroker - Added Mapping for Service: PullService
[INFO] BaseServiceBroker - Added Mapping for Service: IntakeService
[INFO] BaseServiceBroker - Added Mapping for Service: TemplateService
[INFO] BaseServiceBroker - Added Mapping for Service: XSLTService
[INFO] BaseServiceBroker - Added Mapping for Service: VelocityService
[INFO] BaseServiceBroker - Start Initializing service (early):
AvalonComponentService
[INFO] TurbineAvalonComponentService - Lookup for Component
org.apache.torque.avalon.Torque successful
[INFO] BaseServiceBroker - Finish Initializing service (early):
AvalonComponentService
[INFO] BaseServiceBroker - Start Initializing service (early):
PullService
[INFO] BaseServiceBroker - Start Initializing service (late):
PoolService
[INFO] BaseServiceBroker - Start Initializing service (late):
FactoryService
[INFO] BaseServiceBroker - Finish Initializing service (late):
FactoryService
[INFO] BaseServiceBroker - Finish Initializing service (late):
PoolService
[INFO] TurbinePullService - Pull Model tools will be refreshed on a per
request basis.
[INFO] BaseServiceBroker - Start Initializing service (late):
VelocityService
[INFO] BaseServiceBroker - Start Initializing service (late):
TemplateService
[INFO] BaseServiceBroker - Start Initializing service (late):
AssemblerBrokerService
[INFO] TurbineAssemblerBrokerService - Registering 1 action factories.
[INFO] TurbineAssemblerBrokerService - Registering 1 screen factories.
[INFO] TurbineAssemblerBrokerService - Registering 1 navigation
factories.
[INFO] TurbineAssemblerBrokerService - Registering 1 layout factories.
[INFO] TurbineAssemblerBrokerService - Registering 1 page factories.
[INFO] TurbineAssemblerBrokerService - Registering 1 scheduledjob
factories.
[INFO] BaseServiceBroker - Finish Initializing service (late):
AssemblerBrokerService
[INFO] TurbineTemplateService - Using
org.apache.turbine.services.template.mapper.DirectMapper to map page
elements
[INFO] TurbineTemplateService - Using
org.apache.turbine.services.template.mapper.ClassMapper to map screen
elements
[INFO] TurbineTemplateService - Using
org.apache.turbine.services.template.mapper.ClassMapper to map layout
elements
[INFO] TurbineTemplateService - Using
org.apache.turbine.services.template.mapper.ClassMapper to map
navigation elements
[INFO] TurbineTemplateService - Using
org.apache.turbine.services.template.mapper.LayoutTemplateMapper to map
layout.template elements
[INFO] TurbineTemplateService - Using
org.apache.turbine.services.template.mapper.ScreenTemplateMapper to map
screen.template elements
[INFO] TurbineTemplateService - Using
org.apache.turbine.services.template.mapper.DirectTemplateMapper to map
navigation.template elements
[INFO] BaseServiceBroker - Finish Initializing service (late):
TemplateService
[INFO] BaseServiceBroker - Finish Initializing service (late):
VelocityService
[INFO] TurbinePullService - Tool
org.apache.turbine.services.pull.util.UIManager to add to the context as
'$ui'
[INFO] TurbinePullService - Tool com.cbc.scoring.tools.EnvTool to add to
the context as '$formsTool'
[INFO] TurbinePullService - Tool
org.apache.turbine.util.template.TemplateLink to add to the context as
'$link'
[INFO] TurbinePullService - Tool
org.apache.turbine.util.template.HtmlPageAttributes to add to the
context as '$page'
[INFO] TurbinePullService - Tool org.apache.turbine.util.ContentURI to
add to the context as '$content'
[INFO] TurbinePullService - Tool
org.apache.turbine.services.localization.LocalizationTool to add to the
context as '$l10n'
[INFO] TurbinePullService - Tool
org.apache.turbine.services.intake.IntakeTool to add to the context as
'$intake'
[INFO] BaseServiceBroker - Start Initializing service (late):
ServletService
[INFO] BaseServiceBroker - Finish Initializing service (late):
ServletService
[INFO] BaseServiceBroker - Finish Initializing service (early):
PullService
[INFO] BaseServiceBroker - Start Initializing service (early):
VelocityService
[INFO] BaseServiceBroker - Finish Initializing service (early):
VelocityService
[INFO] BaseServiceBroker - Finished initializing all services!
[INFO] BaseServiceBroker - Start Initializing service (late):
RunDataService
[INFO] BaseServiceBroker - Finish Initializing service (late):
RunDataService
[INFO] Turbine - Turbine: init() Ready to Rumble!
<Jun 6, 2007 9:34:46 AM EDT> <Notice> <WebLogicServer> <BEA-000331>
<Started WebLogic Admin Server "myserver" for domain "score" running in
Development Mode>
<Jun 6, 2007 9:34:46 AM EDT> <Notice> <WebLogicServer> <BEA-000360>
<Server started in RUNNING mode>
<Jun 6, 2007 9:34:46 AM EDT> <Notice> <WebLogicServer> <BEA-000355>
<Thread "ListenThread.Default" listening on port 7001, ip address *.*>
[INFO] Turbine - Turbine: first Request successful
[INFO] BaseServiceBroker - Start Initializing service (late):
SecurityService
[INFO] BaseServiceBroker - Finish Initializing service (late):
SecurityService
[INFO] BaseServiceBroker - Start Initializing service (late):
LocalizationService
[INFO] BaseServiceBroker - Finish Initializing service (late):
LocalizationService
[INFO] BaseServiceBroker - Start Initializing service (late):
IntakeService
[INFO] TurbineIntakeService - Loaded serialized map object, ignoring XML
[INFO] BaseServiceBroker - Finish Initializing service (late):
IntakeService
Looking for any help on this????????
Thanks,
Neelima Yadla
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]