I installed Nuxeo again from scratch, and this time the behavior is somehow different: I'm able to publish although it's still firing some errors in the logs (see below). There's also an error when approving a publish.

I ran these installation commands under root:

# Start form scratch:
rm -rf /opt/jboss*

# Set Environment:
export MAVEN_HOME=/opt/apache-maven
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
export PATH=$MAVEN_HOME/bin:$PATH
export MAVEN_OPTS="-Xms256m -Xmx512m"
ant -version && mvn -v
=> Apache Ant version 1.7.1 compiled on October 3 2008
=> Maven version: 2.0.9
=> Java version: 1.5.0_16
=> OS name: "linux" version: "2.6.27-11-generic" arch: "i386" Family: "unix"


# Rebuild JBoss:
cd /usr/src/jboss-4.2.3.GA-src/build
./build.sh
=> BUILD SUCCESSFUL
cd output
cp -a jboss-4.2.3.GA /opt/
cd /opt
ln -s jboss-4.2.3.GA jboss
ls -l

# Install Nuxeo:
cd /usr/src/nuxeo
# - Take the latest sources:
hgf pull -u
cp -a build.properties.sample build.properties
# - Correct in build.properties: jboss.dir=/opt/jboss
# - Patch JBoss:
=> BUILD SUCCESSFUL
ant patch
# - Build and deploy Nuxeo:
ant deploy

# Start JBoss:
/opt/jboss/bin/run.sh

# Log as Administrator:
- Create a section Sandbox
- Create a new workspace
- Import a file in this workspace
- Publish into Sandox:

Error in the logs:
---------------------------------------------------
11:51:03,226 INFO  [TreeCache] parseConfig(): PojoCacheConfig is empty
11:52:29,377 ERROR [NotificationEventListener] unable to find published doc, exiting 11:52:29,430 ERROR [BinaryTextListener] Couldn't set fulltext on: b86c0061-c441-4bba-b687-b10706756130 org.nuxeo.ecm.core.api.DocumentException: Cannot write property: ecm:binaryText at org.nuxeo.ecm.core.storage.sql.coremodel.SQLBaseProperty.checkWritable(SQLBaseProperty.java:43) at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSimpleProperty.setValue(SQLSimpleProperty.java:63)
---------------------------------------------------

A new line gets added:
---------------------------------------------------
Default domain>Sections>Sandbox           1.0     Unpublish
---------------------------------------------------

- Click on Unpublish.
- Give a write permission to group members on both this workspace and section Sandbox.
- Create a new user in group members.
- New member logs in, selects the document and publishes it to Sandbox.
- Administrator approves, this error fires:

12:03:37,614 ERROR [NotificationEventListener] unable to find published doc, exiting 12:03:37,615 ERROR [NotificationEventListener] unable to find published doc, exiting


- I'm getting these errors too:
12:01:15,532 ERROR [NotificationEventListener] Couldn't find user: administrators to send her a mail. 12:01:15,561 ERROR [NotificationEventListener] Couldn't find user: members to send her a mail.


Not sure if these errors matter because the document go published anyway.

Eric.


On 4/17/2009 3:19 AM, Florent Guillaume wrote:
This is very strange. In SQLBaseProperty.java:43 it can only fail if the
property in question is flagged read-only.
But ecm:binaryText is not read-only, as defined in Model.java:890.
Is this problem reproducible?

Florent

On 16 Apr 2009, at 19:11, ericdes wrote:

Publishing a document will fail on this system:

DISTRIB_DESCRIPTION="Ubuntu 8.10"
2.6.27-11-generic i686
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)
Apache Ant version 1.7.1 compiled on October 3 2008
Maven version: 2.0.9
Java version: 1.5.0_16
JBoss_4_2_3_GA (I compiled it)
Nuxeo EP 5.2 (I compiled it)

Eric.
Here's what JBoss outputs:


22:32:56,031 WARN [JDBCExceptionReporter] Database
'/opt/jboss-4.2.3.GA/server/default/data/derby/nuxeo' not created,
connection made to existing database instead.
22:32:59,230 WARN [JDBCExceptionReporter] SQL Warning: 10000,
SQLState: 01J01
22:32:59,242 WARN [JDBCExceptionReporter] Database
'/opt/jboss-4.2.3.GA/server/default/data/derby/nuxeo' not created,
connection made to existing database instead.
22:32:59,321 ERROR [NotificationEventListener] Couldn't find user:
administrators to send her a mail.
22:32:59,340 ERROR [NotificationEventListener] Couldn't find user:
members to send her a mail.
22:32:59,428 ERROR [BinaryTextListener] Couldn't set fulltext on:
fcf79475-a0ff-428f-b9e3-f020fd36f54d
org.nuxeo.ecm.core.api.DocumentException: Cannot write property:
ecm:binaryText
at
org.nuxeo.ecm.core.storage.sql.coremodel.SQLBaseProperty.checkWritable(SQLBaseProperty.java:43)

at
org.nuxeo.ecm.core.storage.sql.coremodel.SQLSimpleProperty.setValue(SQLSimpleProperty.java:63)

at
org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocument.setSystemProp(SQLDocument.java:184)

at
org.nuxeo.ecm.core.api.AbstractSession.setDocumentSystemProp(AbstractSession.java:2596)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)

at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)

at
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)

at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

at
org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)

at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

at
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)

at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

at
org.nuxeo.jboss.interceptors.NXSessionSynchronizationInterceptor.invoke(NXSessionSynchronizationInterceptor.java:153)

at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

at
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)

at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
at
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)

at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

at
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)

at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

at
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)

at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

at
org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:166)

at
org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:115)

at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

at
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)

at
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)

at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

at
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)

at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

at
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)

at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

at
org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:206)

at
org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:119)

at $Proxy203.setDocumentSystemProp(Unknown Source)
at
org.nuxeo.ecm.core.storage.sql.coremodel.BinaryTextListener.handleEvent(BinaryTextListener.java:114)

at
org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$Job.run(AsyncEventExecutor.java:109)

at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

at java.lang.Thread.run(Thread.java:595)



_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm


_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to