COM exception: IDispatch error #19808 (0x80044f60): []

While running a cralwer, I've got below error message from PTSpy.
When I look at TCPTrace, I could see running well until getDocumet calling.
but after calling getDocument, PTSpy shows me below com exception message.
===========================================================================
[TRACE, PID 1744, TID 2232, 18:11:07 in WEBDOWNLOADERPARALLEL.DLL] Error in CPTHttpRequestParallel::get_Response. The request is not yet finished. The request could not resolve the host..[ERROR, PID 1744, TID 2232, 18:11:07 in WEBDOWNLOADERPARALLEL.DLL] *** COM exception: IDispatch error #19808 (0x80044f60): [The request is not yet finished.  The request could not resolve the host.] (981,I:\Released Code\4.5ws\TopLevel\ProductCode\Utility\WebDownloaderParallel\PTHttpRequestParallel.cpp)[TRACE, PID 1744, TID 2232, 18:11:07 in WEBDOWNLOADERPARALLEL.DLL] deleting pHTTPRequest[ERROR, PID 1744, TID 2232, 18:11:07 in SOAPPROVIDER.DLL] *** COM exception: IDispatch error #19808 (0x80044f60): [] (648,I:\Released Code\4.5ws\TopLevel\ProductCode\Extensibility\Accessors-Providers\SOAPProvider\PTSOAPProvider.cpp)[ERROR, PID 1744, TID 2232, 18:11:07 in PLUMTREE.DLL] *** COM exception: IDispatch error #19808 (0x80044f60): [] (419,I:\Released Code\4.5ws\TopLevel\ProductCode\Server\PlumtreeDLL\PTDataSource.cpp)[TRACE, PID 1744, TID 2232, 18:11:07 in PLUMTREE.DLL] *** Caught COM exception in CPTCrawlerState::ProcessDocumentNode in call to IPTDataSource::ImportDocument.[TRACE, PID 1744, TID 2232, 18:11:07 in PLUMTREE.DLL] *** COM exception: IDispatch error #19808 (0x80044f60): [][TRACE, PID 1744, TID 2232, 18:11:07 in PLUMTREE.DLL] logmsg: (2232) Aborted Card creation for document: _____ _____ ___ . Import error: IDispatch error #19808 (0x80044f60): [] (2)
============================================================================
Any idea on this?
Thanks,
young-jin

I'm crawling SQLDatabase. Actually, in that DB, there are indexed text which is already indexed from the other backend system.
The getDocument method is returning the url that a text is located in the other backend system.
I'm not using DocFetch, but now I think I have to use that.
Thank you for your helping
-Young-Jin

