Com.waveset.util.configurationerror :..

hi..
i get an error while instaling the IDM 7.1
with oracle repo ...
com.waveset.util.configurationerror :.. network adapter could not establish connection : sql exception
any suggestions as how to proceed and wats the error??

Your oracle configuration is incorrect. The service isn't running or you some wrong information specified somewhere.
See http://forum.java.sun.com/thread.jspa?threadID=512566

Similar Messages

  • Com.waveset.util.ConfigurationError: Cannot find columns for table 'object'

    I am trying to install IDM on my own laptop and use MS SQL Server 2000 as the repository. I run the create table scripts, copy all the jar files to C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\Idm\WEB-INF\lib. But I still got the following error message:
    com.waveset.util.ConfigurationError: Cannot find columns for table 'object' ==>com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'object'
    Does anyone have any idea of what may cause this problem?
    THANKS!

    I found the solution to this issue.. is that the Database user ID must be set to the schema .. this is the statment that probably did not work:
    CREATE USER <username> FOR LOGIN <login name> with DEFAULT_SCHEMA = <database name>
    In sql 2005 expand the database... open security .. find the user.. right click and select properties.. in the default schema box.. select the SunSync database .. in the schemas owned by this user select the sunsync schema database..
    good luck

  • Com.waveset.util.WavesetException: Missing view id; Missing Account ID

    Hi,
    I have some users in IDM provisioned to LDAP.
    I am now trying to find users and delete them thru the end user interface.
    When i enter the ID, and click search, i get this error
    "com.waveset.util.WavesetException: Missing view id.
    Missing Account ID"
    Here is my WF:
    <WFProcess name='Find WF' maxSteps='0'>
         <Activity id='1' name='Start'>
    <Transition to='Accept User ID'/>
    <WorkflowEditor x='43' y='10'/>
    </Activity>
    <Activity id='2' name='Accept User ID'>
    <ManualAction id='0' name='Enter User ID' timeout='60' syncExec='true'>
    <Owner>
    <ref>$(WF_CASE_OWNER)</ref>
    </Owner>
    <FormRef>
    <ObjectRef type='UserForm' id='#ID#CB00E29B1B211E5E:5673384:1141A79B1FE:-7FF3' name='Enter User ID Form'/>
    </FormRef>
    </ManualAction>
    <Transition to='getView'/>
    <WorkflowEditor x='191' y='10'/>
    </Activity>
    <Activity id='3' name='getView'>
    <Action id='0' name='getView' application='com.waveset.session.WorkflowServices'>
    <Argument name='op' value='getView'/>
    <Argument name='id' value='$(accountId)'/>
    <Argument name='type' value='User'/>
    <Argument name='subject' value='configurator'/>
    <Argument name='authorize' value='true'/>
    <Return from='view' to='user'/>
    </Action>
    <Transition to='Delete User'/>
    <WorkflowEditor x='123' y='73'/>
    </Activity>
    <Activity id='4' name='Delete User'>
    <Action id='0' name='Delete' process='TaskDefinition:Delete User'>
    <Argument name='type' value='User'/>
    <Argument name='accountId' value='$(accountId)'/>
    </Action>
    <Transition to='End'/>
    </Activity>
    <Activity id='5' name='End'>
    <WorkflowEditor x='508' y='10'/>
    </Activity>
    Not sure what the mistake it. Can somebody point out pls?
    Thanks,

    cutepaddy
    Thanks for ur reply. However, it was not of much help.
    The problem now is that, i dont get the suspended case workitems error anymore but, the WF is not doing what it's suppoed to do, i.e., delete the users. The dump shows that all activities and actions are being executed correctly, however, the user still is not deleted. Here are my updated forms and WF
    Form 1:
    Configuration id='#ID#CB00E29B1B211E5E:5673384:1141A79B1FE:-7FF3' name='Accept User ID Form' lock='Configurator#1186027075593' creator='Configurator' createDate='1185855280921' lastModifier='Configurator' lastModDate='1186026775578' lastMod='354' wstype='UserForm'>
    <Extension>
    <Form name='Accept User ID Form' baseContext='variables' objectLocationID='objectName=Accept+Store+ID+Form&isBegin=true&objectPath=0&objectType=UserForm'>
    <Display class='EditForm'>
    <Property name='title' value='Find ID Form'/>
    </Display>
    <Field name='view.waveset.accountId'>
    <Display class='Text'>
    <Property name='title' value='Enter User ID'/>
    <Property name='size'>
    <Integer>20</Integer>
    </Property>
    <Property name='maxLength'>
    <Integer>10</Integer>
    </Property>
    </Display>
    <Validation>
    <cond>
    <not>
    <invoke name='testUser' class='com.waveset.ui.FormUtil'>
    <ref>:display.session</ref>
    <ref>view.waveset.accountId</ref>
    </invoke>
    </not>
    <s>Not Exist</s>
    </cond>
    </Validation>
    </Field>
    <Field name=':complete'>
    <Default>
    <s>true</s>
    </Default>
    </Field>
    </Form>
    </Extension>
    <MemberObjectGroups>
    <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
    </MemberObjectGroups>
    <Properties>
    <Property name='editorOriginalName' value='Accept User ID Form'/>
    </Properties>
    </Configuration>
    Form 2:
    <Configuration id='' name='Search Results Form' lock='Configurator#1186027075593' creator='Configurator' createDate='1185855280921' lastModifier='Configurator' lastModDate='1186026775578' lastMod='354' wstype='UserForm'>
    <Extension>
    <Form name='Seach Results Form' baseContext='variables' noDefaultButtons='true'>
    <Display class='EditForm'/>
    <Field name='MatchTable'>
    <Display class='SimpleTable'>
    <Property name='columns'>
    <List>
    <String>Title</String>
    </List>
    </Property>
    </Display>
    <FieldLoop for='accountId' in='view.waveset.accountId'>
    <Field name='XYZ'>
    <Display class='Checkbox'>
    <Property name='Label' value='$(accountId)'/>
    </Display>
    </Field>
    </FieldLoop>
    <Field name='deleteuserbutton'>
    <Field name=':complete'>
    <Default>
    <s>true</s>
    </Default>
    </Field>
    <Field name=':formButton' button='true'>
    <Display class='Button'>
    <Property name='command' value='Save'/>
    <Property name='value' value='Continue'/>
    <Property name='label' value='Delete'/>
    </Display>
    </Field>
    <Field name='formButton'>
    <Expansion>
    <ref>:formButton</ref>
    </Expansion>
    </Field>
    </Field>
    </Field>
    </Form>
    </Extension>
    <MemberObjectGroups>
    <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
    </MemberObjectGroups>
    <Properties>
    <Property name='editorOriginalName' value='Accept User ID Form'/>
    </Properties>
    </Configuration>
    WF:
    <TaskDefinition id='#ID#CB00E29B1B211E5E:5673384:1141A79B1FE:-7FDC' name='Find User WF' lock='Configurator#1186881293625' creator='Configurator' createDate='1185857988234' lastModifier='Configurator' lastModDate='1186880993625' lastMod='185' taskType='Workflow' executor='com.waveset.workflow.WorkflowExecutor' suspendable='true' syncControlAllowed='true' execMode='sync' execLimit='0' resultLimit='0' resultOption='delete' visibility='runschedule' progressInterval='0'>
    <Extension>
    <WFProcess name='Find User WF' maxSteps='0'>
    <Activity id='0' name='Start'>
    <Transition to='Accept User ID'/>
    <WorkflowEditor x='99' y='47'/>
    </Activity>
    <Activity id='1' name='Accept User ID'>
    <ManualAction id='0' name='Enter User ID' timeout='60' syncExec='true'>
    <Owner>
    <ref>$(WF_CASE_OWNER)</ref>
    </Owner>
    <FormRef>
    <ObjectRef type='UserForm' id='#ID#CB00E29B1B211E5E:5673384:1141A79B1FE:-7FF3' name='Accept User ID Form'/>
    </FormRef>
    </ManualAction>
    <Transition to='Display Results'/>
    <WorkflowEditor x='183' y='45'/>
    </Activity>
    <Activity id='2' name='Display Results'>
    <ManualAction id='0' name='Results' timeout='60' syncExec='true'>
    <Owner>
    <ref>$(WF_CASE_OWNER)</ref>
    </Owner>
    <FormRef>
    <ObjectRef type='UserForm' id='#ID#CB00E29B1B211E5E:-435E4C45:114554237BF:-7F8B' name='Search Results Form'/>
    </FormRef>
    </ManualAction>
    <Transition to='Delete User'/>
    <WorkflowEditor x='266' y='99'/>
    </Activity>
    <Activity id='3' name='Delete User'>
    <Action id='0' name='Delete' process='TaskDefinition:Delete User'>
    <Argument name='type' value='User'/>
    <Argument name='accountId' value='$(view.waveset.accountId)'/>
    </Action>
    <Action id='1'>
    <expression>
    <block name='dump2'>
    <invoke name='dumpFile'>
    <invoke name='getTask'>
    <ref>WF_CONTEXT</ref>
    </invoke>
    <s>c:\dump.xml</s>
    </invoke>
    </block>
    </expression>
    </Action>
    <Transition to='End'/>
    <WorkflowEditor x='411' y='101'/>
    </Activity>
    <Activity id='4' name='End'>
    <WorkflowEditor x='529' y='121'/>
    </Activity>
    </WFProcess>
    </Extension>
    <MemberObjectGroups>
    <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
    </MemberObjectGroups>
    <Properties>
    <Property name='editorOriginalName' value='Find User WF'/>
    </Properties>
    </TaskDefinition>
    Thanks in advance for ur help

  • Com.waveset.util.WavesetException: User object null has no cache

    In the anonymous context i receive this error when i try and run the PasswordGenerator.
    com.waveset.provision.PasswordGenerator com.waveset.util.WavesetException: User object null has no cache, it cannot resolve the reference to ObjectGroup object Top.
    It works fine when i run it logged in as an end user or admin. Any ideas

    Yes you are correct i am in as an anonymous user trying to create a forgot password workflow. I was having issues with the password Generator because it required a WSUser object and in other posts it stated you could pass in a null object. However, in the anonymous context you cannot do that so once i discovered the account id in my workflow i had to call getObject for type User with the account id and pass that into the generate password method.
    Then it worked.
    Thanks

  • Com.waveset.util.WSAuthorizationException: Modify access denied to Subject

    Can anybody tell me what this exception really means.
    com.waveset.util.WSAuthorizationException: Modify access denied to Subject xyz on User: u1xxx
    Thanks.

    This means that User u1xxx does not have the necessary scope and capabilities to modify user xyz

  • Com.waveset.util.JdbcUtil.queryRecords

    Hi,
    I am trying to use the com.waveset.util.JdbcUtil.queryRecords
    method to return a set of rows from a database table.
    The method returns a List of Maps, such as:
    <List>
    <Map>
    <MapEntry key='USERNAME' value='Peter'/>
    <MapEntry key='LAST_CHANGED' value='2007-08-09'/>
    </Map>
    <Map>
    <MapEntry key='USERNAME' value='Paul'/>
    <MapEntry key='LAST_CHANGED' value='2007-05-11'/>
    </Map>
    </List>
    where each <Map>...</Map> is a row from the databse table.
    Is it possible to write and expression to return
    the LAST_CHANGED entry, given the USERNAME?
    So for example, if the <List> above is assigned to a variable
    called 'records', I want to write something like:
    <ref>records[USERNAME=Paul]</ref>
    which would evaluate to:
    <s>2007-05-11</s>
    Does anyone know how to write this?
    The expression <ref>records[USERNAME=Paul]</ref> does not work.
    Thanks,
    John I

    This means that User u1xxx does not have the necessary scope and capabilities to modify user xyz

  • When will we get a com.waveset.util.smtp interface?

    Hellos.
    Are there plans to expose smtp methods to the XPRESS invoke?
    Many times is there a need to fire off an email from a FORM rather than a WorkFlow. At present it is impossible. Dont forget, a WorkFlow may also use these methods.
    Sending email is quite straightforward, just writing bytes to a Socket. However, writing own code and adding it to IDM is NOT the way forwards. The fundamental methods should be available within the IDM product.. jdbc is, why not smtp?
    GF

    I put your postcode in link below however if this was right I don’t think
    you would be posting, if you have current problem you may like to post your
    router stats and BT speed test for others to offer some advice.
    https://www.btwholesale.com/pages/static/Community/Broadband_Community/Coverage/ADSL_Availibility_Ch...#
    Mortgage Advisor 2000-2008
    Green Energy Advisor 2008-2010
    Charity Health Care Provider Advisor 2010-
    I'm alright Jack....

  • Documentation for com.waveset.provision.WorkflowServices

    There seems to be little documentation I can find that describes the various options (specifically, the various <Argument> names) that are used by
    the WorkflowServices object.
    My immediate challenge is simply sending an email from a workflow. I keep getting the error message: "com.waveset.util.WavesetException: msgBody must be specified." I'm assuming that the Arguments passed to the task should match the variable names used by the email template.
    Also, there seem to be inconsistencies in naming: 'to' vs. 'toAddress', 'from' vs. 'fromAddress', etc. Again, due to templates?
    Thanks in advance for help/pointers.

    I ran in to a similar problem.
    It turned out that my email template was corrupt. I also didn't find out what the argument name should be. msgBody didn't seem to work.
    BR
    Per

  • Calling/Invoking com.waveset.session.WorkflowServices

    Greetings;
    I'd like to enable / disable a user and/or resources from a RemoteSession.
    I've executed enableUser and disableUser from a workflow before, but am baffled about how I would do this from an external java class through a RemoteSession.
    My first thought would be to create a new com.waveset.session.WorkflowServices and use that, but the javadocs aren't helping my feeble mind.
    Anyone have any other suggestions?
    Cheers,
    Sean.

    Hi Sean,
    while it might work to do this with calling workflow services directly it is not the way that is meant to achieve your goal. Views are... Please try something similar to the code below. In order to see the options you have in the view remove the comment in front of the system.out.
    Regards,
    Patrick
    import com.waveset.object.GenericObject;
    import com.waveset.session.Session;
    import com.waveset.session.SessionFactory;
    import com.waveset.util.EncryptedData;
    import com.waveset.util.WavesetException;
    import java.util.HashMap;
    public class Test {
        private Session session = null;
        public static void main(String[] args) throws Exception {
            Test test = new Test();
            test.disable("testid001");
        private void disable(String username) throws WavesetException {
            Session session = getSession();
            String viewId = "disable:"+username;
            GenericObject view = session.checkoutView(viewId,new HashMap());
            view.put("resourceAccounts.selectAll",true);
            //System.out.println(view.toXml());
            session.checkinView(view,new HashMap());
        private Session getSession() throws WavesetException {
            if (session!=null) {
                try {
                    session.getUser();
                    return session;
                } catch (Exception e) {
                    // maybe the session has expired lets open a new one
            EncryptedData ed = new EncryptedData("configurator");
            session = SessionFactory.getConfiguratorSession("http://localhost:8080/idm/servlet/rpcrouter2","configurator",ed,false);
            return session;
    }

  • Java.lang.NoClassDefFoundError: com/sap/util/monitor/jarm/TaskMonitor

    hi all,
    i was trying to build and try a web service in my project.
    but at runtime it keeps throwing the following error(  log trace)
    i am unable to figure out the source of error.
    is it in the jco or anything else
    thanks in advance
    1.5#001143C809E500470000002E00000B8C00040CBB0F05957C#1139897457152#com.sap.engine.services.httpserver##com.sap.engine.services.httpserver#Guest#2####a9a4e0009d2011dacd42001143c809e5#SAPEngine_Application_Thread[impl:3]_16##0#0#Error#1#/System/Server#Plain###User Guest, IP address
    HTTP request processing failed. HTTP error [401] will be returned. The error is [Cannot authenticate the user.No details available].#
    #1.5#001143C809E500530000001F00000B8C00040CBB0FEBCF9E#1139897472233#com.sap.engine.services.ejb#sap.com/xappsospservicebundle~enterpriseapp#com.sap.engine.services.ejb#I020381E1#1839####b13de9b09d2011da944e001143c809e5#SAPEngine_Application_Thread[impl:3]_24##0#0#Error##Java###
    [EXCEPTION]
    #1#com.sap.engine.services.ejb.exceptions.BaseEJBException: Exception in method getRelatedReports.
         at com.sap.xapps.osp.orgmgmt.servicebundle.sbejb.OrgMgmtSBLocalLocalObjectImpl10.getRelatedReports(OrgMgmtSBLocalLocalObjectImpl10.java:121)
         at com.sap.xapps.osp.orgmgmt.servicebundle.facade.OrgMgtFacadeBean.getRelatedReports(OrgMgtFacadeBean.java:425)
         at com.sap.xapps.osp.orgmgmt.servicebundle.facade.OrgMgtFacadeLocalLocalObjectImpl10.getRelatedReports(OrgMgtFacadeLocalLocalObjectImpl10.java:103)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
         at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
         at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
         at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
         at SoapServlet.doPost(SoapServlet.java:51)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: java.lang.NoClassDefFoundError: com/sap/util/monitor/jarm/TaskMonitor
         at com.sap.mw.jco.util.Jarm.getRequestMonitor(Jarm.java:57)
         at com.sap.mw.jco.JCO$Repository.getFunctionInterface(JCO.java:19069)
         at com.sap.mw.jco.JCO$BasicRepository.getFunctionTemplate(JCO.java:18151)
         at com.sap.xapps.osp.orgmgmt.servicebundle.common.OrgMgmtSBHelper.createFunction(OrgMgmtSBHelper.java:491)
         at com.sap.xapps.osp.orgmgmt.servicebundle.impl.OrgMgmtBusinessDelegate.getRelatedReports(OrgMgmtBusinessDelegate.java:1273)
         at com.sap.xapps.osp.orgmgmt.servicebundle.sbejb.OrgMgmtSBBean.getRelatedReports(OrgMgmtSBBean.java:170)
         at com.sap.xapps.osp.orgmgmt.servicebundle.sbejb.OrgMgmtSBLocalLocalObjectImpl10.getRelatedReports(OrgMgmtSBLocalLocalObjectImpl10.java:103)
         ... 27 more

    hi,
    thanks for the replies.
    well i guess that(user authentication) is not the problem.
    Coz that happens even before i start the web service.
    i guess the problem is that the appl. is not finding the TaskMonitor class ( see the last 10 lines of the log).
    does anyone have a solution for that.
    thanks

  • Order cannot be cast to com.tangosol.util.MapEvent

    This code is causing an exception. How should I be writing this filter? I want to listen for events when the status changes for one specific Order object. That Order has an integer key property which is the same integer key value used to store it in the cache. The code causing the exception is:
        public void addStatusChangeListener() {
                Filter f1 = new ValueChangeEventFilter("OrderStatus");
                Filter f2 = new EqualsFilter("Key", this.getKey());
                Filter f3 = new AndFilter(f1,f2);
                Filter statusChangeFilter = new MapEventFilter(MapEventFilter.E_UPDATED, f3);
                System.out.println("ADD STATUS CHANGE LISTENER "+this.symbol+" "+this.getKey());
                this.getCache().addMapListener(this , statusChangeFilter, false);
    2009-09-18 10:52:54.796/238.692 Oracle Coherence GE 3.5/459 <Error> (thread=DistributedCache, member=1):
    Exception occured during filter evaluation: MapEventFilter(mask=UPDATED, filter=
    AndFilter(ValueChangeEventFilter(extractor=.OrderStatus()), EqualsFilter(.Key(), 189000006))); removing the filter...
    2009-09-18 10:52:54.796/238.692 Oracle Coherence GE 3.5/459 <Error> (thread=DistributedCache, member=1):
    java.lang.ClassCastException: oms.Order cannot be cast to com.tangosol.util.MapEvent
            at com.tangosol.util.filter.ValueChangeEventFilter.evaluate(ValueChangeEventFilter.java:69)
            at com.tangosol.util.filter.AllFilter.evaluate(AllFilter.java:56)
            at com.tangosol.util.filter.MapEventFilter.evaluate(MapEventFilter.java:178)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.prepareDispatch(DistributedCache.CDB:82)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.postInvoke(DistributedCache.CDB:10)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.invoke(DistributedCache.CDB:117)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onInvokeRequest(DistributedCache.CDB:50)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$InvokeRequest.run(DistributedCache.CDB:1)
            at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:12)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:9)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:136)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(DistributedCache.CDB:3)
            at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:37)
            at java.lang.Thread.run(Thread.java:619)Thanks,
    Andrew

    Ok, but isn't it just something wrong with how I wrote/used that filter?
    -Andrew
    public class Order implements Cloneable, Comparable, java.io.Serializable, MapListener {
        private String symbol = null;
        private OrderStatus orderStatus = OrderStatus.PENDING_NEW;
        private int id = 0; // java int max = 2,147,483,647
        private transient ArrayList<OrderStatusChangeListener> statusChangeListeners = new ArrayList<OrderStatusChangeListener>();
        public static NamedCache getCache() {
            if (cache == null) {
                System.out.println("Order...CacheFactory.getCache(\"orders\")");
                cache = CacheFactory.getCache("orders");
            return cache;
        public void send() {
            getCache().put(this.id, this);
        public static int sendMultiple(Iterable<Order> orders){
            int counter=0;
            HashMap m = new HashMap();
            for (Order o:orders){
                m.put(o.getKey(),o);
                counter++;
            getCache().putAll(m);
            return counter;
        public static class CancelProcessor extends AbstractProcessor {
            public Object process(InvocableMap.Entry entry) {
                Order o = (Order)entry.getValue();
                if (o.cancelCount == 0) {
                    o.cancelCount = 1;
                } else {
                    logger.info("ignoring dup. cancel req on " + o.symbol + " id=" + o.id);
                return o.cancelCount;
        public void cancel() {
            Filter f = new EqualsFilter("getCancelCount", 0);
            UpdaterProcessor up1 = new UpdaterProcessor("setCancelCount", new Integer(1));
            UpdaterProcessor up2 = new UpdaterProcessor("setCancelSubmittedTime", Base.getSafeTimeMillis() );
            CompositeProcessor cp = new CompositeProcessor(new InvocableMap.EntryProcessor[] {up1,up2});
            ConditionalProcessor x = new ConditionalProcessor(f, cp);
            getCache().invoke(key, x);
        private static NumberIncrementor ni1 = new NumberIncrementor("CancelCount", 1, false);
        public static void cancelMultiple(Collection<Integer> orderIds){
            getCache().invokeAll(orderIds, ni1);
        public static void cancelAllByAccount(String account){
            getCache().invokeAll( new EqualsFilter("getAccount", account), ni1);
        public void cancelAllowingMultipleCancelsOfThisOrder() {
            System.out.println("cancelAllowingMultipleCancelsOfThisOrder symbol=" + symbol + " key="+key+ " id=" + this.id);
            getCache().invoke(key, ni1);
            UpdaterProcessor up = new UpdaterProcessor("setCancelSubmittedTime", Base.getSafeTimeMillis() );
            getCache().invoke(key, up);
        public void entryInserted(MapEvent mapEvent) {
        public void entryUpdated(MapEvent mapEvent) {
            Order o = (Order)mapEvent.getNewValue();
            fireStatusChange(o);
        public void entryDeleted(MapEvent mapEvent) {
        public void removeStatusChangeListener(OrderStatusChangeListener listener) {
            synchronized (statusChangeListeners) {
                statusChangeListeners.remove(listener);
                if (statusChangeListeners.size()==0) {
                    this.getCache().removeMapListener(this, statusChangeFilter);
        private transient Filter statusChangeFilter=null;
        public void addStatusChangeListener(OrderStatusChangeListener listener) {
            if (statusChangeFilter==null) {
                Filter f1 = new ValueChangeEventFilter("OrderStatus");
                Filter f2 = new EqualsFilter("Key", this.getKey());
                Filter f3 = new AndFilter(f1,f2);
                statusChangeFilter = new MapEventFilter(MapEventFilter.E_UPDATED, f3);
            System.out.println("ADD STATUS CHANGE LISTENER "+this.symbol+" "+this.getKey());
            synchronized (statusChangeListeners) {
                if (statusChangeListeners.size()==0) {
                    this.getCache().addMapListener(this , statusChangeFilter, false);
                statusChangeListeners.add(listener);
        private void fireStatusChange(Order o ) {
            System.out.println("FIRE STATUS CHANGE: starting...");
            // do not depend on the firing of a status change to mean that the
            // status did certainly change.  Use the firing of status change as a
            // trigger to examine the order's status w/getStatus().
            System.out.println("1");
            synchronized (statusChangeListeners) {
                System.out.println("2");
                List<OrderStatusChangeListener> asdf = new LinkedList<OrderStatusChangeListener>(statusChangeListeners);
                System.out.println("3");
                for (OrderStatusChangeListener x : asdf) {
                    System.out.println("4");
                    try {
                        System.out.println("FIRE STATUS CHANGE: "+x);
                        x.dispatchOrderStatusChange(o);
                    } catch (java.util.ConcurrentModificationException e) {
                        logger.error("** fireStatusChange: ConcurrentModificationException " + e.getMessage());
                        logger.error(e.getStackTrace());
                        e.printStackTrace();
            System.out.println("FIRE STATUS CHANGE: done...");
        public int compareTo(Object o) { //assumes ID allways int.
            return this.key - ((Order)o).key;
        public boolean equals(Object o) {
            return (this.key == ((Order)o).key);
        public void setStatus(OrderStatus orderStatus) {
            this.orderStatus = orderStatus;
        public OrderStatus getStatus() {
            return orderStatus;
        public Integer getKey(){
            return key;
        private Integer key;
        public Order() {
            id = generateId();
            key=new Integer(id);
        public Object clone() {
            try {
                Order order = (Order)super.clone();
                order.setId(order.generateId());
                return order;
            } catch (CloneNotSupportedException e) {
                e.printStackTrace();
            return null;
        public static int generateId() {
            idwLock.lock();
            try {
                if (nextId == flipOverId) {
                    // redo this w/a number incrementor passing in null for the member variable
    //                ValueManipulator vm=null;
    //                NumberIncrementor ni = new NumberIncrementor(vm, 1, false);
                    NamedCache omsCache = CacheFactory.getCache("oms");
                    omsCache.lock("high_order_id");
                    Integer i = (Integer)omsCache.get("high_order_id");
                    if (i==null) i=188; // change to 1 once legacy is gone
                    omsCache.put("high_order_id", ++i);
                    omsCache.unlock("high_order_id");
                    flipOverId = (i+1) * MAX_ORDERS_PER_TRADER_ID;
                    nextId = (MAX_ORDERS_PER_TRADER_ID * i)+1;
                    return nextId;
                } else {
                    return ++nextId;
            } finally {
                idwLock.unlock();
        public boolean isCancelRequestedOrIsCanceled() {
            // change to cancelrequested lock, not ack lock
            if (orderStatus==OrderStatus.CANCELED)
                return true;
            //  ValueExtractor extractor = new ReflectionExtractor("getCancelCount");
            //  int cc = (Integer)cache.invoke( this.ID , extractor );
            Order o = (Order)getCache().get(this.id);
            int cc = o.getCancelCount();
            return cc > 0 || o.orderStatus == OrderStatus.CANCELED;
        public void setId(int Id) {
            this.id = Id;
        public int getId() {
            return id;
    }

  • Error package com.darwinsys.util does not exist

    Hi,
    i keep getting the following error:
    "error package com.darwinsys.util does not exist"
    its refering to one of the libraries ive placed in my code. Ive downloaded this library but i dont know where to install it.
    Can anyone help?
    its really urgent
    thanx
    cybersurfur

    java -cp .;c:\scientists\darwin.jar
    MyProgramam i supposed to place the above code where i had
    previous put
    import com.darwinsys.util.*;
    No. The command above is how you run your program. I assumed you had already compiled it. To compile it you need the command
    javac -classpath .;c:\javacooksrc2\javacooksrc2.jar MyProgramAll the classpath does is tell the java compiler or the JVM where to find classes that are needed to compile/run your program.

  • Com.tangosol.util.AssertionException

    Getting this exception intermittently in my storage nodes (total of 4):
    23:54:16,092 ERROR [Logger@9260286 3.6.0.2] cluster (log:3) - 2012-05-01 23:54:16.087/2394.969 Oracle Coherence GE 3.6.0.2 <Error> (thread=DistributedCache:MessageDistributedCacheService,
                   member=7): Terminating PartitionedCache due to unhandled exception: com.tangosol.util.AssertionException
    23:54:16,126 ERROR [Logger@9260286 3.6.0.2] cluster (log:3) - 2012-05-01 23:54:16.087/2394.969 Oracle Coherence GE 3.6.0.2 <Error> (thread=DistributedCache:MessageDistributedCacheService,
                   member=7):
    com.tangosol.util.AssertionException:
         at com.tangosol.coherence.Component._assertFailed(Component.CDB:12)
         at com.tangosol.coherence.Component._assert(Component.CDB:3)
         at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheRequest$Poll.onCompletion(DistributedCacheRequest.CDB:15)
         at com.tangosol.coherence.component.net.Poll.close(Poll.CDB:13)
         at com.tangosol.coherence.component.net.Poll.onResponded(Poll.CDB:32)
         at com.tangosol.coherence.component.net.Poll.onResponse(Poll.CDB:3)
         at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheRequest$Poll.onResponse(DistributedCacheRequest.CDB:16)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:26)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    Version from the the manifest:
    Specification-Version: 3.6.0.2
    Implementation-Build: 18470
    This happens under the following scenario:
    I have 4 other nodes that are concurrently writing to the same cache using individual put() operations, about 200k objects in total
    Anybody have any ideas?
    Thanks

    Hi Carl,
    I guess the issue when the limit is exceeding.
    Probably you can try increasing the packet Size and run the test
    For more info:
    http://wiki.tangosol.com/display/COH33UG/Production+Checklist#ProductionChecklist-LargeClusterConfiguration
    Let me know the results.
    Thanks,
    Ashish

  • Java.io.NotSerializableException: com.tangosol.util.internal.ConcurrentCoun

    Hi,
    I am working on a small prototyep project trying to understand how coherence works.
    I have a object that creates an instance of entry processor and invokes the cache. I get following error. Entry processor is serializable - the app can write an instance of EP into a file.
    Using same setup if I merely call put() it works fine for me.
    Any idea what coherence is doing here ?
    Thanks
    ~s
    ===
    (Wrapped) com.tangosol.util.internal.ConcurrentCounter) java.io.NotSerializableException: com.tangosol.util.internal.ConcurrentCounter
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.writeObject(Unknown Source)
    at java.util.Hashtable.writeObject(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
    at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.writeObject(Unknown Source)
    at java.util.Hashtable.writeObject(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
    at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
    at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
    at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)

    The problem is fixed.
    In my EP, process() was returning "entry" instead of modified object. Comparing my code with some other samples helped me.
    So it is all down to my mistake.
    Thanks
    ~s

  • Instantiate com.waveset.object.Type into Type[]

    I am trying to instantiate com.waveset.object.Type into Type[]. I am trying execute method exportObjects(Type[] types, java.lang.String filename, BulkMonitor monitor). I can write it in java doing something like _wsSess.exportObjects(new Type[]{Type.findType(type)}, out, null); but having trouble doing in xpress or javascript. Please help. Thanks.

    Hi,
    To get all the types, you can use:
    <invoke name='getTypes' class='com.waveset.object.Type'/>
    to get specific ones:
    <block>
    <set name='typeList'>
    <list>
    <invoke name='getType' class='com.waveset.object.Type'>
    <s>Resource</s>
    </invoke>
    <invoke name='getType' class='com.waveset.object.Type'>
    <s>User</s>
    </invoke>
    </list>
    </set>
    <invoke name='toArray'>
    <ref>typeList</ref>
    </invoke>
    </block>
    hope this helps
    Regards
    Arjun

Maybe you are looking for