bpm - oramds unknown protocol error -


i have below given code data bpm engine came across error mentioned below. can tell me working code or me resolve issue

exception in thread "main" java.lang.exceptionininitializererror     @ oracle.integration.platform.blocks.fabricconfigmanager.getmetadatamanager(fabricconfigmanager.java:205)     @ oracle.integration.platform.blocks.fabricconfigmanager.loadconfigobject(fabricconfigmanager.java:620)     @ oracle.tip.pc.services.identity.config.isconfiguration.init(isconfiguration.java:170)     @ oracle.tip.pc.services.identity.config.isconfiguration.<clinit>(isconfiguration.java:130)     @ bpm.bpmtester.main(bpmtester.java:52) caused by: oracle.fabric.common.fabricexception: oracle.fabric.common.fabricexception: java.net.malformedurlexception: unknown protocol: oramds: unknown protocol: oramds: java.net.malformedurlexception: unknown protocol: oramds: unknown protocol: oramds     @ oracle.fabric.common.fabricmetadatamanagerfactory.createmetadatamanager(fabricmetadatamanagerfactory.java:217)     @ oracle.integration.platform.blocks.fabricconfigmanager$mdmholder.<clinit>(fabricconfigmanager.java:200)     ... 5 more caused by: oracle.fabric.common.fabricexception: java.net.malformedurlexception: unknown protocol: oramds: unknown protocol: oramds     @ oracle.integration.platform.common.mdsmetadatamanagerimpl.<init>(mdsmetadatamanagerimpl.java:171)     @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method)     @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:39)     @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:27)     @ java.lang.reflect.constructor.newinstance(constructor.java:513)     @ java.lang.class.newinstance0(class.java:355)     @ java.lang.class.newinstance(class.java:308)     @ oracle.fabric.common.fabricmetadatamanagerfactory.createmetadatamanager(fabricmetadatamanagerfactory.java:213)     ... 6 more caused by: java.net.malformedurlexception: unknown protocol: oramds     @ java.net.url.<init>(url.java:574)     @ java.net.url.<init>(url.java:464)     @ java.net.url.<init>(url.java:413)     @ oracle.integration.platform.common.mdsmetadatamanagerimpl.<init>(mdsmetadatamanagerimpl.java:138)     ... 13 more 

javacode::

iworkflowserviceclient wfsvcclient;             try{               map properties = new hashmap<iworkflowserviceclientconstants.connection_property, string>();              properties.put(iworkflowserviceclientconstants.connection_property.soap_end_point_root, "http://hostname:port");              properties.put(iworkflowserviceclientconstants.connection_property.security_policy_uri, "oracle/wss10_saml_token_client_policy");               properties.put(iworkflowserviceclientconstants.connection_property.management_policy_uri, "oracle/log_policy");           wfsvcclient=workflowserviceclientfactory.getworkflowserviceclient(workflowserviceclientfactory.soap_client,properties,null);          iworkflowcontext wfctx=wfsvcclient.gettaskqueryservice().authenticate(userid, password.tochararray(),oracle.tip.pc.services.identity.config.isconfiguration.getdefaultrealmname()              );             iworkflowcontext adminctx = wfsvcclient.gettaskqueryservice().authenticate(adminuserid, pwd,                                              oracle.tip.pc.services.identity.config.isconfiguration.getdefaultrealmname(),                                              userid);             itaskqueryservice querysvc=wfsvcclient.gettaskqueryservice();             predicate.enablexmlserialization(true);             // build predicate                predicate statepredicate = new predicate(tableconstants.wftask_state_column,                                             predicate.op_neq,                                             iworkflowconstants.task_state_assigned);                     statepredicate.addclause(predicate.and,                                      tableconstants.wftask_numberattribute1_column,                                      predicate.op_is_null,                                      nullparam);                predicate datepredicate = new predicate(tableconstants.wftask_enddate_column,                                             predicate.op_on,                                             new date());                predicate predicate = new predicate(statepredicate, predicate.and, datepredicate);                 // create ordering                ordering ordering = new ordering(tableconstants.wftask_title_column, true, true);                          ordering.addclause(tableconstants.wftask_priority_column, true, true);                 // list of display columns                // columns not specified here, queried task object not hold value.                // example: if title not specified, task.gettitle() return null                // list of comonly used columns, check table below                // note: taskid fetched default. there no need explicitly specity it.                list querycolumns = new arraylist();                  querycolumns.add("tasknumber");                       querycolumns.add("title");                  querycolumns.add("priority");                  querycolumns.add("state");                  querycolumns.add("enddate");                  querycolumns.add("numberattribute1");                  querycolumns.add("textattribute1");                 // list of optional info                // optionalinfo specified can fetched task object                // example: if have specified "customactions", can retrieve                // using task.getsystemattributes().getcustomactions();                // "actions" (all actions) - task.getsystemattributes().getsystemactions()                // "groupactions" (only group actions: actions can permoded user member of group)                //                - task.getsystemattributes().getsystemactions()                // "shorthistory" - task`enter code here`.getsystemattributes().getshorthistory()                list optionalinfo = new arraylist();                  optionalinfo.add("actions");                  //optionalinfo.add("groupactions");                  //optionalinfo.add("customactions");                  //optionalinfo.add("shorthistory");                  // following reserved future use.                   // if need them, please use gettaskdetailsbyid (or) gettaskdetailsbynumber,                  // fetch information related task, includes these                     //optionalinfo.add("attachments");                     //optionalinfo.add("comments");                     //optionalinfo.add("payload");                 list taskslist = querysvc.querytasks(wfctx,                                            querycolumns,                                            optionalinfo,                                            itaskqueryservice.assignment_filter_my_and_group,                                            keyword,                                            predicate,                                             ordering,                                             0,0); // no paging                 // how use paging:                // 1. if need dynamically calculate paging size (or) display/find                 //    out number of pages, user has scroll (like page x of y)                //      call querytasks find out number of tasks returns. using                 //      calculate paging size (the number of taks want in page)                //      call querytasks successively varing startrow , endrow params.                  //      example: if total number of tasks 30 , want paging size                //      of 10, can call (startrow, endrow): (1, 10) (11, 20) (21, 30)                 // 2. if have fixed paging size, keep calling querytasks successively                 //      paging size (if paging size 10, can call (startrow, endrow):                 //      (1, 10) (11, 20) (21, 30) (31, 40).....  until number of tasks returned                 //      less paging size (or) there no more tasks returned                      if (taskslist != null) { // there tasks                   system.out.println("total number of tasks: " + taskslist.size());                   system.out.println("tasks list: ");                  task task = null;                   (int = 0; < taskslist.size(); i++) {                     task = (task) taskslist.get(i);                              system.out.println("task number: " + task.getsystemattributes().gettasknumber());                    system.out.println("task id: " + task.getsystemattributes().gettaskid());                    system.out.println("title: " + task.gettitle());                    system.out.println("priority: " + task.getpriority());                    system.out.println("state: " + task.getsystemattributes().getstate());                    system.out.println();                    // retrive optional info specified                    // use task service, perform operations on task                  }                }         }         catch(workflowexception e){             e.printstacktrace();         }           catch(bpmconfigexception e){             system.out.print("hello");         }  

oramds oracle soa specific thing, developing client runs outside of soa suite? ll have referenced wsdl/xsd , make sure ok in other tool eclipse or soapui


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -