|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
openwfe-jcr-1.7.2.jar errorHi, I have tested the openwfe-jcr capabilities and immediately ran into: "openwfe.org.jcr.JcrException: call to method getNodes() failed at openwfe.org.jcr.JcrProxy$SameMethodNameProxy.invoke(JcrProxy.java: 197) at $Proxy0.getNodes(Unknown Source) at openwfe.org.jcr.beancoder.JcrBeanCoder.encode(JcrBeanCoder.java: 485) at openwfe.org.jcr.beancoder.JcrBeanCoder.encode(JcrBeanCoder.java: 835) at openwfe.org.jcr.beancoder.JcrBeanCoder.encode(JcrBeanCoder.java: 816) at com.impromptx.server.jcr.dao.DataTemplateDao.saveDataTemplate(DataTemplateDao.java: 68)" Code used to get this exception: Node fieldTemplatesNode = node.addNode(FIELD_TEMPLATES_NODE); JcrBeanCoder.encode(fieldTemplatesNode, "test" , "test"); and Node fieldTemplatesNode = node.addNode(FIELD_TEMPLATES_NODE); JcrBeanCoder.encode(fieldTemplatesNode, FIELD_TEMPLATES_NODE , "test"); Any ideas why this isn't working? As well, the example shows: javax.jcr.Node targetNode = whateverNode; String beanNodeName = "myBean"; JcrBeanCoder.encode(targetNode, new NadaObject("some text", new Color(-69, true))); targetNode.save(); but I don't see beanNodeName used anywhere, so I'm not sure what it is, and there isn't an explanation in the source code either... Thanks, Mark --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenWFE dev" group. To post to this group, send email to openwfe-dev@... To unsubscribe from this group, send email to openwfe-dev-unsubscribe@... For more options, visit this group at http://groups.google.com/group/openwfe-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: openwfe-jcr-1.7.2.jar errorHi Mark, On 9/1/07, mwaschkowski <mwaschkowski@...> wrote: > > Hi, > > I have tested the openwfe-jcr capabilities and immediately ran into: > > "openwfe.org.jcr.JcrException: call to method getNodes() failed > at openwfe.org.jcr.JcrProxy$SameMethodNameProxy.invoke(JcrProxy.java: > 197) > at $Proxy0.getNodes(Unknown Source) > at openwfe.org.jcr.beancoder.JcrBeanCoder.encode(JcrBeanCoder.java: > 485) > at openwfe.org.jcr.beancoder.JcrBeanCoder.encode(JcrBeanCoder.java: > 835) > at openwfe.org.jcr.beancoder.JcrBeanCoder.encode(JcrBeanCoder.java: > 816) > at > com.impromptx.server.jcr.dao.DataTemplateDao.saveDataTemplate(DataTemplateDao.java: > 68)" The error stack trace is that short ? No other lines ? > Code used to get this exception: > Node fieldTemplatesNode = node.addNode(FIELD_TEMPLATES_NODE); > JcrBeanCoder.encode(fieldTemplatesNode, "test" , "test"); > and > Node fieldTemplatesNode = node.addNode(FIELD_TEMPLATES_NODE); > JcrBeanCoder.encode(fieldTemplatesNode, FIELD_TEMPLATES_NODE , > "test"); > > Any ideas why this isn't working? As well, the example shows: > > javax.jcr.Node targetNode = whateverNode; > String beanNodeName = "myBean"; > JcrBeanCoder.encode(targetNode, new NadaObject("some text", new > Color(-69, true))); > targetNode.save(); > > but I don't see beanNodeName used anywhere, so I'm not sure what it > is, and there isn't an explanation in the source code either... BTW, are you using the same JCR as used when developping the JcrBeanCoder or a newer version ? I should recheck that code. Not much people is using it at all. The JCR / Jackrabbit people are using something else (formerly named "Graffito") which does object persistence, you should probably go and check there, they are actively maintaining that (http://jackrabbit.apache.org). Best regards, -- John Mettraux -///- http://jmettraux.openwfe.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenWFE dev" group. To post to this group, send email to openwfe-dev@... To unsubscribe from this group, send email to openwfe-dev-unsubscribe@... For more options, visit this group at http://groups.google.com/group/openwfe-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free Forum Powered by Nabble | Forum Help |