11-17-2008 06:32 PM
07-16-2010 09:42 AM
07-16-2010 10:12 AM
07-16-2010 10:18 AM
07-21-2010 05:54 PM
07-22-2010 04:16 AM
08-02-2010 03:53 PM
08-10-2010 07:42 AM
private static final String APPLICATION_CONTEXT = "classpath*:core/cma-core-context.xml";
ConfigurableApplicationContext configurationApplicationContext;
AuthenticationService authenticationService;
WorkflowService workflowService;
Ticket ticket;
public void getTasks()
{
try {
connect();
List<WorkflowTask> lwt = workflowService.getAssignedTasks(ticket, "nchantrenne", WorkflowTaskState.IN_PROGRESS);
for(WorkflowTask wt : lwt)
{
System.out.println(wt.id);
}
} catch (InvalidTicketException e) {
e.printStackTrace();
} catch (CmaRuntimeException e) {
e.printStackTrace();
}
}
private void connect()
{
String repositoryUri = "http://localhost/alfsfprod/service";
String password = "pass";
String userid= "admin";
configurationApplicationContext = new ClassPathXmlApplicationContext(APPLICATION_CONTEXT);
authenticationService = (AuthenticationService) configurationApplicationContext.getBean("authenticationService");
workflowService = (WorkflowService) configurationApplicationContext.getBean("workflowService");
try
{
ticket = authenticationService.authenticate(repositoryUri, userid, password.toCharArray());
}
catch (Exception e)
{
e.printStackTrace();
}
}
com.rivetlogic.core.cma.exception.CmaRuntimeException: org.exolab.castor.xml.MarshalException: Invalid byte 2 of 3-byte UTF-8 sequence.{File: [not available]; line: 2; column: 267}
at com.rivetlogic.core.cma.mapping.impl.CmaCastorUnmarshaller.unmarshal(CmaCastorUnmarshaller.java:57)
at com.rivetlogic.core.cma.rest.impl.RestExecuterImpl.processResponse(RestExecuterImpl.java:403)
at com.rivetlogic.core.cma.rest.impl.RestExecuterImpl.processResponse(RestExecuterImpl.java:331)
at com.rivetlogic.core.cma.rest.impl.RestExecuterImpl.execute(RestExecuterImpl.java:113)
at com.rivetlogic.core.cma.rest.impl.RestExecuterImpl.execute(RestExecuterImpl.java:95)
at com.rivetlogic.core.cma.impl.WorkflowServiceImpl.execute(WorkflowServiceImpl.java:564)
at com.rivetlogic.core.cma.impl.WorkflowServiceImpl.getAssignedTasks(WorkflowServiceImpl.java:261)
at com.forge.corp.sopra.AlfrescoService.getTasks(AlfrescoService.java:68)
at com.forge.corp.sopra.Main.main(Main.java:9)
Caused by: org.exolab.castor.xml.MarshalException: Invalid byte 2 of 3-byte UTF-8 sequence.{File: [not available]; line: 2; column: 267}
at org.exolab.castor.xml.Unmarshaller.convertSAXExceptionToMarshalException(Unmarshaller.java:761)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:727)
at com.rivetlogic.core.cma.mapping.impl.CmaCastorUnmarshaller.unmarshal(CmaCastorUnmarshaller.java:55)
… 8 more
Caused by: org.xml.sax.SAXParseException: Invalid byte 2 of 3-byte UTF-8 sequence.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:715)
… 9 more
08-12-2010 04:36 PM
08-13-2010 05:32 AM
08-13-2010 12:20 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.