CMIS工作台:使用强制多值创建文档

时间:2013-07-05 17:05:41

标签: cmis opencmis cmis-workbench

我们正在使用OpenCMIS编写CMIS服务器。我们有一个新的文档类型,带有一些强制的多值属性。 现在,我尝试通过打开“创建文档”对话框在工作台中添加新文档。强制属性在此对话框中列出。但我不知道如何输入多值。我尝试了一些分隔符(例如 a,b “a”,“b” [“a”,“b”] ,< em> [a,b] 和其他人),但总是出现错误,如

  

IllegalArgumentException:属性'xx:propIdXX'不是单值属性!

日志包含以下条目:

18:46:54 ERROR hemistry.opencmis.workbench.ClientHelper: IllegalArgumentException: Property 'xx:propIdXX' is not a single value property!
java.lang.IllegalArgumentException: Property 'xx:propIdXX' is not a single value property!
    at org.apache.chemistry.opencmis.client.runtime.repository.ObjectFactoryImpl.convertProperties(ObjectFactoryImpl.java:437)
    at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:751)
    at org.apache.chemistry.opencmis.workbench.model.ClientModel.createDocument(ClientModel.java:279)
    at org.apache.chemistry.opencmis.workbench.CreateDocumentDialog$4.actionPerformed(CreateDocumentDialog.java:252)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
    at javax.swing.plaf.basic.BasicRootPaneUI$Actions.actionPerformed(BasicRootPaneUI.java:191)
    at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
    at javax.swing.JComponent.processKeyBinding(JComponent.java:2851)
    at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:267)
    at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:216)
    at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2928)
    at javax.swing.JComponent.processKeyBindings(JComponent.java:2920)
    at javax.swing.JComponent.processKeyEvent(JComponent.java:2814)
    at java.awt.Component.processEvent(Component.java:6040)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4630)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:704)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:969)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:841)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:668)
    at java.awt.Component.dispatchEventImpl(Component.java:4502)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Window.dispatchEventImpl(Window.java:2475)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    at java.awt.Dialog$1.run(Dialog.java:1045)
    at java.awt.Dialog$3.run(Dialog.java:1097)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:1095)
    at java.awt.Component.show(Component.java:1563)
    at java.awt.Component.setVisible(Component.java:1515)
    at java.awt.Window.setVisible(Window.java:841)
    at java.awt.Dialog.setVisible(Dialog.java:985)
    at org.apache.chemistry.opencmis.workbench.swing.CreateDialog.showDialog(CreateDialog.java:119)
    at org.apache.chemistry.opencmis.workbench.CreateDocumentDialog.createGUI(CreateDocumentDialog.java:307)
    at org.apache.chemistry.opencmis.workbench.CreateDocumentDialog.<init>(CreateDocumentDialog.java:84)
    at org.apache.chemistry.opencmis.workbench.CreateDocumentDialog.<init>(CreateDocumentDialog.java:79)
    at org.apache.chemistry.opencmis.workbench.ClientFrame$9.actionPerformed(ClientFrame.java:253)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

多值的格式如何?

1 个答案:

答案 0 :(得分:3)

CMIS Workbench无法通过“创建文档”对话框创建具有强制多值属性的文档。 但是您使用Workbench'控制台来创建这样的文档。