Similar Messages

  • Native exception: IDispatch error #17460

    Hi all!
    Have you ever seen error message like this?
    The request is not yet finished.  The request was waiting for a reply from the host.] (612,PTDispatch.cpp)]
    com.plumtree.server.marshalers.PTException: Native exception: IDispatch error #17460 (0x80044634): [Exception thrown at HttpGadgetProviderObject.cpp(1601):  The Portal Server timed out while waiting for a reply from the host for this gadget.  If this problem persists, please alert a system administrator.[/pre][pre]
    The request is not yet finished.  The request was waiting for a reply from the host.] (612,PTDispatch.cpp)
            at com.plumtree.server.marshalers.PTDispatch.invokeRetObject(Native Method)
            at com.plumtree.server.CIPTGadgetGateway.GetContent(CIPTGadgetGateway.java:65)
            at com.plumtree.portalpages.browsing.gateway.GatewayControl.CheckActionSecurityAndExecute(GatewayControl.java:291)I get it, when I use setSettingValue(__) method of IPortletContext object, and there are too long setting values. (I think so.)
    But I have no idea for the real reason :o/
    Do you have?
    But more important is: How can I solve this problem?
    Cheers;
    Toci

    I'm crawling SQLDatabase. Actually, in that DB, there are indexed text which is already indexed from the other backend system.
    The getDocument method is returning the url that a text is located in the other backend system.
    I'm not using DocFetch, but now I think I have to use that.
    Thank you for your helping
    -Young-Jin

  • Word 2013 - MSI Install vs. One-Click Install - COM Exception Error

    Hello -
    we have a 3rd party control that sits on top of word to render word documents.  In a MSI installation of Word 2013 everything works fine.  When we use the one-click installation the rendering does not work and the system throws a com exception
    error.
    it basically says "The document is not associated with an ActiveX Document server.  at OfficeControlLIB.IOfficeControl.OpenLocalfile...
    there is a suggested fix @ http://stackoverflow.com/questions/19778211/office-2013-click-to-run-installer-and-activex-issue/26890815#26890815 
    where you modify the registry to insert :
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{F4754C9B-64F5-4B40-8AF4-679732AC0607}\DocObject]
    into the registry - however this did not work (note we looked up the CLSID for our OCX and replaced.
    Any ideas?

    Hi,
    So it's a 32-bit version of Office which is running on a 32-bit version of Windows, try to omit
    Wow6432Node from the registry keys and see if it works.
    It's a 3rd party control, there is no way for us to understand how exactly it works. I'd suggest you contact the vendor support of that control for further assistance.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • BO 5.1.8 InfoView Automation Exception BOMGR0060 IDispatch error #102

    We have a user who has just set up a Windows 7 PC and is using IE8.  Her access rights for BOv5 have not been changed but she can no longer access reports in the repository when using InfoView.  She gets the following error message when she tries to open a report:
    Automation exception   BusinessObjects server process raised an automation exception. (BOMGR0060)   IDispatch error #102   Error during import document - Document not found on repository (businessobj1)
       (returned by function Import Report)
    The report does exist and can be accessed without problem by other users in the same two groups as this user.
    Any ideas what the problem is?

    To elilminate that this is not due to a proxy setting or something, have you tried testing on a different system with the same userid ?
    Did the user try refreshing their document list before accessing the document. Sometimes the lists are outdated and dont necessarily indicate the current state

  • (Error: BOMGR 0060) IDispatch error # 109 Connection or SQL sentence error

    Hi all members
    BO version: BO 6.5
    My client is facing following error in Infoview all of sudden for last 2 weeks while viewing the published reports in an Infoview.
    BusinessObjects server process raised an automation exception. (Error: BOMGR 0060) IDispatch error # 109 Connection or SQL sentence error.
    (DA0005): [Exception: DBD, ORA-12154:
    TNS:could not resolve the connect identifier specified State: N/A] The following data providers have not been successfully refreshed:
    SQL 1 with XYZ. (DMA0007): (BSSBUWSIT0001.xxxxxx.com)
    (returned by function Refreshing Document
    Following is the wording of my client
    "it comes to all reports, only few run smoothly, and if we restart the server it goes immediately otherwise it takes some time to get disappearu2026"
    Kindly any member guide me for the resolution of this problem.
    Thanks in advance
    Regards,
    Izhar
    Edited by: izhar ahmed on Sep 29, 2008 12:03 PM

    Hi Izhar,
    Could you please review the following information it might help you to resolve the issue.
    You need to check the following things.
    Things to check:
    1. ORACLE PATH in client SYSTEM VARIABLES:
    On the Windows 2000 CLIENT user machine:
    - Right-click on "My Computer" and select "Properties". The "System Properties" window appears.
    - Go to the "Advanced" tab and 'Environment Variables' and under 'System Variables' window the 'path' variable.
    - Click on 'Edit' and copy and paste the info into this case notes. Check if there is more than one Oracle home defined in the "Path" system variable.
    - If there is more than one Oracle home defined, then edit your "Path" variable so that only one Oracle home is defined.
    2. TNSNAMES.ORA:
    - Check to see if any multiple copies of the "tnsnames.ora" file and the "sqlnet.ora" file are identical to each other.
    There may be a problem with certain lines contained within the tnsnames.ora in C:\ORANT\NET80\ADMIN folder.
    eg: [(COMMUNITY = TCP.world), (GLOBAL_NAME = LIVEServer.world)]
    3. OCIW32.dll Search for these on client machine
    You may have a copy of the "OCIW32.dll" file in both the Oracle client/bin and the other <Oracle application>/bin directories.
    Rename or remove the "OCIW32.dll" file located in the other Oracle application /bin directory.
    Note:
    Please make sure that you have installed only one version of Oracle middleware, which must be the same version as the query database (ie NOT SQL Net 2.3 if you are connecting to a Oracl 8.1.6 query database)
    4. CHECK THE REGISTRY ORACLE_HOME:
    Check if one version of middleware on that machine, by the registry contacts. BO will look for the middleware in:
    HKEY_LOCAL_MACHINE/Software/Oracle : ORACLE_HOME
    Other Business Objects tests to carry out:
    1. import the universe via Supervisor and go into properties -> Test connection. Any errors?
    2. Check the connection - 'Edit' --> Database Engine - which Oracle driver version is being used for this universe?
    3. Check the universe domain by clicking Tools -> Repository -> Click on Universe domain and Test. Also click 'Modify' to select the correct Oracle driver version.
    *********MORE*****
    In order to find in it all information for the connection to the database BO always checks the path of the middleware (Control Panel -> System -> Environment -> Path (eg C: ORANT) and uses the first occurrence of ociw32.dll found within the %path%. Business Objects also reads the Oracle registry and the value ORACLE_HOME to find the list of TNS but it cannot deal with two different versions of Oracle.
    Consequently, both need to be synchronized to avoid a problem.
    Regards,
    Sarbhjeet Kaur

  • IDispatch error #19876 - LDAP Authentication Source - User Unique Name Attribute

    Hi,
    we have troubles with the User Unique Name Attribute:
    As 'cn' and 'dn' may change we want to use the EmployeeID ('workforceID') as unique identifier for our user synchronisation. This attribute exists and is also imported in the profile service. But when we add 'workforceID' to the 'User Unique Name Attribute' in the LDAP Settings of the Remote Authentication Source (LDAP AWS) the job fails and throws the error at the end of this message in the history log.
    When we remove 'workforceID' everything works fine. If we set the user unique name attribute to 'cn' or 'dn' everything works fine, too. If we enter not existing names the same error is thrown. It seems like 'workforceID' could not be read/found? What are we doing wrong? Thanks in advance.
    1/17/06 12:37:01- (34432) CPTSyncAgent::ProcessUsers: Call to retrieve the users on this auth source failed. Please check that the authentication source server is online.
    *** COM exception was: IDispatch error #19876 (0x80044fa4): [SOAP fault: faultcode='ns1:Server.userException' faultstring='java.rmi.RemoteException: Unknown error occured in internalGetUsers null
    com.plumtree.remote.ServiceException: Unknown error occured in internalGetUsers nullat com.plumtree.ldap.aws.LDAPSyncProvider.internalGetUsers(LDAPSyncProvider.java:671)at com.plumtree.ldap.aws.LDAPSyncProvider.getUsers(LDAPSyncProvider.java:504)at com.plumtree.remote.auth.NativeSyncProvider.GetUsers(Unknown Source)at com.plumtree.remote.auth.xp.XPSyncProvider.GetUsers(Unknown Source)at com.plumtree.remote.auth.soap.SyncProviderSoapBindingImpl.GetUsers(Unknown Source)at com.plumtree.remote.auth.soap.SyncProviderSoapBindingSkeleton.GetUsers(Unknown Source)at sun.reflect.GeneratedMethodAccessor1024.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:324)at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:372)at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:292)at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:276)at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:437)at org.apache.axis.server.AxisServer.invoke(AxisServer.java:316)at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:701)at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:335)at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:711)at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:687)at java.lang.Thread.run(Thread.java:536)']
    1/17/06 12:37:01- (34432) *** Job Operation #1 failed: ProcessUsers failed (0x4)

    That's the correct place to look for the version.
    My guess at what is happening is that some of users do not have the 'workforceID' attribute and that is causing the AWS to fail when it gets to them. Unfortunately there is not great error logging around this in the 2.0 version of the LDAP AWS. In order to find out if this is indeed the case, and to see what user does not have this attribute, do a trial run with workforceID as the User Login Attribute. This case is caught and reported better.

  • Unable to load the vertipaq engine because there was a COM exception . Return argument has an invalid type.

    Hi All,
    I have been using powerpivot for months (2010 PowerPivot on Excel 2010, with Sql 2008).  I tried to open powerpivot today and get the following below.  I have already tried uninstalling powerpivot and reinstalling it to no avail.  
    Any suggestions would be appreciated.  Thanks, Ivan
    Unable to load the vertipaq engine because there was a COM exception while loading....
    ============================
    Error Message:
    ============================
    Return argument has an invalid type.
    ============================
    Call Stack:
    ============================
       at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
       at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue)
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.Office.Interop.Excel.WorkbookConnection.get_OLEDBConnection()
       at Microsoft.AnalysisServices.XLHost.Addin.InProcServer.LoadOLEDBConnection(Boolean raiseCompleteEvent, String errorCache)
    ============================

    Hi All,
    For anyone who this happens to, what ended up fixing it was uninstalling and reinstalling excel.  I was using excel 2010, so I did this 
    Go to add/remove programs 
    Highlight Microsoft Office Professional 2010 
    Click Change
    ensure Add remove features is selected and click continue 
    click on the little arrow beside excel and click on Not Available, click continue
    After it is done, excel will be uninstalled.  
    When this is done, you can do the same process again, but this time chose the other appropriate selection
    instead of not available.  I chose Run All from My Computer.  

  • Unable to load the Vertipaq engine because there was a COM exception while loading

    I saw a similar thread on the forum but it's a dead end.
    PowerPivot for Excel 2010 gives me this error whenever I click the PowerPivot window icon:
    Unable to load the VertiPaq engine because there was a COM exception. This might happen if you load a workbook on a corrupt installation. To fix the problem, uninstall and then reinstall PowerPivot. Click Details for more error information.
    ============================
    Error Message:
    ============================
    Could not load file or assembly 'msmgdsrv, Version=9.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
    The type initializer for 'Microsoft.AnalysisServices.BackEnd.DAXServices' threw an exception.
    ============================
    Call Stack:
    ============================
       at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
       at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
       at Microsoft.AnalysisServices.XLHost.Addin.InProcServer.LoadSafeSandboxAfterConnection(String errorCache)
       at Microsoft.AnalysisServices.XLHost.Addin.InProcServer.LoadSafeSandboxAfterConnection(String errorCache)
       at Microsoft.AnalysisServices.XLHost.Addin.InProcServer.LoadOLEDBConnection(Boolean raiseCompleteEvent, String errorCache)
    ============================
    I've tried everything that was suggested so far: uninstall and reinstall PowerPivot, Microsoft Office 2010, and all of the prerequisites for PowerPivot (NET Framework 4.0, Visual Studio) and it still gives the same error message.
    Thing is, I don't think it is a PowerPivot issue because many people in the office use PowerPivot and they all receive the same error message.
    We are all running on Windows 7 Pro 64-bit.
    Any help and/or assistance would be greatly appreciated.
    Thanks,
    Seong Lee

    I saw a similar thread on the forum but it's a dead end.
    PowerPivot for Excel 2010 gives me this error whenever I click the PowerPivot window icon:
    Unable to load the VertiPaq engine because there was a COM exception. This might happen if you load a workbook on a corrupt installation. To fix the problem, uninstall and then reinstall PowerPivot. Click Details for more error information.
    ============================
    Error Message:
    ============================
    Could not load file or assembly 'msmgdsrv, Version=9.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
    The type initializer for 'Microsoft.AnalysisServices.BackEnd.DAXServices' threw an exception.
    ============================
    Call Stack:
    ============================
       at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
       at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
       at Microsoft.AnalysisServices.XLHost.Addin.InProcServer.LoadSafeSandboxAfterConnection(String errorCache)
       at Microsoft.AnalysisServices.XLHost.Addin.InProcServer.LoadSafeSandboxAfterConnection(String errorCache)
       at Microsoft.AnalysisServices.XLHost.Addin.InProcServer.LoadOLEDBConnection(Boolean raiseCompleteEvent, String errorCache)
    ============================
    I've tried everything that was suggested so far: uninstall and reinstall PowerPivot, Microsoft Office 2010, and all of the prerequisites for PowerPivot (NET Framework 4.0, Visual Studio) and it still gives the same error message.
    Thing is, I don't think it is a PowerPivot issue because many people in the office use PowerPivot and they all receive the same error message.
    We are all running on Windows 7 Pro 64-bit.
    Any help and/or assistance would be greatly appreciated.
    Thanks,
    Seong Lee

  • A COM exception has been encountered: At invoke of: ADD The server threw an

    Hi,
    we are using the Java Connector, and I can add or update Business Partners.
    But adding or updating an JournalVouchers allways throws the following COM Exception
    on a SBO 6.5. Our programm-code works on a SBO 6.2, but not on a SBO 6.5 ?
    What is wrong ? Can anybody tell us that ?
    Regards
    Jan Nielsen
    AMC-CONSULT A/S
    ====== error mesage ======
    com.sap.smb.sbo.wrapper.com.ComFailException: A COM exception has been encountered:
    At Invoke of: Add
    Description: The server threw an exception.
    ====== Programcode ==============
    Created on 25-09-2003
    To change the template for this generated file go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    package amc.sap.util;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.FileReader;
    import java.io.IOException;
    import java.util.Date;
    import amc.language.Language;
    import amc.xkernel.exception.SetThrowException;
    import amc.xkernel.global.BoxPane;
    import amc.xkernel.global.Convert;
    import amc.xkernel.global.DateX;
    import amc.xkernel.global.SysLog;
    import amc.sap.table.SalarySetupTable;
    import amc.sap.table.SalarySetupTrans;
    import com.sap.smb.sbo.api.IJournalEntries;
    import com.sap.smb.sbo.api.IJournalEntries_Lines;
    import com.sap.smb.sbo.api.IChartOfAccounts;
    import com.sap.smb.sbo.api.SBOCOMUtil;
    import com.sap.smb.sbo.api.SBOErrorMessage;
    import com.sap.smb.sbo.util.ConvertUtil;
    @author Administrator
    To change the template for this generated type comment go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    public class MultidataImport extends SAPLogonUtil
         private int lineNo = 0;
         public static void FileCopy(String srcFileName, String destFileName)
              try
                   File srcFile = new File(srcFileName);
                   if (srcFile.exists())
                        File destFile = new File(destFileName);
                        FileInputStream in = new FileInputStream(srcFile);
                        FileOutputStream out = new FileOutputStream(destFile);
                        int ret;
                        for (;(ret = in.read()) != -1;)
                             out.write(ret);
                        in.close();
                        out.close();
              catch (Throwable e)
                   SysLog.setError(e.getMessage(),"");
         private SBOErrorMessage errMsg = null;
         private IJournalEntries iJournalEntries = null;
         private IChartOfAccounts iChartOfAccounts = null;     
         private IJournalEntries_Lines iJournalEntries_Lines = null;
         private boolean iJournalEntriesOK = false;
         private int recCounter = 0;
         private SalarySetupTable salarySetupTable = null;
         private boolean errorsFound = false;     
         File fileName = null;
         public MultidataImport()
              super();
         public void insertRecord(String record) throws Exception
              try
                   SalarySetupTrans salarySetupTrans = new SalarySetupTrans();
                   String strDate = null;
                   Date entryDate = null;
                   String salaryCode = null;
                   String debetCredit = null;
                   String entryAccount = null;
                   String entryText = null;
                   String intAmount = null;
                   Double amount = Convert.string2Double("0.00");
                   Double emptyDouble = Convert.string2Double("0.00");
                   if (record.substring(0, 2).toString().equalsIgnoreCase("ML"))
                        /** Entrydate*/
                        strDate =
                             Convert.subString(record, 21, 4)
                                  + "-"
                                  + Convert.subString(record, 25, 2)
                                  + "-"
                                  + Convert.subString(record, 27, 2);
                        entryDate = ConvertUtil.DateString2Date(strDate);
                        /** Salarycode */
                        salaryCode = Convert.subString(record, 38, 4);
                        /** Identyfier for Debet or Credit amount */
                        debetCredit = Convert.subString(record, 42, 1);
                        /** Amount */
                        intAmount =
                             Convert.subString(record, 43, 10)
                                  + "."
                                  + Convert.subString(record, 53, 2);
                        amount = Convert.string2Double(intAmount);
    Fillout the IJournalEntries
                                                                salarySetupTrans.setWhereFirstOnly(SalarySetupTrans.SalaryId"='"salaryCode+"'");
                        if (iJournalEntriesOK == false)
                             iJournalEntries.setMemo(Language.get("@ImportML"));
                             iJournalEntries.setReferenceDate(entryDate);
                             iJournalEntries.setStornoDate(entryDate);
                             iJournalEntries.setTaxDate(entryDate);
                             iJournalEntries_Lines = iJournalEntries.getLines();     
                             iJournalEntriesOK = true;
                        if (iJournalEntriesOK == true)
    Fillout the IJournalEntries_Lines
                             /** Fetch account from from DB */
                             entryAccount = salarySetupTrans.accountId;
                             /** Fetch Entrytext from DB */
                             entryText = salarySetupTrans.entryText;
                             /** Make debet Line. */
                             if(lineNo >= 1)
                                  lineNo = lineNo + 1;                         
                                  Integer integer_ = new Integer(lineNo);
                                  iJournalEntries_Lines.setCurrentLine(integer_);
                             iJournalEntries_Lines.setAccountCode(entryAccount);     
                             if (debetCredit.equalsIgnoreCase("+"))
                                  iJournalEntries_Lines.setDebit(amount);
                                  iJournalEntries_Lines.setCredit(emptyDouble);                              
                             else
                                  iJournalEntries_Lines.setCredit(amount);
                                  iJournalEntries_Lines.setDebit(emptyDouble);
                             iJournalEntries_Lines.setDueDate(entryDate);
                             iJournalEntries_Lines.setLineMemo(entryText);
                             iJournalEntries_Lines.setReferenceDate1(entryDate);
                             iJournalEntries_Lines.setShortName(entryAccount);
                             iJournalEntries_Lines.setTaxDate(entryDate);
                             iJournalEntries_Lines.add();
                             errMsg = iCompany.getLastError();
                             if (errMsg.getErrorCode() != 0)
                                  iJournalEntriesOK = false;
                                  throw new Exception("Could not create Journalentry "
                                                                  + "\nReason code: "
                                                                + errMsg.getErrorCode()
                                                                + "\nLongtext: "
                                                                + errMsg.getErrorMessage());
                             lineNo = lineNo + 1;                         
                             Integer integer1_ = new Integer(lineNo);
                             iJournalEntries_Lines.setCurrentLine(integer1_);
                             /**  Make credit Line */
                             /** Fetch setoffaccount from from DB */
                             entryAccount = salarySetupTrans.setOffAccountId;                         
                             iJournalEntries_Lines.setAccountCode(entryAccount);                         
                             if (debetCredit.equalsIgnoreCase("+"))
                                  iJournalEntries_Lines.setDebit(emptyDouble);
                                  iJournalEntries_Lines.setCredit(amount);                              
                             else
                                  iJournalEntries_Lines.setCredit(emptyDouble);
                                  iJournalEntries_Lines.setDebit(amount);
                             iJournalEntries_Lines.setDueDate(entryDate);
                             iJournalEntries_Lines.setReferenceDate1(entryDate);
                             iJournalEntries_Lines.setShortName(entryAccount);
                             iJournalEntries_Lines.setTaxDate(entryDate);
                             iJournalEntries_Lines.setLineMemo(entryText);                         
                             iJournalEntries_Lines.add();
                             recCounter = recCounter + 1;
                             errMsg = iCompany.getLastError();
                             if (errMsg.getErrorCode() != 0)
                                  iJournalEntriesOK = false;
                                  throw new Exception("Could not create Journalentry "
                                                                + "\nReason code: "
                                                                + errMsg.getErrorCode()
                                                                + "\nLongtext: "
                                                                + errMsg.getErrorMessage());
              catch (SetThrowException s)
                   SysLog.setError(s.getMessage(),"");
              catch (Exception e1)
                   SysLog.setError(Language.get("@AddFail"),e1.toString());
         public void validateRecord(String record) 
              try
                   SalarySetupTrans salarySetupTrans = new SalarySetupTrans();
                   String salaryCode = null;
                   if (record.substring(0, 2).toString().equalsIgnoreCase("ML"))
                        /** Entrydate*/
                        //** Salarycode */
                        salaryCode = Convert.subString(record, 38, 4);
                        /** Identyfier for Debet or Credit amount */
    Check salarycodes and SAP Ledgeraccounts
                        salarySetupTrans.setWhereFirstOnly(SalarySetupTrans.SalaryId"='"salaryCode+"'");
                        if(!salarySetupTrans.found())
                                            SysLog.setError(Language.get("@SalarycodeNotFound",salaryCode),Language.get("@SalarycodeNotFoundHELP"));
                             errorsFound = true;                         
                        else
                             if(salarySetupTrans.accountId == "")
                                  SysLog.setError(Language.get("@AccountIdNotFound",salaryCode),Language.get("@AccountIdNotFoundHELP"));
                                  errorsFound = true;                         
                             else
                                  if(!iChartOfAccounts.getByKey(salarySetupTrans.accountId))
                                       SysLog.setError(Language.get("@AccountIdNotExist",salarySetupTrans.accountId),Language.get("@AccountIdNotExistHELP"));
                                       errorsFound = true;                         
                             if(salarySetupTrans.setOffAccountId == "")
                                  SysLog.setError(Language.get("@SetOffAccountIdNotFound",salaryCode),Language.get("@SetOffAccountIdNotFoundHELP"));
                                  errorsFound = true;                         
                             else                                             
                                  if(!iChartOfAccounts.getByKey(salarySetupTrans.setOffAccountId))
                                       SysLog.setError(Language.get("@SetOffAccountIdNotExist",salarySetupTrans.setOffAccountId),Language.get("@SetOffAccountIdNotExistHELP"));
                                       errorsFound = true;                         
                   else
                        SysLog.setInfo(Language.get("@WrongFileType",fileName.getAbsolutePath()),Language.get("@WrongFileTypeHELP"));
                        errorsFound = true;
                        return;                              
              catch (SetThrowException i)
                   SysLog.setError(i.getMessage(),"");
         public void run(boolean showBoxes)
              int je;
              String fileNameStr = null;
              File                     backupFile                = null;
              File                     backupDir                = null;
              FileReader fileReader = null;
              BufferedReader read = null;
              String readLine = null;
              String content = null;
              iJournalEntriesOK = false;
              if (iCompany == null)
                   MultidataImport.tryLogon(false);
              if (iCompany == null)
                   return;
              try
                   salarySetupTable = new SalarySetupTable();
                   salarySetupTable.setWhereFirstOnly();
                   fileNameStr = salarySetupTable.salaryImportFile;
                   if (fileNameStr == null || fileNameStr.equalsIgnoreCase(""))
                        SysLog.setError(Language.get("@NoImportfile"),Language.get("@NoImportfileHELP"));
                        return;
                   backupFile = new File(salarySetupTable.salaryMoveTo"
    "DateX.getSystemDateString()Convert.stringRemove( DateX.getSystemTime(),":")".bak");
                   backupDir  = new File(salarySetupTable.salaryMoveTo);
                   fileName   = new File(fileNameStr);
                   if (!fileName.exists())
                        SysLog.setError(Language.get("@FileNoExist",fileName.getAbsolutePath()),Language.get("@FileNoExistHELP"));               
                        return;
                   if ( !backupDir.exists() )
                        SysLog.setError(Language.get("@BackupDirNoExist",backupDir.getAbsolutePath()),Language.get("@BackupDirNoExistHELP"));                    
                        return;
                   if(showBoxes)
                        if (BoxPane.okCancel(Language.get("@OKtoImport")" "Language.get("@Multidata"),"Multidata-import") != 0)
                        return;
                   iJournalEntries  = SBOCOMUtil.newJournalEntries(iCompany);
                   iChartOfAccounts = SBOCOMUtil.newChartOfAccounts(iCompany);               
                   fileReader = new FileReader(fileName);
                   read = new BufferedReader(fileReader);
                   while (((readLine = read.readLine()) != null))
                        content = readLine;
                        if (!content.equalsIgnoreCase(""))
                             this.validateRecord(content);
                   if(errorsFound == true)
                        SysLog.setError(Language.get("@ErrorsFound"),Language.get("@ErrorsFoundHELP"));
                        fileReader.close();
                        read.close();
                        return;
                   fileReader.close();
                   read.close();
                   fileReader = new FileReader(fileName);
                   read = new BufferedReader(fileReader);
                   while (((readLine = read.readLine()) != null))
                        content = readLine;
                        if (!content.equalsIgnoreCase(""))
                             this.insertRecord(content);
                   if (iJournalEntriesOK == true)
                        je = iJournalEntries.add();
                        if (je != 0L)
                             iJournalEntriesOK = false;
                             errMsg = iCompany.getLastError();
                             SysLog.setError(Language.get("@NotCreatedJEntry")
                                                                + "\n"+Language.get("@ReasonCode")
                                                                + errMsg.getErrorCode()
                                                                + "\n"+Language.get("@ErrorMessage")
                                                                + errMsg.getErrorMessage()
                                                                ,Language.get("@ConnectErrorHELP"));
                        else
                             SysLog.setInfo(Language.get("@CreatedJEntry",String.valueOf(recCounter)),"");
                   if(iJournalEntriesOK == true)
                        FileCopy(fileName.getAbsolutePath(),backupFile.getAbsolutePath());
                   fileReader.close();
                   read.close();
                   if (backupFile.exists())
                        fileName.delete();
              catch (SetThrowException t)
                   SysLog.setError(t.getMessage(),"");
              catch (IOException i)
                   SysLog.setError(i.getMessage(),"");
              catch (Exception s)
                   SysLog.setError(s.getMessage(),"");

    After a long search I have found the answer to this proproblem myself on service.sap.com/smb note-no 706379. I have tryed it out and it WORKS. Please read the following text that explains the problem and the solution :
    Symptom
    Following exception or similar text found in the failed response message
    COM exception has been encountered: At Invoke of: Add
    Description: The server threw an exception.
    Other terms
    SBO ITK, Java Connector, SBO SDK, DI-API, SAP J2EE 6.20
    Reason and Prerequisites
    Note 642676 explains this problem in a detail.
    In a brief, the main stack size is not large enough causes this
    exception.
    Solution
    First of all, please find from which exe file the J2EE server started. For starting in the console with go.bat, the exe may be java.exe under %JAVA_HOME%\bin (Please check the path setting for which java.exe
    to be used. Normally, it may be C:\WINDOWS\SYSTEM32\java.exe,
    %JAVA_HOME%\bin\java.exe, %JAVA_HOME%\jre\bin\java.exe,
    or C:\Program Files\JavaSoft\JRE\1.3.1_08\bin\java.exe)
    For starting as the windows service, you can find the exe as following:
    1. Open the service from Start -> Setting -> Control Panel ->
       Adiministrative Tools -> Services
    2. Find the service to start SAP J2EE 6.20 of ITK, for example,
        "SAP J2EE Engine Alone"
    3. Open the properites window of this service, you can find the exe    in "Path to excutable", for example,    d:\SAP_J2EEngine6.20\configtool\alone.exe
    Second, prepare the tools to do the patch. If you have installed
    Microsoft Visual Studio 6.0, you have the right tools. We need
    a. editbin.exe, to patch the exe.
    b. dumpbin.exe, to check the stacksize.
    c. link.exe and MSPDB60.DLL to run above two tools.
    Third, patch the exe:
    1. BACKUP THE ORIGINAL EXE, JAVA.EXE OR ALONE.EXE
    2. Use dumpbin.exe to check the original stack size
       dumpbin.exe /headers alone.exe
       find line: 40000 size of stack reserve
       It means the current stack size is 256k
    3. Use editbin.exe to patch the exe, for example with 2m stack size
       2m = 2 * 1024 *1024 bytes = 2097152 bytes
       editbin.exe /stack:2097152 alone.exe
    4. Use dumpbin.exe to verify the patch.
       dumpbin.exe /headers alone.exe
       find line: 200000 size of stack reserve
       It means the current stack size is 2m
    Last step, start the J2EE server again and see whether everything
    is OK.
    For service, we also recommend you patch    d:\SAP_J2EEngine6.20\configtool\service.exe All installed service exe file, for example alone.exe will be copied from this file. Patch this file will avoid patch each duplicated exe file then.
    Regards
    Jan Nielsen
    AMC-CONSULT A/S

  • At Invoke of: Update,A COM exception has been encountered

    Hi Guys,
    I just use java to access the data of SAP B1, and I  met a trouble, I have no idea.
    I have imported into SAP B1 from file and export the SAP data to a file, just in business partner module,
    it's ok.
    I also can export data from ORDR of SAP B1 database to  a file.
    But I can't work out importing data from external data about Order module, just table ORDR.
    I have search the WEB for 2 days, just nothing!!
    I will appreciate to your great help. Could you please give me a sample, should be perfect!!!!
    ERROR LOG about updating operation-
    !!!Error***-A COM exception has been encountered:
    At Invoke of: Update
    Description: The server threw an exception.
    com.sap.smb.sbo.wrapper.com.ComFailException: A COM exception has been encounter
    ed:
    At Invoke of: Update
    Description: The server threw an exception.
            at com.sap.smb.sbo.wrapper.com.Dispatch.invokev(Native Method)
            at com.sap.smb.sbo.wrapper.com.Dispatch.invokev(Unknown Source)
            at com.sap.smb.sbo.wrapper.com.Dispatch.callN(Unknown Source)
            at com.sap.smb.sbo.wrapper.com.Dispatch.call(Unknown Source)
    ==========================================================
    ERROR LOG about adding operation is similar-
    !!!Error***-A COM exception has been encountered:
    At Invoke of: Add
    Description: The server threw an exception.
    com.sap.smb.sbo.wrapper.com.ComFailException: A COM exception has been encounter
    ed:
    At Invoke of: Add
    Description: The server threw an exception.
    =================================================================
    the following just is some code.
              ICompany vCompany = SapSdkHelper.getICompany();
              vCompany.connect();
              IDocuments aOrder = SBOCOMUtil.newDocuments(vCompany,
                        SBOCOMConstants.BoObjectTypes_Document_oOrders);
              IDocument_Lines line = aOrder.getLines();//line should be the data in table rdr1
              int successCount = 0;
              for (String[] rowData : dataList) {
                   Integer key = new Integer(rowData[0]);
                   if (aOrder.getByKey(key)) {
                        aOrder.setAddress(aOrder.getAddress()+"test");
                        int rr = aOrder.update();
                        SBOErrorMessage errMsg = vCompany.getLastError();
                        System.out.println(errMsg.getErrorMessage());
                        System.out.println(rr);
                        continue;
                   aOrder.setDocNum(key);
                                                    aOrder.setCardCode(rowData[2]);
                   aOrder.setCardName(rowData[3]);
                   aOrder.setDocTotal(Double.valueOf(rowData[4]));
                   aOrder.setDocType(SBOCOMConstants.BoDocumentTypes_dDocument_Items);
                   //aOrder.setDocCurrency("RMB");
                   //aOrder.setDocRate(10.1);
                   line.setItemCode("A00001");
                   line.setItemDescription("description Testing");
                   line.setQuantity(new Double(3));
                   line.setPrice(new Double(3));
                   //line.setRate(10.1);
                   //line.setCurrency("RMB");
                   //line.add();
                   long rc = aOrder.add();
                   SBOErrorMessage errMsg = vCompany.getLastError();
                   System.out.println(errMsg.getErrorMessage());
                   System.out.println(rc);
                   successCount++;
              vCompany.disconnect();

    Just refer to DI JCo: Getting a COM Exception when adding an Order
    I got it.
    If you have any question about this issue, please contact me.
    For SAP B1, just need to patch java.exe, if you develop/test something in IDE you should also patch javaw.exe, please notice the right path used in IDE.
    Just my steps-
    1. download the Visual studio express 2008 from microsoft.com and install it online(no need to download SQLSERVER Express)
    2. backup the original exe file, java.exe/javaw.exe
    3. edit the PATH environment variable plus 'C:Program FilesMicrosoft Visual Studio 9.0VC in'
    4. open CMD window and enter into %JAVA_HOME%/bin/
    5. Use dumpbin.exe to check the original stack size
        dumpbin.exe /headers java.exe
        find line: 40000 size of stack reserve
        It means the current stack size is 256k
    6. Use editbin.exe to patch the exe, for example with 2m stack size
        2m = 2 * 1024 *1024 bytes = 2097152 bytes
        editbin.exe /stack:2097152 javaw.exe
    7. Use dumpbin.exe to verify the patch.
       dumpbin.exe /headers java.exe
       dumpbin.exe /headers javaw.exe
       find line: 200000 size of stack reserve
       It means the current stack size is 2m
    IT'S OKAYYYYYY.
    The version of SAP B1 is 7.10.32 SP:00 EF:2.
    The version of SDK just is contained in the SAP B1.
    Hope it can help you a little.
    MZ

  • Could not validate SPNEGO token.java.lang.Exception: Checksum error.

    Hello consultant:
    We are trying configurated SSO usind SPNEGO  module
    We have a portal 7.0 ehp1 and Active Directory Microsoft versión 2003 native
    we have followed the steps described in note Sap 1457499"Note 1457499 - SPNego add-on"
    When we have logged with user Active Directory and we try access to portal we obtain following error:
    Authorization check user error
    We have Deploy the Web diagtool from SAP Note 1045019 on the J2EE server, run it and perform the
    following steps:
    1. Select "Component" = "security" and "Activity" = "all"
    2. Click the "Go" button, followed by the "Add All" button
    3. Select "Component" = "All" and in the "Search pattern" field write "com.sap.security.spnego"
    4. Click the "Go" button, followed by the "Add All" button
    5. Start the tool
    Then we have reproduce the problem and stop the tool. The generated zip file will contain following error:
    15:45:20:078 Error J2EE_GST_PRD SAPEngine_Application_Thread[impl:3]_15 ~p.security.spnego.krb5.crypto.DesCrypto Checksum error! checksum: 0xc46bfed8d0dbc54221ee75405c8cd5ac; calculated checksum: 0x6ead7e801608b729a6957597327f2ba5
    15:45:20:078 Error J2EE_GST_PRD SAPEngine_Application_Thread[impl:3]_15 ~m.sap.security.spnego.SPNEGOLoginModule Could not validate SPNEGO token.
    java.lang.Exception: Checksum error.
    at com.sap.security.spnego.krb5.crypto.DesCrypto.decrypt(DesCrypto.java:43)
    at com.sap.security.spnego.krb5.KrbEncryptedData.decrypt(KrbEncryptedData.java:81)
    at com.sap.security.spnego.krb5.KrbApReq.decrypt(KrbApReq.java:67)
    at com.sap.security.spnego.SPNEGOLoginModule.parseAndValidateSPNEGOToken(SPNEGOLoginModule.java:234)
    at com.sap.security.spnego.SPNEGOLoginModule.processAuthorizationHeader(SPNEGOLoginModule.java:385)
    at com.sap.security.spnego.SPNEGOLoginModule.login(SPNEGOLoginModule.java:102)
    at com.sap.engine.services.security.login.LoginModuleLoggingWrapperImpl.login(LoginModuleLoggingWrapperImpl.java:185)
    at com.sap.engine.services.security.login.ModulesProcessAction.run(ModulesProcessAction.java:70)
    at java.security.AccessController.doPrivileged(AccessController.java:246)
    at com.sap.engine.services.security.login.FastLoginContext.login(FastLoginContext.java:181)
    at com.sap.engine.system.SystemLoginModule.login(SystemLoginModule.java:90)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:699)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:151)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:634)
    at java.security.AccessController.doPrivileged(AccessController.java:246)
    at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:631)
    at javax.security.auth.login.LoginContext.login(LoginContext.java:557)
    at com.sap.security.core.logon.imp.SAPJ2EEAuthenticator.logon(SAPJ2EEAuthenticator.java:912)
    at com.sapportals.portal.prt.service.authenticationservice.AuthenticationService.login(AuthenticationService.java:367)
    at com.sapportals.portal.prt.connection.UMHandler.handleUM(UMHandler.java:126)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:181)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:541)
    at java.security.AccessController.doPrivileged(AccessController.java:246)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:430)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
    at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
    at com.sap.portal.navigation.Gateway.service(Gateway.java:126)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    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(AccessController.java:219)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Could you help us?
    Many thanks for your collaboration

    << Do not post the same question across a number of forums >>

  • Control exceptions or errors in procedure

    Hy , I have a proceducre like this:
    CREATE OR REPLACE PROCEDURE "MY_PROCEDURE"( )
    AS
    BEGIN
    INSERT INTO tableBackupTable1 SELECT table1.* FROM table1;
    INSERT INTO tableBackupTable2 SELECT table1.* FROM table2;
    */*Disable FK*/*
    for i in (select constraint_name, table_name from user_constraints where constraint_type ='R' and status = 'ENABLED')
    LOOP
              execute immediate 'alter table '||i.table_name||' disable constraint '||i.constraint_name||'';
    end loop;
    delete * from table1;
    delete * from table2;
    */*Enable FK*/*
    for i in (select constraint_name, table_name from user_constraints where constraint_type ='R' and status = 'ENABLED')
    LOOP
              execute immediate 'alter table '||i.table_name||' enable constraint '||i.constraint_name||'';
    end loop;
    END;
    1. If I want to control the errors or exceptions for this procedure from my java code where Im calling this procedure from:
    I dont have to declare a block "EXCEPTION......" in the procedure, right?
    2. If I want to rollback if an error or exception happens, should I do something in the procedure or in my java code?
    3. If I dont want to return anything in my procedure, should I use a sys_refcursor like out parameter?
    4. Should I use commit, where?
    5. Should I surround the loops for enable or disable fk with begin and end because If I dont surround it and an error ocurrs while enablling FK or disabling them ?
    6. All my accesses to the database from my java code are transactional, so if I call this procedure from my java code and this call is transactional and the procedure is itself transactional, is there a problem with this?
    Thanks
    Edited by: user13162080 on 29-dic-2010 6:40
    Edited by: user13162080 on 29-dic-2010 6:46
    Edited by: user13162080 on 29-dic-2010 6:56

    Hi,
    I dont want to handle it in the procedure itself because I am controlling all exceptions or errors in the database from java to make rollback or whatever
    Can you help me in the others questions? In my opinion this is not the right way to handle database exception. Database exception should be handled in database itself not in java. Oracle will rollback the transaction autometically if any statement fails(exception) and you will not have to put extra efforts(java code) to control the exception. If you wish you can explain your business requirement we may suggest something easier/better.
    2. If I want to rollback if an error or exception happens, should I do something in the procedure or in my java code?It should be driven by your business requirement.
    3. If I dont want to return anything in my procedure, should I use a sys_refcursor like out parameter?It depends what kind of value you want to return. For a single value sys_refcursor is not the right tool. Refer this link http://download.oracle.com/docs/cd/E11882_01/appdev.112/e17126/static.htm#i7106
    4. Should I use commit, where?
    It should also driven by your business need. COMMIT will make the changes permanent into the database so whenever you want to commit you can. All the DDLs (CREATE, DROP table etc) are having implicit (auto) COMMIT.
    5. Should I surround the loops for enable or disable fk with begin and end because If I dont surround it and an error ocurrs while enablling FK or disabling them ?
    I would suggest to have a look on http://download.oracle.com/docs/cd/E11882_01/appdev.112/e17126/toc.htm
    6. All my accesses to the database from my java code are transactional, so if I call this procedure from my java code and this call is transactional and the procedure is itself transactional, is there a problem with this?
    What do you mean by transactional? do you mean for each row?
    Thanks and Regards,
    Avinash
    Edited by: Avinash Tripathi on Dec 29, 2010 7:04 PM

  • SOAP error : IDispatch error #19880

    Hi every one, i am getting this error on executing the crawler.
    Error in attaching to container node Crawler Start Node to get child documents: IDispatch error #19880 (0x80044fa8): [The SOAP Connection stopped executing method urn:plumtree-com:ContainerProvider.Initialize after 1 attempt(s). Last error: The SOAP Connection has recieved an HTTP error while executing during connection attempt 1 of method urn:plumtree-com:ContainerProvider.Initialize!. The code returned was 404.]
    suggestions are invited.

    Most probably, your CWS installation isn't correct. Make sure the default user [ASPNET, generally] and the impersonated user have proper access...
    ~Shiva

  • SEVERE: An exception or error occurred in the container during the request

    hi
    I am using tomcat 4.0 as for my serlvets. I get below exception when processing a request. Please let me know under what conditions do we get such exception
    Aug 31, 2005 12:20:28 PM org.apache.coyote.tomcat5.CoyoteAdapter service
    SEVERE: An exception or error occurred in the container during the request processing
    java.lang.NullPointerExceptionnull at java.io.Writer.write(Writer.java:126)null at java.io.PrintWriter.newLine(PrintWriter.java:254)null at java.io.PrintWriter.println(PrintWriter.java:405)null at java.io.PrintWriter.println(PrintWriter.java:516)null at org.apache.catalina.logger.LoggerBase.log(LoggerBase.java:266)null at org.apache.catalina.core.StandardWrapperValve.log(StandardWrapperValve.java:376)null at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)null at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)null at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)null at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)null at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)null at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)null at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)null at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)null at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)null at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)null at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)null at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)null at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)null at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)null at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)null at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)null at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)null at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)null at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)null at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)null at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)null at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)null at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)null at java.lang.Thread.run(Thread.java:534)null
    Thanks
    Rajesh

    Srikanth,
    Problem is that the exception is not form any PrintWriter object i had instantiated in my servlet code. Infact, the exception comes from a class of tomcat when it is trying to log some information. The basic thing is I am contacting a Geographical positioning server from servlet. The contact is fine and I get requested information back from server. But, once the control comes back to server, I get that exception. If I dont contact the geo server, I dont get any exception.
    Thanks for your immediate reply.
    Rajesh

  • SQL Developer 1.5.4.59.40 - IO Exception: Undefined Error VENDOR CODE 17002

    Hi All.
    I hope someone can help.
    I have recently installed Oracle XE on my Vista Ultimate laptop and it is up and running with no apparent problems. I then connected to the HR schema on XE with no problems using SQL Developer 1.2.1.3213 (OLD Version). I noticed that SQL Developer 1.5.4.59.40 (NEW version) was available and downloaded it (the offering without JDK included) and renamed the "C:\Program Files\SQLDeveloper" folder holding the older version to "C:\Program Files\SQLDeveloper_Orig" and placed the new version of SQL Developer in the Prog Files directory to give "C:\Program Files\SQLDeveloper".
    I then ran SQLDeveloper.exe (NEW) and when requested gave the JDK path as "C:\Program Files\Java\JDK_1.6.0_11\bin\java.exe" ('Java -version' gives 1.6.0_11-b03) and migrated over the settings from the previous version of SQLDeveloper (OLD).
    The Application loads fine but when i attempt to connect to XE's HR schema i get the following error:
    "IO Exception: Undefined Error
    VENDOR CODE 17002"
    I have searched to try and find out what is going on but cannot find any solutions that work. The previous 17002 error solutions on this forumn have all failed.
    These included changing the JDK.conf file to hold route to JDK directory and also creating a 'bat' file.
    My system does not have the directory for the JDK in it's PATH environment setting (either USER or SYSTEM) but does include a directory path under SYSTEM environment vars to another version fo JDK on my machine under "C:\Program Files\Sun\JDK\". I thought this may be causing a conflict but it is version 1.6.0.05_b13 and is also compatible-is it not? I also have Java JRE6 (1.6.0_12-b04) on my machine - this does not have a PATH variable and was not referenced when loading SQL Developer when loading the first time.
    Can anyone help me resolve this, why can the previous version still connect OK to XE and not new version? is there something i am missing? Do i require the Java JDK Directory to be placed under a PATH environment SYSTEM variable?
    Thanks in advance,
    M
    Edited by: user592047 on 16-Mar-2009 10:08

    Taken from about SQL Developer:
    Version:
    CVS Version          Internal to Oracle SQL Developer (client-only)
    Java(TM) Platform     1.6.0_11
    Oracle IDE          1.5.4.59.40
    Versioning Support     1.5.4.59.40
    Properties:
    apple.laf.useScreenMenuBar     true
    awt.toolkit                    sun.awt.windows.WToolkit
    class.load.environment          oracle.ide.boot.IdeClassLoadEnvironment
    class.load.log.level          CONFIG
    class.transfer               delegate
    com.apple.macos.smallTabs     true
    com.apple.mrj.application.apple.menu.about.name     "SQL_Developer"
    com.apple.mrj.application.growbox.intrudes     false
    file.encoding               Cp1252
    file.encoding.pkg               sun.io
    file.separator               \
    http.agent                    Mozilla/5.0 (Java 1.6.0_11; Windows Vista 6.0 x86; en_GB) ICEbrowser/v6_1_3
    ice.browser.forcegc          false
    ice.pilots.html4.ignoreNonGenericFonts     true
    ice.pilots.html4.tileOptThreshold     0
    ide.AssertTracingDisabled     true
    ide.bootstrap.start          10390897243225
    ide.build                    MAIN-5940
    ide.conf                    C:\Program Files\sqldeveloper_new\sqldeveloper\bin\sqldeveloper.conf
    ide.config_pathname          C:\Program Files\sqldeveloper_new\sqldeveloper\bin\sqldeveloper.conf
    ide.debugbuild               false
    ide.devbuild               false
    ide.extension.search.path     sqldeveloper/extensions:jdev/extensions:ide/extensions
    ide.firstrun                    false
    ide.java.minversion          1.5.0
    ide.launcherProcessId          2672
    ide.main.class               oracle.ide.boot.IdeLauncher
    ide.patches.dir               ide/lib/patches
    ide.pref.dir                    C:\Users\M\AppData\Roaming\SQL Developer
    ide.pref.dir.base               C:\Users\M\AppData\Roaming
    ide.product                    oracle.sqldeveloper
    ide.shell.enableFileTypeAssociation     C:\Program Files\sqldeveloper_new\sqldeveloper.exe
    ide.splash.screen               splash.gif
    ide.startingArg0               C:\Program Files\sqldeveloper_new\sqldeveloper.exe
    ide.startingcwd               C:\Program Files\sqldeveloper_new
    ide.user.dir                    C:\Users\M\AppData\Roaming\SQL Developer
    ide.user.dir.var               IDE_USER_DIR
    ide.work.dir               C:\Users\M\Documents\SQL Developer
    ide.work.dir.base               C:\Users\M\Documents
    java.awt.graphicsenv          sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob          sun.awt.windows.WPrinterJob
    java.class.path               ..\..\ide\lib\ide-boot.jar
    java.class.version               50.0
    java.endorsed.dirs          C:\Program Files\Java\jdk1.6.0_11\jre\lib\endorsed
    java.ext.dirs               C:\Program Files\Java\jdk1.6.0_11\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
    java.home                    C:\Program Files\Java\jdk1.6.0_11\jre
    java.io.tmpdir               C:\Users\M\AppData\Local\Temp\
    java.library.path               C:\Program Files\sqldeveloper_new;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\oracle\xe\app\oracle\product\10.2.0\server\bin;C:\Program Files\CodeGear\RAD Studio\5.0\bin;C:\Users\Public\Documents\RAD Studio\5.0\Bpl;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Users\Public\Documents\RAD Studio\5.0\Bpl;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Microsoft Network Monitor 3\;C:\PROGRA~1\DISKEE~1\DISKEE~1\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_11;C:\Program Files\Sun\SDK\bin;C:\Users\Public\Documents\RAD Studio\5.0\Bpl;C:\Program Files\Nmap
    java.naming.factory.initial     oracle.javatools.jndi.LocalInitialContextFactory
    java.runtime.name          Java(TM) SE Runtime Environment
    java.runtime.version          1.6.0_11-b03
    java.specification.name          Java Platform API Specification
    java.specification.vendor     Sun Microsystems Inc.
    java.specification.version     1.6
    java.util.logging.config.file     logging.conf
    java.vendor                    Sun Microsystems Inc.
    java.vendor.url               http://java.sun.com/
    java.vendor.url.bug          http://java.sun.com/cgi-bin/bugreport.cgi
    java.version                    1.6.0_11
    java.vm.info               mixed mode
    java.vm.name               Java HotSpot(TM) Client VM
    java.vm.specification.name     Java Virtual Machine Specification
    java.vm.specification.vendor     Sun Microsystems Inc.
    java.vm.specification.version     1.0
    java.vm.vendor               Sun Microsystems Inc.
    java.vm.version               11.0-b16
    jdbc.library                    /C:/Program Files/sqldeveloper_new/jdbc/lib/ojdbc5.jar
    line.separator               \r\n
    oracle.home               C:\Program Files\sqldeveloper_new
    oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG     true
    oracle.translated.locales     de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
    oracle.xdkjava.compatibility.version     9.0.4
    orai18n.library               /C:/Program Files/sqldeveloper_new/jlib/orai18n.jar
    os.arch                    x86
    os.name                    Windows Vista
    os.version                    6.0
    path.separator               ;
    reserved_filenames          con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
    sun.arch.data.model          32
    sun.boot.class.path          C:\Program Files\Java\jdk1.6.0_11\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_11\jre\classes
    sun.boot.library.path          C:\Program Files\Java\jdk1.6.0_11\jre\bin
    sun.cpu.endian               little
    sun.cpu.isalist               pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    sun.desktop               windows
    sun.io.unicode.encoding     UnicodeLittle
    sun.java2d.ddoffscreen          false
    sun.jnu.encoding               Cp1252
    sun.management.compiler     HotSpot Client Compiler
    sun.os.patch.level          Service Pack 1
    user.country               GB
    user.dir                    C:\Program Files\sqldeveloper_new\sqldeveloper\bin
    user.home                    C:\Users\M
    user.language               en
    user.name                    M
    user.timezone               Europe/London
    user.variant     
    windows.shell.font.languages

Maybe you are looking for

  • Why I can't export a single frame from my composition?

    I try to export a single frame from the cavas but motion just did nothing when I click on export. Is there something wrong with my motion setup? I have trashed the motion's plist couple times already but still having the same issue. I can't even save

  • Brief description of object type in TADIR

    Go to: SE11 -> Table TADIR -> show contents -> on the selection-screen click in the field "OBJECT" and browse - you will see a list of all object types. My question: Where do I get from these brief descriptions? In whichsoever tables are these descri

  • Position drift during the stepper motor controlled back and forth motion

    Hi everyone there, I get a headache position drift problem during the stepper motor controlled back and forth motion. I have been wroking on the problem for the last two weeks, and still can not figure it out. So I write down here my problem in hope

  • Discover CLI :)

    Discover Finally gave me a soft pull CLI!! A whole $500 more  best way to start the third quarter of the year lol

  • OCE WPD driver installation hangs on client workstation

    Hi, We are having issues with a specific driver from OCE. The driver is WPD for an OCE PlotWave 300 on Win7x64. We cannot use another driver since the clients need it for AutoCAD documents. I have been able to add the driver to the driver store witho