ERROR while performing streaming notification on office365

Iam trying to use stream notification on office 365 using the below the code, what i have done is created two resources (room1 and room2) in office 365 and subscribing both the rooms using service account which has impersonation permission, subscription
is successful but as soon as the streaming connection is opened it disconnects and throw the below error. I tried the same code with two users and it works fine this issue is with the rooms and both the rooms have the same groupinginformation when i do autodiscovery
microsoft.exchange.webservices.data.ServiceLocalException: You must add at least one subscription to this connection before it can be opened. at microsoft.exchange.webservices.data.StreamingSubscriptionConnection.open(StreamingSubscriptionConnection.java:291)
at test.Test1$Devent.subscriptionErrorDelegate(Test1.java:94) at microsoft.exchange.webservices.data.StreamingSubscriptionConnection.internalOnDisconnect(StreamingSubscriptionConnection.java:348) at microsoft.exchange.webservices.data.StreamingSubscriptionConnection.onRequestDisconnect(StreamingSubscriptionConnection.java:315)
at microsoft.exchange.webservices.data.StreamingSubscriptionConnection.hangingRequestDisconnectHandler(StreamingSubscriptionConnection.java:576) at microsoft.exchange.webservices.data.HangingServiceRequestBase.internalOnDisconnect(HangingServiceRequestBase.java:441)
at microsoft.exchange.webservices.data.HangingServiceRequestBase.disconnect(HangingServiceRequestBase.java:391) at microsoft.exchange.webservices.data.GetStreamingEventsResponse.readElementsFromXml(GetStreamingEventsResponse.java:85)
CODE using EWS Java 2.0 API: ExchangeService service = new ExchangeService(); ExchangeCredentials credentials = new WebCredentials("[email protected]","password","in.onmicrosoft.com"); service.setCredentials(credentials);
URI uri = new URI(office 365 url);
service.setUrl(uri);
WellKnownFolderName sd = WellKnownFolderName.Calendar;
FolderId folderid = new FolderId(sd);
List<FolderId> folder = new ArrayList<FolderId>();
folder.add(folderid);
ImpersonatedUserId impersonateduserid = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, "[email protected]");
service.setImpersonatedUserId(impersonateduserid);
StreamingSubscription subscription = service.subscribeToStreamingNotifications(folder, EventType.Created, EventType.Deleted, EventType.Modified);
System.out.println("sid=="+subscription.getId());
ImpersonatedUserId impersonateduserid1 = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, "[email protected]");
service.setImpersonatedUserId(impersonateduserid1);
StreamingSubscription subscription1 = service.subscribeToStreamingNotifications(folder, EventType.Created, EventType.Deleted, EventType.Modified);
System.out.println("sid1=="+subscription1.getId());
StreamingSubscriptionConnection conn = new StreamingSubscriptionConnection(service,1);
conn.addSubscription(subscription);
conn.addSubscription(subscription1);
conn.addOnNotificationEvent(new Nevent());
conn.addOnDisconnect(new Devent());
conn.open();
public class Nevent implements INotificationEventDelegate{
@Override
public void notificationEventDelegate(Object arg0,
NotificationEventArgs arg1) {
System.out.println("event");
public class Devent implements ISubscriptionErrorDelegate{
@Override
public void subscriptionErrorDelegate(Object arg0,
SubscriptionErrorEventArgs arg1) {
System.out.println("disconnect");
StreamingSubscriptionConnection connection = (StreamingSubscriptionConnection)arg0;
try {
System.out.println("connection=="+connection.getIsOpen());
connection.open();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();

Hi,
Could you check if you have prevented 'Partial clearing' in the 'Amount rule'  (rule 1) of the clearing variant.
You can try using rule space ' No amount restrictions'.
regards,
David

Similar Messages

  • Error while performing Risk Analysis at user level for a cross system user

    Dear All,
    I am getting the below error, while performing the risk analysis at user level for a cross system (Oracle) user.
    The error is as follows:
    "ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.connector.exceptions.BaseResourceException: Cannot get connection for 120 seconds. Possible reasons: 1) Connections are cached within SystemThread(can be any server service or any code invoked within SystemThread in the SAP J2EE Engine), 2) The pool size of adapter "SAPJ2EDB" is not enough according to the current load of the system or 3) The specified time to wait for connection is not enough according to the pool size and current load of the system. In case 1) the solution is to check for cached connections using the Connector Service list-conns command, in case 2) to increase the size of the pool and in case 3) to increase the time to wait for connection property. In case of application thread, there is an automatic mechanism which detects unclosed connections and unfinished transactions.RC:1
    Can anyone please help.
    Regards,
    Gurugobinda

    Hi..
    Check the note # SAP Note 1121978
    SAP Note 1121978 - Recommended settings to improve peformance risk analysis.
    Check for the following...
    CONFIGTOOL>SERVER>MANAGERS>THREADMANAGER
    ChangeThreadCountStep =50
    InitialThreadCount= 100
    MaxThreadCount =200
    MinThreadCount =50
    Regards
    Gangadhar

  • DPM encountered an error while performing an operation for \\?\Volume{fc1f0549-9865-4349-b4df-8596a19ad7fe}\FolderPath\Work\ on FileServer (ID 2033 Details: The system cannot find the path specified (0x80070003))

    DPM encountered an error while performing an operation for \\?\Volume{fc1f0549-9865-4349-b4df-8596a19ad7fe}\FolderPath\Work\ on FileServer (ID 2033 Details: The system cannot find the path specified (0x80070003))
    Can I know what this mean? It completely fail all entire job.
    Backup was on half way go, it already took about 3TB data and it fail.

    Hi Oneoa,
    Please verify the antivirus exeptions. Look at this two links for more information:
    http://technet.microsoft.com/en-us/library/ff399439.aspx
    http://support.microsoft.com/kb/928840
    I hope this solves your problem, please post your progress so I may assist you further.
    Best Regards
    Robert Hedblom
    MVP DPM
    Check out my DPM blog @ http://robertanddpm.blogspot.com

  • System is giving ABAP run time error while perform LT06 or create TO with r

    Hi SAP WM Gurus,
    System is giving ABAP run time error while perform LT06 or create TO with respect to posting change notice, below are runtime analysis details.
    Short dump has not been completely stored. It is too big.
    P_MENGA = P_MENGE.
    007940       P_UMREZ = 1.
    007950       P_UMREN = 1.
    Can you give any idea on this issue.
    Thanks and Regards,
    SHARAN.

    Hi,
    Go to Tcode ST22 and mentione the dump code there and check.
    Also take help[ of Abapers to fix it.
    Thanks
    Utsav

  • ABAP run time error while perform LT06 or create TO with respect to posting

    Hi SAP WM Gurus,
    System is giving ABAP run time error while perform LT06 or create TO with respect to posting change notice, below are runtime analysis details.
    >> Short dump has not been completely stored. It is too big.
    >       P_MENGA = P_MENGE.
    007940       P_UMREZ = 1.
    007950       P_UMREN = 1.
    Can you give any idea on this issue.
    Thanks and Regards,
    SHARAN.

    This part is just the place in the program where the error occured, but why the error occured is mentioned earlier in the dump.
    Maybe you have a too big number in the field and hence a field overflow, maybe you have a character instead of a number in the field.
    Read the dump from the beginning. if you dont know how to read a dump,then try to get help from any local Abaper.

  • Getting error while doing stream setup through OEM

    hi all,
    I am getting following error while doing stream setup for user stradmin (ORCL) db to stradmin_dest (orcldestination) on same windows m/c.
    java.sql.SQLException: ORA-20204: User does not exist: STRADMIN ORA-06512: at "SYSMAN.MGMT_USER", line 122 ORA-06512: at "SYSMAN.MGMT_JOBS", line 139 ORA-06512: at "SYSMAN.MGMT_JOBS", line 78 ORA-06512: at line 1
    I provided everything (host credential, usernames for new users and table capture)
    its urgent
    Help in advance

    hi,
    thanks for reply but DB user exists. It seems to be problem of WIN environment with Streams. I could solve it. But after whole setup and starting Apply and capture capture process goes for hours, not replicated at destination database. Normally how fast is replcation when done for small db like scott on table emp.
    thanks

  • Error while performing Oracle 11g upgrade

    Hi,
    I am facing error while performing an Oracle upgrade from 10.2.0.4 to 11.2.0.2.
    DBUA was disconnected with error Ora 1092 Oracle instance terminated.
    When tried to run manual upgrade it is showing the below error,
    SQL> @catupgrd.sql
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>
    DOC> The first time this script is run, there should be no error messages
    DOC> generated; all normal upgrade error messages are suppressed.
    DOC>
    DOC> If this script is being re-run after correcting some problem, then
    DOC> expect the following error which is not automatically suppressed:
    DOC>
    DOC> ORA-00001: unique constraint (<constraint_name>) violated
    DOC> possibly in conjunction with
    DOC> ORA-06512: at "<procedure/function name>", line NN
    DOC>
    DOC> These errors will automatically be suppressed by the Database Upgrade
    DOC> Assistant (DBUA) when it re-runs an upgrade.
    DOC>
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>#
    DOC>######################################################################
    DOC>######################################################################
    DOC> The following statement will cause an "ORA-01722: invalid number"
    DOC> error if the user running this script is not SYS. Disconnect
    DOC> and reconnect with AS SYSDBA.
    DOC>######################################################################
    DOC>######################################################################
    DOC>#
    no rows selected
    DOC>######################################################################
    DOC>######################################################################
    DOC> The following statement will cause an "ORA-01722: invalid number"
    DOC> error if the database server version is not correct for this script.
    DOC> Perform "ALTER SYSTEM CHECKPOINT" prior to "SHUTDOWN ABORT", and use
    DOC> a different script or a different server.
    DOC>######################################################################
    DOC>######################################################################
    DOC>#
    SELECT TO_NUMBER('MUST_BE_11_2') FROM v$instance
    ERROR at line 1:
    ORA-01722: invalid number
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Please help ASAP as this is a production system.
    Thanks,
    Prabhakar
    Edited by: prabhakaryc on Jun 19, 2011 2:47 PM

    prabhakaryc wrote:
    Hi Orkun Gedik,
    >
    > Thank you for your quick reply.
    >
    > Yes i am running this on windows and i have set with correct ORACLE_HOME (11202 directory)
    >
    > Do you think any other reason ? 
    >
    > I have seen this error log inside of catupgrd.sql and it seems to be very known error but i am not finding the solution anywhere ?
    >
    > Your quick reply helps me a lot.
    >
    > Thanks,
    > Prabhakar
    Hi Prabhakar,
    >> DBUA was disconnected with error Ora 1092 Oracle instance terminated.
    But, as far as I understand that you didn't completed DB upgrade succesfully. Under this circumstance, you shouldn't change ORACLE_HOME variable to 11.2.0.2. I suggest you that complete Oracle upgrade (restart DBUA) and do not execute upgrade procedures, manually.
    Best regards,
    Orkun Gedik

  • Connection error while performing basic settings SOLMAN 4.0 SP12

    Hi All,
    We are currently facing a problem while performing Solution Manager 4.0 (SP12) basic configurations through the IMG Wizard. Within the "Initial Configuration Part I" section, an error while connecting to SAP is obtained (This is the full error message "Error creating communication to SAP Service and Support"). After checking at TX SM59, it was noticed that the RFC connections SAP-OSS y SAP-OSS-LIST-O01 (what are supposed to be created in previous steps by copying SAPOSS connection) were no created. We created them both manually (also tested) and everything was ok. We started the Wizard again, and the same error was obtained. However, it was noticed that the SAP-OSS RFC connection had been deleted. The system log shows the following:
    00789 - Dialog work process  No. 000 - XXXXXX - EQUIPO - 1 - SM_CONFIG_WZ - M_CONFIG_WZ_START - T - Transaction Problem - STSK
    The same scenario occurs every time the above wizard is used.
    It worth to mention that the SAPOSS connection works fine and also, just to perform a test, I was able to download a note correction through the SNOTE transaction.
    Where should I check to see what is causing this connection error? Do I missing a previous configuration step?
    Also, would be very helpful for us to get an step by step reference guide for SM configuration. We want to be sure we are no missing or mixed up anything.
    Thanks so much for your help.
    Regards

    >
    diego77 wrote:
    > We are currently facing a problem while performing Solution Manager 4.0 (SP12) basic configurations through the IMG Wizard.
    Why do you start configuration for SP12, although most current version is SolMan 7.0 EhP1 SPS19?
    What scenarios / functions are you planning to use?
    Best regards,
    Ruediger

  • JCAActivationAgent::load - Error while performing endpoint activation:java.

    Hi,
    I am getting following error while deploying a BPEL process. This is very surprising because the process used to run fine until yesterday. Also for some time I was getting a funny error - the JDev was not able to "read" a wsdl file on local machine. I restarted the server, machine many times but it did not help. I do not have any proxies set and the file resides on my local harddrive.
    <2006-04-11 11:30:20,090> <ERROR> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::load - Er
    ror while performing endpoint activation:java.lang.NullPointerException
    <2006-04-11 11:30:20,090> <ERROR> <default.collaxa.cube.activation> <AdapterFramework::Inbound>
    java.lang.NullPointerException
    at oracle.tip.adapter.fw.agent.jca.JCAActivationAgent.load(JCAActivationAgent.java:208)
    at com.collaxa.cube.engine.core.BaseCubeProcess.loadActivationAgents(BaseCubeProcess.java:931)
    at com.collaxa.cube.engine.core.BaseCubeProcess.load(BaseCubeProcess.java:302)
    at com.collaxa.cube.engine.deployment.CubeProcessFactory.create(CubeProcessFactory.java:66)
    at com.collaxa.cube.engine.deployment.CubeProcessLoader.create(CubeProcessLoader.java:391)
    at com.collaxa.cube.engine.deployment.CubeProcessLoader.load(CubeProcessLoader.java:302)
    at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadAndBind(CubeProcessHolder.java:881)
    at com.collaxa.cube.engine.deployment.CubeProcessHolder.getProcess(CubeProcessHolder.java:789)
    at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadAll(CubeProcessHolder.java:361)
    at com.collaxa.cube.engine.CubeEngine.loadAllProcesses(CubeEngine.java:960)
    at com.collaxa.cube.admin.ServerManager.loadProcesses(ServerManager.java:284)
    at com.collaxa.cube.admin.ServerManager.loadProcesses(ServerManager.java:250)
    at com.collaxa.cube.ejb.impl.ServerBean.loadProcesses(ServerBean.java:219)
    at IServerBean_StatelessSessionBeanWrapper14.loadProcesses(IServerBean_StatelessSessionBeanWrapper14.java:2399)
    at com.collaxa.cube.admin.agents.ProcessLoaderAgent$ProcessJob.execute(ProcessLoaderAgent.java:395)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:141)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:281)
    <2006-04-11 11:30:20,152> <ERROR> <default.collaxa.cube.engine.deployment> <CubeProcessLoader::create>
    <2006-04-11 11:30:20,152> <ERROR> <default.collaxa.cube.engine.deployment> Process "CallHomeBPEL" (revision "1.0") load FAILE
    D!!
    <2006-04-11 11:30:20,230> <ERROR> <default.collaxa.cube.engine.deployment> <CubeProcessHolder::loadAll> Error while loading p
    rocess 'CallHomeBPEL', rev '1.0': Error while loading process.
    The process domain encountered the following errors while loading the process "CallHomeBPEL" (revision "1.0"): null.
    If you have installed a patch to the server, please check that the bpelcClasspath domain property includes the patch classes.
    Please help.

    Finally , I was able to redeploy the process. After comparing new files with old files I observed an activationAgents entry in bpel.xml, which was not present previously.
    <activationAgents>
    <activationAgent className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent" partnerLink="CallHomeFileUtility">
    <property name="portType">Read_ptt</property>
    </activationAgent>
    </activationAgents>
    when I removed this from bpel.xml the process deployed successfully. Not sure when the <activationAgents> is added to bpel.xml
    Thanks for your inputs.

  • Error  while performing Organisational Assignment

    Hi ,
          Administrators -  Rec, Pay, Tim have been created in the group Spb.
    While performing  the action - organisational assignments rec(personnel admin), Tim (time), pay(payr admin)  of the group spb have been assigned to subarea - 225, Business area-224 and  payroll area-46
    The error is found to be 225rec does not exist in T526 entry.
    Thanks
    Gracy

    hi Gracy,
    Maintain the adminstror 225 in the table T526 through sm30-maintain.
    If any let us know.
    Regards,
    sai.

  • Error while performing Exit Action

    Hi All,
    Getting error message "Organization Reassignment not permitted" while performing the exit action. I have checked the personnel area attributes and everything seems to be same. But in the infotype view indicator it is showing the value as 10.
    Can  we change  IVWID value in se16 - > pa0003 table to 40 instead of 10. If yes can anyone tell me how to do it..  By doing this will the error message "Organization reassignment not permitted" will be resolved?
    I have read the documentation of the error and i feel it seems to be the issue of "IVWID"..
    Can this be dealt with????
    Regards,
    Srikanth

    Hi Mohan,
    The information provided by you was very helpful. Thanks a lot for your quick responses..
    Tthe entries in IVWID feauture for country grouping india is 40 . The value defaulted is correct. Is there any other way where we can change the infotype view indicator to 40 instead of 10..
    Can you suggest me a solution which would not impact other application's...
    Regards,
    Srikanth

  • POP UP needed for an ERROR while performing an action

    Hello Experts,
    I need your help in creating a pop up for an error that occurs while performing an action and the value for a certain field in an infotype is incorrect. Right now the error just gets displayed in the bottom of the screen. Immediate responses would be highly appreciated!

    check here http://scn.sap.com/community/erp/hcm/employee-self-service/blog/2013/12/02/how-to-show-pop-up-s-in-wda-hcmpf http://scn.sap.com/thread/3497688

  • Error While performing Budget Write Back using ERPi

    Hi,
    We are getting the following error while Importing the data for Budget Write back using ERPi.
    "va.lang.Exception: Cannot get the olap server name for planning application GSECPLAN
    ERPI Process Start, Process ID: 187
    ERPI Logging Level: DEBUG (5)
    ERPI Log File: C:\Users\HYP_SV~1\AppData\Local\Temp\2\/aif_601_187.log
    Jython Version: 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
    [Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)]
    Java Platform: java1.6.0_29
    Call Servlet - START
    Call Servlet - END
    ERPI Process End, Process ID: 187"
    The Write-back was working fine and we have done the write back successfully few days back. We have not made any changes in write back set up except some mapping.
    Any clue on this issue?
    Thanks & Regards,
    Sunil.

    Thanks John for your response.
    I have already restarted the planning service and checked. But no luck.
    Regards,
    Sunil.
    Edited by: 926629 on May 7, 2013 12:26 AM

  • Error while performing Master Data transfer from SAPR/3- ECC5.0 to SCM4.1

    Hi all,
    Am getting an error while transfering Master data from SAP R/3 system ECC5.0 to SCM4.1 through Core Interface (CIF).
    After creating an Integration model and while activating the same am getting the following error,
    " System: SCMCLNT800    User:  SMART03 06/17/2006 13:32:14
    Function: /SAPAPO/CIF_LOC_INBOUND
    Text:Error in address data for location DC2000/ECC800 "
    Could anyone provide me how to fix this?.
    Regards
    Bharanidharan

    Hi Veera,
    Am sorry for the delayed response. Well am using XI as integration engine for transfer of transactional data from R/3 to SCM4.1. I resolved this issue which was because of master data problem. Thanks for your input.
    Regards
    Bharanidharan

  • Error while performing SAP Installation in HA Env on Windows Server 2008

    Hello,
    I am performing a SAP Installation in HA Environment on Windows Server 2008. I am at the ASCS installation step.
    As per the guide before installing ASCS there are some activities to be carried out on Failover Cluster Management.
    I have done all the steps except one as per the guide. I am stuck in the Add FileServer Step. In this step the guide says to go to the Dependencies tab and add the cluster disk resource to the dependencies list. It also says to add the Name:Virtual NetworkName to the dependencies list.
    Now in my scenario I have 3 shared drives for SAP and I have added each of them in the dependencies list of the new FileServer. The only problem is how do I add the Name:Virtual NetworkName to this list
    When I continue without giving the Network name the system issues a warning "This resource requires dependencies on instances of the following resource types or classes:Network Name. Not adding these dependencies will prevent the resource from working properly. Do you want to save the current settings anyway"
    If I click on Yes and bring this resource online it fails with this error message
    "The action Bring this resource online did not complete.An error occured while attempting to bring the resource 'SAPECC FileServer online'. The cluster resource could not be brought online by resource monitor."
    My question is how to add the Name:VirtualNetworkName to the dependencies list of the FileServer.
    Regards
    Mitesh Nair

    Hi,
    I have resolved the issue with the help of cluster admin
    Regards
    Mitesh

Maybe you are looking for

  • Want more versatility with text options

    I'm new to Aperture, and I checked with the Manual but have not found what I want. I am making a book and have many pages that have paragraphs of text describing the photos. I can change fonts, type sizes, bold, italics, etc. But I would also like to

  • Error when installing Premier 9 to Mac

    I am attempting to install my Adobe Premier Elements 9 from my disc (not purchased from Adobe, but from Amazon).  The computer recognizes the disc and when it begins installation it spits the disc out and shows this error message. Exit Code: 7 ------

  • Sync Proxy alerting in SAP

    Hi, I have a scenario as follows: SAP sender sync proxy -> PI -> JDBC (action = update_insert) The JDBC receiver adapter will send back the number of records updated or inserted. My question is how to raise an alert in SAP based on the response from

  • Global settings for Text Fields?

    Is there a way to set the properties for all Text Fields in a Form to be identical -- with the exception of size -- (instead of having to reset the properties each time a field is created)?

  • Splitting List partition

    Hi all, We are using oracle database (10.2.0.4 64bit) and OS AIX (6.1). We have list partition table. On column sale two values (1 or 0) are stored. Table has two partition DAILY_ISSUANCE_SALE_FACT_1  for value (1) and DAILY_ISSUANCE_SALE_FACT_0  for