You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Kevin Clark <kc...@virtumundo.com> on 2001/08/13 19:34:46 UTC

Intake init

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: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


RE: Intake init

Posted by Kevin Clark <kc...@virtumundo.com>.
I made the changes described below, however, it didn't fix the problem.
Interestingly, I completely removed the [app]-inputs.xml file and recieved
the same error. Also, does a <group> need to have a mapToObject="..." or is
it optional. Also #2, I assumed the "mapToObect=" was appended to the
"basePackage" due to the trailing dot in "basePackage"... is this true, and
if so, how would I map to an object such as TurbineUser with a base package
or "org.apache.turbine" as well as an object of my own? leave base package
empty & specify the full path to the class? I may just be misunderstanding
something... and if any more info is needed to troubleshoot my intake
problem, just let me know.

-----Original Message-----
From: Jeffrey B. Woodward [mailto:Jeffrey.B.Woodward@dartmouth.edu]
Sent: Monday, August 13, 2001 3:22 PM
To: turbine-user@jakarta.apache.org
Subject: Re: Intake init


The intake docs are a bit aged. The xml for the rules have changed a bit:

instead of:
<rule minLength="5">A Username must be at least five characters</rule>

the rule is now written as:
<rule name="minLength" value="5">A Username must be at least five
characters</rule>

Similar is true of all the other rules; i.e., they are all in the form of:
<rule name="rule_name" value="value_of_constraint">message</rule>

-Jeff Woodward
 Project Manager - Systems and Systems Integration
 The fMRI Data Center
 Dartmouth College
 6162 Moore Hall
 Jeffrey.B.Woodward@Dartmouth.EDU


----- Original Message -----
From: "Kevin Clark" <kc...@virtumundo.com>
To: <tu...@jakarta.apache.org>
Sent: Monday, August 13, 2001 1:34 PM
Subject: Intake init


> 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: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Intake init

Posted by Jon Stevens <jo...@latchkey.com>.
on 8/13/01 1:22 PM, "Jeffrey B. Woodward" <Je...@Dartmouth.EDU>
wrote:

> The intake docs are a bit aged. The xml for the rules have changed a bit:
> 
> instead of:
> <rule minLength="5">A Username must be at least five characters</rule>
> 
> the rule is now written as:
> <rule name="minLength" value="5">A Username must be at least five
> characters</rule>
> 
> Similar is true of all the other rules; i.e., they are all in the form of:
> <rule name="rule_name" value="value_of_constraint">message</rule>
> 
> -Jeff Woodward
> Project Manager - Systems and Systems Integration
> The fMRI Data Center
> Dartmouth College
> 6162 Moore Hall
> Jeffrey.B.Woodward@Dartmouth.EDU

Patches to update the documentation are most welcome!

:-)

-jon


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Intake init

Posted by "Jeffrey B. Woodward" <Je...@Dartmouth.EDU>.
The intake docs are a bit aged. The xml for the rules have changed a bit:

instead of:
<rule minLength="5">A Username must be at least five characters</rule>

the rule is now written as:
<rule name="minLength" value="5">A Username must be at least five
characters</rule>

Similar is true of all the other rules; i.e., they are all in the form of:
<rule name="rule_name" value="value_of_constraint">message</rule>

-Jeff Woodward
 Project Manager - Systems and Systems Integration
 The fMRI Data Center
 Dartmouth College
 6162 Moore Hall
 Jeffrey.B.Woodward@Dartmouth.EDU


----- Original Message -----
From: "Kevin Clark" <kc...@virtumundo.com>
To: <tu...@jakarta.apache.org>
Sent: Monday, August 13, 2001 1:34 PM
Subject: Intake init


> 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: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org