[Design of JBoss Portal] - Can't use MySQL with Portal 2.4
by simplex-software
Greetings,
After having followed the documentation in order to configure JBoss Portal 2.4.0 to work with MySQL i have lots of execeptions in the log file, such that:
org.hibernate.MappingException: Unknown entity: org.jboss.portal.core.impl.portlet.state.PersistentState
or
org.hibernate.hql.ast.QuerySyntaxException: ObjectNode is not mapped [from ObjectNode where path=:path or path is null]
or even
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'MODIFIABLE' at row 1
I checked several times and I didn't miss anything which allows me to think that ... it simply doesn't work. I'm systematically posting questions on this site and I don't ever get any answer, so it won't be different this time. but who knows, if someone cares ...
Many thanks,
Nicolas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991264#3991264
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991264
18 years, 1 month
[Design of JBossXB] - Re: Recent tests
by alex.loubyansky@jboss.com
I've been looking into the AnyComplexTypeUnitTestCase. One issue related to the test was fixed in JBossXB. The other one is the way the binding is configured in the test itself.
Specifically, it's the use of type.setStartElementCreatesObject(false). It's always true for the complex types or types that are supposed to have child values.
Following that, in the testcase it should be true (i.e. not set to false). I'll add a javadoc description to clarify that.
This is the diff with an example of a correct binding to make the test pass:
$ svn diff test/
| Index: test/java/org/jboss/test/xml/AnyComplexTypeUnitTestCase.java
| ===================================================================
| --- test/java/org/jboss/test/xml/AnyComplexTypeUnitTestCase.java (revision 2184)
| +++ test/java/org/jboss/test/xml/AnyComplexTypeUnitTestCase.java (working copy)
| @@ -34,6 +34,7 @@
| import org.jboss.xb.binding.metadata.ValueMetaData;
| import org.jboss.xb.binding.sunday.unmarshalling.CharactersHandler;
| import org.jboss.xb.binding.sunday.unmarshalling.DefaultElementInterceptor;
| +import org.jboss.xb.binding.sunday.unmarshalling.DefaultHandlers;
| import org.jboss.xb.binding.sunday.unmarshalling.ElementBinding;
| import org.jboss.xb.binding.sunday.unmarshalling.ParticleBinding;
| import org.jboss.xb.binding.sunday.unmarshalling.ParticleHandler;
| @@ -155,15 +156,24 @@
|
| DOMUnresolvedHandler unresolved = new DOMUnresolvedHandler();
| TypeBinding type = schema.getType(new QName(NS, "any-complexType"));
| - type.setStartElementCreatesObject(false);
| + //type.setStartElementCreatesObject(false);
| + type.setHandler(new DOMUnresolvedHandler()
| + {
| + public void setParent(Object parent, Object o, QName qName, ParticleBinding particle,
| + ParticleBinding parentParticle)
| + {
| + DefaultHandlers.ELEMENT_HANDLER.setParent(parent, o, qName, particle, parentParticle);
| + }
| + }
| + );
| WildcardBinding wild = type.getWildcard();
| assertNotNull(wild);
| wild.setUnresolvedElementHandler(unresolved);
| wild.setUnresolvedCharactersHandler(unresolved);
|
| - DOMInterceptor interceptor = new DOMInterceptor();
| - element = schema.getElement(new QName(NS, "element"));
| - element.pushInterceptor(interceptor);
| + //DOMInterceptor interceptor = new DOMInterceptor();
| + //element = schema.getElement(new QName(NS, "element"));
| + //element.pushInterceptor(interceptor);
|
| Top top = (Top) unmarshal("AnyComplexTypeFromMultipleWildCardAndElement.xml", schema, Top.class);
| Element dom = top.element;
|
The snapshot in the repository hasn't been updated yet.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991235#3991235
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991235
18 years, 1 month
[Design of JBoss Collaboration Server] - Re: Administration guide for novices
by cyberskunk
Well, the problem is I'm getting
| exception
| javax.management.RuntimeMBeanException
| org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:176)
| org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
| org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
| org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
| org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)
| org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262)
| org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
| org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
when I'm trying to execute createMailbox. The only useful thing I've found in server logs is
| caused by: java.lang.nullPointerException
| at org.jboss.mail.mailbox.MailboxServiceImpl.org$jboss$mail$mailbox$MailboxServiceImpl$GetMailboxByAlias$aop(MailboxServiceImpl.java:108)
|
And I really have no ideas what does it mean.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991212#3991212
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991212
18 years, 1 month