I'm having a problem with intake, during init I get this error in
turbine.log:

*******************************************************
[Mon Aug 13 12:01:36 CDT 2001] -- INFO -- Start Initializing service (late):
PoolBrokerService
[Mon Aug 13 12:01:36 CDT 2001] -- INFO -- Finish Initializing service
(late): PoolBrokerService
[Mon Aug 13 12:01:37 CDT 2001] -- WARN -- IDBroker is being used with db:
default
 which does not support transactions.  It is possible to
 generate duplicate keys, if multiple JVM's are used or other
 means are used to write to the database.
[Mon Aug 13 12:01:37 CDT 2001] -- ERROR --
        Exception:  org.apache.turbine.util.TurbineException
        Stack Trace follows:
        java.lang.NullPointerException
        at
org.apache.turbine.services.intake.xmlmodel.AppData.getGroup(AppData.java:12
8)
        at
org.apache.turbine.services.intake.TurbineIntakeService.getGroup(TurbineInta
keService.java:368)
rethrown as org.apache.turbine.util.TurbineException
        at
org.apache.turbine.services.intake.TurbineIntakeService.getGroup(TurbineInta
keService.java:372)
        at
org.apache.turbine.services.intake.TurbineIntake.getGroup(TurbineIntake.java
:85)
        at
org.apache.turbine.services.intake.IntakeTool.init(IntakeTool.java:131)
        at
org.apache.turbine.services.pull.TurbinePullService.populateWithRequestTools
(TurbinePullService.java:479)
        at
org.apache.turbine.services.pull.TurbinePullService.populateContext(TurbineP
ullService.java:415)
        at
org.apache.turbine.services.pull.TurbinePull.populateContext(TurbinePull.jav
a:145)
etc...
**********************************************************

Per the documentation, I added:

services.IntakeService.xml.path=WEB-INF/conf/[app]-inputs.xml

to tr.props. And in that file, I have:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE input-data SYSTEM
          "http://jakarta.apache.org/turbine/dtd/intake.dtd";>
<!-- PUBLIC "-//Apache//Apache-Turbine-Intake Application Data//EN" -->
<input-data basePackage="org.[company].[app].">
<group class="NewUser" key="newuser">
  <field name="Username" key="u" type="String">
    <rule minLength="5">A Username must be at least five characters</rule>
  </field>
  <field name="Email" key="e" type="String">
    <rule minLength="1">Please enter an email address</rule>
    <rule mask=".+@.+\..+">Please enter a valid email address</rule>
  </field>
</group>
</input-data>

Also, I uncommented the "services.IntakeService.classname=..." line, and the
"tool.request.intake=..." line. Does anyone know what I'm doing wrong?

-kevin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to