That did the trick, I just added a rule for required and set it to false! Thanks!
-warner ----- Original Message ----- From: "Stephen Haberman" <[EMAIL PROTECTED]> To: "'Turbine Users List'" <[EMAIL PROTECTED]> Sent: Saturday, June 29, 2002 4:37 PM Subject: RE: T3 intake error > Yeah, the decoupled Intake no longer adheres to the published DTD. I've > posted a few patches to fix either Intake or the DTD but their still in > the queue waiting for someone to get to them. > > Ideally you'd get a nice "invalid type" error, but I haven't deciphered > the Intake source enough to figure out why you don't or where to put it. > > I finally tracked the Date thing down by realized that Scarab uses > DateString. I have no clue what compelled them to switch to DateString, > but oh well. > > For a reference of the valid types, ignore the DTD and reference: > > http://jakarta.apache.org/turbine/fulcrum/xref/org/apache/fulcrum/intake > /model/FieldFactory.html > > Now that I look at it, boolean is still a valid type so I don't know why > you'd be getting a NullPointerException for that ManualEnding or > PollEnded. One thing you might try is that currently if you don't have > any rules in the field, Intake...uses the default validator and ignores > the type or something of that sort...just try adding some rules and see > if it helps. > > - Stephen > > > > -----Original Message----- > > From: Warner Onstine [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, June 29, 2002 4:57 PM > > To: [EMAIL PROTECTED] > > Subject: T3 intake error > > > > Hi all, > > On my continuuing journey into T3 land =). I have been trying to setup > > Intake and have been getting various errors along the way and have, > for the > > most part figured them out. However, this one has me stumped: > > java.lang.NullPointerException > > at org.apache.fulcrum.intake.Intake$PullHelper.setKey(Unknown Source) > > at org.apache.fulcrum.intake.Intake$PullHelper.setKey(Unknown Source) > > at org.apache.fulcrum.intake.Intake$PullHelper.getDefault(Unknown > Source) > > at java.lang.reflect.Method.invoke(Native Method) > > > > This happens when I uncomment either DateEnding or ManualEnding or > > PollEnded. > > > > Intake.xml > > ---------------------------------- > > <input-data basePackage="com.warneronstine.community."> > > <group name="Poll" key="poll" mapToObject="om.Poll"> > > <field name="Id" key="id" type="NumberKey" > mapToProperty="PrimaryKey"> > > <rule name="mask" value="[0-9]+">Invalid Id</rule> > > <required-message>No poll was selected.</required-message> > > </field> > > <field name="Name" key="name" type="String"> > > <rule name="required" value="true">No name was entered for > this > > poll.</rule> > > </field> > > <!--field name="DateEnding" key="dateEnd" type="Date"> > > <rule name="format" value="MM/dd/yyyy"> > > Date must be in format MM dd yyyy > > </rule> > > </field--> > > <!--field name="ManualEnding" key="manualEnd" type="boolean"/> > > <field name="PollEnded" key="pollEnded" type="boolean"/--> > > <field name="PollCreator" key="pollCreator" type="String"> > > <rule name="required" value="true">No Creator name was > > entered</rule> > > </field> > > > > </group> > > > > </input-data> > > ------------------------------------------ > > These three fields map to: > > <column name="DATE_ENDING" required="false" type="DATE"/> > > <column name="MANUAL_ENDING" required="false" type="BOOLEANINT" > > default="0" > > size="1"/> > > <column name="POLL_ENDED" required="true" type="BOOLEANINT" > default="0" > > size="1"/> > > ------------------------------------------- > > Now, looking in the Tomcat log I get this error: > > ----- Root Cause ----- > > java.lang.NoClassDefFoundError: org/w3c/dom/DOMErrorHandler > > at java.lang.ClassLoader.defineClass0(Native Method) > > at java.lang.ClassLoader.defineClass(ClassLoader.java:486) > > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) > > ------------------------ > > > > Any ideas what I'm doing wrong? I have xerces-2.0.2 (both libs). Is > there > > another lib I'm missing? > > > > -warner > > > > +warner onstine+ > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
