> [EMAIL PROTECTED] wrote:
> > Our app-server is Tomcat/4.1.24-LE-jdk14 and MMBase 1.6.3.1.6.3.
> > 
> > And yes, we use setfield name=title on the page. Do they interfere?
> > The
> > editor couples a pageelement (basically a title and some text) to a 
> > menuitem (such as "home" or "our products"). Complete code is:
> > <mm:createnode type="pageelement" id="el">
> >   <mm:setfield name="title"> sometitle </mm:setfield>
> >   <mm:setfield name="abstract"> someabstract </mm:setfield>
> >   <mm:setfield name="content"> somecontent </mm:setfield>
> >   <mm:setfield name="credate"><%=now%></mm:setfield>
> >   <mm:setfield name="moddate"><%=now%></mm:setfield>
> > </mm:createnode>
> > <mm:createrelation role="posrel" source="menunode" destination="el">
> >   <mm:setfield name="pos"><%=crepos%></mm:setfield>
> > </mm:createrelation>
> > 
> > Variable crepos is the maximum existing position plus 1. So a new 
> > pageelement always gets added to the end.
> 
> They should not interfere. But well, since something goes
> wrong, one could wonder... Can you upgrade to 1.6.5?
> 
> Another trick to localize the exception is to put <mm:log
> />'s in your page, and look in the log how far it comes. It 
> should be easy to detect like this, if the exception is 
> actually caused by the <mm:setfield name="pos" or by 
> something else on the page.

It looks like that it can't find the title field or DB-type in the
builder definition pageelement. 
The <mm:setfield name="title"> throws the BridgeException when this is
the case. 
Did mmbase create the title field in the database (the log might mention
WARN org.mmbase.module.core.MMObjectBuilder getDBType(): Can't find
fielddef on field 'title' of builder pageelement.)? If it is in the
database then check the builder file: <db><type>THIS HAS TO BE IN
CAPITALS AND ONLY THE TYPES MENTIONED IN THE DOCS</type></db>. If the
above does not solve it then turn the log a little higher
(<mmbase-config>/log/log4j.xml) and add the mm:log tag. You should get
some more clues where it fails.

Nico Klasens

----------------------------------------------------------------------
Hardware: That part of the computer which you can kick


Reply via email to