MDMJavaAPI: Execute() method is not running.

Hi Gurus,
I am trying to delete the repository using MDMJavaAPI.
Here is the whole code for deleting repository.
=============================================import com.sap.mdm.commands.AuthenticateRepositorySessionCommand;
import com.sap.mdm.commands.CommandException;
import com.sap.mdm.commands.CreateRepositorySessionCommand;
import com.sap.mdm.commands.DestroySessionCommand;
import com.sap.mdm.net.ConnectionException;
import com.sap.mdm.net.ConnectionPool;
import com.sap.mdm.net.ConnectionPoolFactory;
import com.sap.mdm.repository.RepositoryStatus;
import com.sap.mdm.repository.commands.DeleteRepositoryCommand;
import com.sap.mdm.repository.commands.GetRepositoryStatusCommand;
import com.sap.mdm.server.DBMSType;
import com.sap.mdm.server.RepositoryIdentifier;
@author tarunsha
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
public class TestDeleteRepository {
                    public static final int STATE_NOT_CONNECTED = 0;
                    public static final int STATE_CONNECTED = 1;
                    public static int state = STATE_NOT_CONNECTED;
                    public static ConnectionPool simpleConnection;
                    public static RepositoryIdentifier repIdentifier;
                    public static String session;
                    public static String connection = "ntbomsap14";
                    public static String repository = "Test_JavaMDMapi_Tarun";
                    public static DBMSType dbmsType = DBMSType.MS_SQL;
                   public static void main(String[] args)throws CommandException, ConnectionException {
                   //Creating Connection.
                   simpleConnection = ConnectionPoolFactory.getInstance(connection);     
                   //Establishing connection with Repository.
                   repIdentifier = new RepositoryIdentifier("Test_JavaMDMapi_Tarun", connection, dbmsType);
                   //Creation Repository Session.
                   CreateRepositorySessionCommand createRepositorySessionCmd = new CreateRepositorySessionCommand(simpleConnection);
                   createRepositorySessionCmd.setRepositoryIdentifier(repIdentifier);
                   createRepositorySessionCmd.execute();
                   System.out.println("Create Repository Session Cmd is Executed.......");
                   session = createRepositorySessionCmd.getRepositorySession();
                   System.out.println("STATE_CONNECTION_ESTABLISHED.....");
                   AuthenticateRepositorySessionCommand authenticateRepositorySessionCmd = new AuthenticateRepositorySessionCommand(simpleConnection);
                   authenticateRepositorySessionCmd.setSession(session);
                   authenticateRepositorySessionCmd.setUserName("Admin");
                   authenticateRepositorySessionCmd.setUserPassword("");
                   authenticateRepositorySessionCmd.execute();
                    session = authenticateRepositorySessionCmd.getSession();
                    GetRepositoryStatusCommand getRepStatusCmd = new GetRepositoryStatusCommand(simpleConnection);
                    getRepStatusCmd.setSession(session);
                   getRepStatusCmd.execute();
                    RepositoryStatus repStatus = getRepStatusCmd.getStatus();  
                    if(repStatus.getStatus() == RepositoryStatus.RUNNING) {
                    System.out.println("Cannot delete a repository with status running! Canceling deletion process...");
                    destroy(session);     
                  DeleteRepositoryCommand deleteRepCmd = new DeleteRepositoryCommand(simpleConnection); deleteRepCmd.setRepositoryIdentifier(repIdentifier);     
                  deleteRepCmd.setSession(session);
                  // Excute the command...
                  System.out.println("Running");//Just for checking wheather control is reaching here or not.
                deleteRepCmd.execute();
     System.out.println("Execution of DeleteRepositoryCommand successful.");
                  destroy(session);
                  public static void destroy(String session) throws CommandException{
                              DestroySessionCommand destroySessionCmd = new DestroySessionCommand(simpleConnection);
                              destroySessionCmd.setSession(session);
                              destroySessionCmd.execute();
                              session = null;
                              System.out.println("STATE CONNECTION is DESTROYED......");
=============================================
When control reaches at execute method of DeleteRepositoryCommand class, it displays the following error msg.
com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ServerException: The current Protocol operation is not supported for the session specified.
*     at com.sap.mdm.repository.commands.DeleteRepositoryCommand.execute(DeleteRepositoryCommand.java:69)*
*     at Test_Package.TestDeleteRepository.main(TestDeleteRepository.java:85)*
Caused by: com.sap.mdm.internal.protocol.manual.ServerException: The current Protocol operation is not supported for the session specified.
*     at com.sap.mdm.internal.protocol.manual.AbstractProtocolCommand.execute(AbstractProtocolCommand.java:112)*
*     at com.sap.mdm.repository.commands.DeleteRepositoryCommand.execute(DeleteRepositoryCommand.java:64)*
*     ... 1 more*
Exception in thread "main"
Could you suggest me, what i have to do in this situation.
I need your help.
Edited by: Tarun Sharma on Jan 2, 2008 5:46 PM
Edited by: Tarun Sharma on Jan 2, 2008 5:50 PM
Edited by: Tarun Sharma on Jan 3, 2008 11:32 AM

Hi Namrata,
If we are deleting an repository, it means we are making connection with repository that's why we have to createRepositorySession rather than serverSession.
According to this JavaDoc note:
"NOTE: This command used to take in a repository session. This command had be changed to take in a server session. The setRepositoryIdentifier is also required."
the method setRepositoryIdentifier is defined in CreateRepositorySessionCommand not in ServerSessionCommand. That's why we have to use RepositorySessionCmd.
According to your advice I changed CreateRepositorySessionCommand and AuthenticateRepositorySessionCommand with ServerSessionCommand and AuthenticateServerSessionCommand but getting Same Error "The current Protocol operation is not supported for the session specified."
Thanks
Tarun
Edited by: Tarun Sharma on Jan 3, 2008 10:44 AM

Similar Messages

  • Execute Method must not return a resultSet

    Hi.
    I am using DataModifyQuery to insert a record in MS SQL. On that Table there is one trigger defined whcih in turn insert data into some other table. in case there is any error the trigger return a error message.
    When i execute the Sql with DataModifyQuery and there is a error return from the trigger then Toplink gives me a error message.
    Execute Method must not return a resultSet
    how can i over come this sistuation.
    Thanks.

    Nadir wrote:
    I was lost. Right, there was no return statement. Below works now
    public String getIPAddress(){
    String hostip = "";
    try {
    hostip = InetAddress.getLocalHost().getHostAddress();
    System.out.println("ip is "+hostip);
    } catch (UnknownHostException e) {
    hostip = e.getMessage();
    return hostip;
    -----It compiles. I wouldn't say it works. If I call a method getIPAddress(), I expect the String I get back to be an IP address. I don't want to have to parse it to determine that it's not an error message. That defeats the whole purpose of the exception mechanism. If that method can't get the IP address, it should throw an exception. In this case, there's no reason to catch the exception; just let it propagate up out of that method.
    Beginners often seem to think that exceptions are something that just arose on their own out of the language, and the designers had to add try/catch in order to be able to stop them from preventing our code executing. That's not the case. They were deliberately added to the language as a better way of indicating an error than checking return values at every step.

  • Why does LabVIEW Application Builder 8.0.1 create an executable that will not run?

    My VI runs perfectly.  But when I generate the executable, it will not run.  I get a "File Not Found" error.  The file it can't find is "File Open+.VI" from vi.lib.  I've tried copying File Open+.vi into my project.  If still generates the same error.
    Attachments:
    OTS.zip ‏3105 KB

    There error is coming out of FlowCal Server.  You use the current VI path to build up the file paths.  That works great in development but when you compile a VI into an exe, an extra layer is added.  See this KB http://digital.ni.com/public.nsf/websearch/FD7DE8BC8FFC256C862565F4006BE363?OpenDocument
    So when its an exe you need to strip the path one more time.

  • Set Methods are not running

    I am writing my first jsp. I have a bean that I am wanting to use and my understanding is that if I put the following commands in, that all the set methods for my properties will run in the bean automatically as long as the names of the properties are the same as those on the form.
    <jsp:useBean id="MedicalBean" class="Project5.MedicalReimbursementRecord" scope="session"/>
    <jsp:setProperty name="MedicalBean" property="*"/>
    The form has a number of textboxes, each text box has a name of one of the properties in my bean. I put display in my bean and I know that it is never running any of the "set" methods for any of the properties. I know that it is indeed getting into my bean, as I have displayed which indicate that methods that I request are indeed running.
    I have not "ACTION" parameter on the FORM, but I have looked at the examples in Tomcat and they have forms which do not have an "Action". I don't think this is a problem, but maybe I am wrong about that. If I put in the statement of:
    <jsp:setProperty name="MedicalBean" property="GrpAcctNbr"/>
    Then I get the error "Cannot find any information on property 'GrpAcctMbr' in a bean of type 'Project5.MedicalReimbursementRecord'"
    So there must be something wrong with my setProperty statement, but what is it?
    Thanks in advance for your assistance.

    Can you show the relevant JSP code and set/get methods in the bean?
    Sometimes this error is caused by capitalization. e.g. a request param of "myName" calls setMyName(). Also, your bean must have a no arguments constructor.
    Also, if you don't specify an action,the form submits to the current URL so you should be ok. Are you sure that the JSP runs when the user submits the form?

  • CCMS alert not running automatically

    Hi,
    Can take little time and read this one and please let me know where i am getting mistake, and is anyone can fix alert please let me know
    Thanks in Advanced
    1. SAPKB64020 Basis Support Package 20 for 6.40 imported at 13.12.2007
    2. check SU01 User Roles SAP_BC_BASIS_ADMIN, SAP_BC_ALM_CUST, SAP_ALM_ADMINISTRATOR, SAP_BC_ALM_ALERT_USER
    3. check SU01 comm.meth: e m a i l
    4. User Profile: S_A.SCON, SAP_ALL
    5. SMTP configured fine, internal mail works fine
    6. RZ21 - Copied CCMS_OnAlert_E m a i l to ZCCMS_OnAlert_E m a i l
       Execution Tab: Function Modle (SALO_M A I L_IN_CASE_OF_ALERT)
          Execute method on group (any server)
       Control Tab: Execute method (Periodically in dialog process
          Startup method group (checked -Execute method immediately after monitoring  segment start- )
          Selected (On all application servers)
       Paramaters Tabe: SENDER: awan_t
                        RECIPIENT:user @ company . com
                  RECIPIENT-TYPEID: U
                  SUBJECT_ALERT: This is CCMS from $SID
                  $NODENAME
                  $SEGMENT: Segment name node (= $INSTANCE )
       Release Tabe: (Checked Auto-reaction)
    7. RZ20 - SAP CCMS Monitor Templates
            --> Entire System
               --> XDV
                  --> Appication Server
                     --> SID ID
                       --> Operating System
                          --> Memory
                             --> Free Memory
       Selected Free memory and click properity
       Performance Attribute Tab: Comparison value (Selected Last reported value)
       Green to Yellow 10MB
       Yellow to Red 20MB
       Red to Yellow 10MB
       Rest from yellow to green 5mb
       Method Tab: Data collection method: CCMS_Mem_Collect_c
       auto-reaction method: zCCMS_OnAlert_mail
       Analysis method: CCMS_OS_Analze
    8. Goback to MTE Free memory (Refresh) and click open alert pushbutton
       it shows Free memory [ 1 Alert ], 49BM < 20 MB current value below throshold value
    9. click Extras from menu and actived mantannce function
    10. Goto EDIT from menu --> Nodes (MTE) --> Start method --> Start auto-reaction method
    11. I received e-mail when I started auto-reaction method
    Alert not running automacally ?

    Hi,
    Can take little time and read this one and please let me know where i am getting mistake, and is anyone can fix alert please let me know
    Thanks in Advanced
    1. SAPKB64020 Basis Support Package 20 for 6.40 imported at 13.12.2007
    2. check SU01 User Roles SAP_BC_BASIS_ADMIN, SAP_BC_ALM_CUST, SAP_ALM_ADMINISTRATOR, SAP_BC_ALM_ALERT_USER
    3. check SU01 comm.meth: e m a i l
    4. User Profile: S_A.SCON, SAP_ALL
    5. SMTP configured fine, internal mail works fine
    6. RZ21 - Copied CCMS_OnAlert_E m a i l to ZCCMS_OnAlert_E m a i l
       Execution Tab: Function Modle (SALO_M A I L_IN_CASE_OF_ALERT)
          Execute method on group (any server)
       Control Tab: Execute method (Periodically in dialog process
          Startup method group (checked -Execute method immediately after monitoring  segment start- )
          Selected (On all application servers)
       Paramaters Tabe: SENDER: awan_t
                        RECIPIENT:user @ company . com
                  RECIPIENT-TYPEID: U
                  SUBJECT_ALERT: This is CCMS from $SID
                  $NODENAME
                  $SEGMENT: Segment name node (= $INSTANCE )
       Release Tabe: (Checked Auto-reaction)
    7. RZ20 - SAP CCMS Monitor Templates
            --> Entire System
               --> XDV
                  --> Appication Server
                     --> SID ID
                       --> Operating System
                          --> Memory
                             --> Free Memory
       Selected Free memory and click properity
       Performance Attribute Tab: Comparison value (Selected Last reported value)
       Green to Yellow 10MB
       Yellow to Red 20MB
       Red to Yellow 10MB
       Rest from yellow to green 5mb
       Method Tab: Data collection method: CCMS_Mem_Collect_c
       auto-reaction method: zCCMS_OnAlert_mail
       Analysis method: CCMS_OS_Analze
    8. Goback to MTE Free memory (Refresh) and click open alert pushbutton
       it shows Free memory [ 1 Alert ], 49BM < 20 MB current value below throshold value
    9. click Extras from menu and actived mantannce function
    10. Goto EDIT from menu --> Nodes (MTE) --> Start method --> Start auto-reaction method
    11. I received e-mail when I started auto-reaction method
    Alert not running automacally ?

  • Execute method is undefined for Request_ZBpProjectGetlist2.

    I created a webservice for a BAPI and imported to Web Dynpro DC using Web Service Model.
    But I am getting an error in wdContext.currentRequest_ZBpProjectGetlist2Element().modelObject().execute();
    It says Method execute() is undefined for Request_ZBpProjectGetlist2.
    Can anyone help me why the execute method is not available for webservice model...

    Hi Sridhar,
    Please check execute method available for Request_ZBpProjectGetlist2 or not.
    Organize your import and check Request_ZBpProjectGetlist2 is imported or not.
    BR
    Arun

  • F110 Error-Pymt Methods for This Run Not Specified in Master Record

    Hi,
    I have encountered an issue where the payment program will not determine the payment method correctly.  We have several company codes assigned to a single paying company code.  We do not enter a payment method on the invoice.  The payment method is determined from the vendor master during the execution of F110. We have two different payment methods C and A.  The vendor is extended to multiple company codes and each company code can choose either payment method A or C. 
    Following is an example:
    CoCd     Vendor  PM
    1000     123         C (paying company code)
    2000     123         C
    3000     123         A
    4000     123         A
    If I execute F110 for payment method C, for vendor 123 and only include company codes 1000 and 2000, the payment program includes the invoices for payment as expected.  The same is true for payment method A with company codes 3000 and 4000. 
    We are trying to move towards a centralized AP payment run.  However, if I execute F110 for payment method C, for vendor 123 for all company codes (1000, 2000, 3000, 4000), the payment program has ALL the invoices set to exceptions.  If I review the Additional Log for Pmnt Method Selection if Not Successful it states: "None of the pmnt meths "C" has been entered in mast.rec.or in doc."  Message No. FZ605.  I would expect SAP to include the invoices from company code 1000 and 2000 for payment and the invoices from company codes 3000 and 4000 as exceptions because the payment method does not exist in the invoice or the master record.
    Does anyone have any ideas on how to resolve this issue?  Thank you in advance for your assistance.
    Sue

    Hi
    Friends,
    Check the Config FBZP properly
    1. Payment mentd in country-C (Check) select details button check whether this is maintained
    Select checkl box-Street PO, Box, pst code. in required master data specification Tab
    RFFOU_C
    LISTIS
    2. Payment methd in company code-A (ACH) select details button check whether this is maintained
    select check box Bank details required master data specification Tab
    RFFOEDI1
    LIST1S
    3. XK01 - Give Payment methd (AC) and also give Bank details in payment transaction tab.
    4.F110- Give payment metnd A or C depends upon your requirement.
    Go to SE11-PAYR, SE38-RFFOUS_C-----Check
    Goto SE38-RFFOEDI1----ACH
    Anil

  • Exception in Payment Proposal - Pmnt methods for this run are not specified

    Dear all,
    I want to ask if it is possible to run a payment proposal for AP transactions together with AR. The AR line items are used for clearing. Actually, this is the first time we execute proposal run which contains AP and AR respectively. And during the proposal, AR line item is an exception - 'Pmnt methods for this run are not specified in the master record or in item'. We already checked the master record, and there is a payment method. However, it was not captured during the payment proposal. Does it have something to do with the Document Type?
    Thank you once again for all your usual support.
    Regards,
    April

    To: Karthik, pushkaraj, JeCcas_DJ
    Thank you very much for your responses.
    I've checked already FBZP and Customer Master Record, payment methods were defined. Also, during the payment run, all line items have the same payment method, but only the AR transaction was not accepted.
    I think the problem is the same as what pushkaraj mentioned. We have payment method 'D' defined only for outgoing payments and not for incoming payments. I guess that is the problem.
    By the way, can I create another entry 'D' for payment method-incoming payments? Would there be conflict if I assigned same ID?
    Regards and thank you once again...
    April

  • IDocumentQuery.Execute() method throws user does not have edit permissions exception

    I'm trying to query a document folder for all of its containing documents. Its a basic query like this:
    IPortletContext PortletContext = PortletContextFactory.CreatePortletContext(Request,Response);IRemoteSession PTSession;PTSession = PortletContext.GetRemotePortalSession();IDocumentManager documentManager = PTSession.GetDocumentManager();
    IDocumentQuery documentQuery = documentManager.CreateQuery(FolderID); documentQuery.SetSortProperty(ObjectProperty.Name);IObjectQuery queryResults = documentQuery.Execute();
    When I'm logged into the portal as an administrator, everything works fine. However if I'm logged in as a "regular" user, I get this exception when calling the Execute() method:
    Plumtree.Remote.PRC.PortalException: Exception of type Plumtree.Remote.PRC.PortalException was thrown. ---> System.Web.Services.Protocols.SoapException: Server was unable to process request. --> Access denied: Current user does not have edit permission
    I'm sending the Login Token to the portlet. Now I've tried giving the user Edit rights on the document folder as well as Edit the Knowledge Directory rights in the Activity Manager, but neither gets rid of the exception. I'm not sure what other "Edit" permissions to check. I don't even see why the user would need "Edit" permission to anything in the first place since the Execute() method simply returns an IObjectQuery that doesn't have any ability to make changes to any objects. I know that I could use the SearchFactory interface, but I wanted the results to be real time. Any help would be much appreciated. Thanks!
    Jimmy

    The problem here is that the query is created with default settings to show unapproved documents -- only users with edit access can see unapproved documents. Add the bold line to your code and it will work.
    IDocumentManager docManager = prcSession.GetDocumentManager();IDocumentQuery docQuery = docManager.CreateQuery(iFolderID);docQuery.SetShowUnapproved(false);IObjectQuery queryResults = docQuery.Execute()

  • Labview 2011 executable does not run on AMD Quad Core

    I have recently bought a brand new Toshiba Satellite with AMD Quad Core- A8-4500M 1.9GHz processor and Windows 7 OS. It does not run any labview executables. It runs on all my Intel machines without any problem. This is the first AMD ever bought (and the last). I need help in resolving this problem.
    When I run an exe on the AMD, under Task Manager\Processes, I do see *.exe process running, but the Memory usage goes up and tops off at 100% and then it returns to 0. It's like a saw tooth waveform of memory usage, as if it's looking for some missing files. I have cleaned up the computer twice now and even a simple Add Two Numbers.exe does not work on this AMD.
    Any clue, anyone? please?

    I believe you are running into the problem described in this KB.
    http://digital.ni.com/public.nsf/allkb/4734A6405B123FA58625799900813593
    Regards,
    Jon S.
    National Instruments
    LabVIEW R&D

  • Abort and Reset methods do not execute on incoming error-

    Hi,
    I am using labview 8.6. Can i use  reset method in my host vi to reset my FPGA VI? Thanks

    The help explains what the Reset button does:
    Reset—Aborts and resets the FPGA VI on the FPGA target to
    the default state of the VI. This method sets the FPGA VI controls and
    indicators to their default states, sets uninitialized shift registers to their
    default values, clears FIFOs, and sets global variables to their default values.
    This method does not reset memory. If an error occurred before this method runs,
    the method runs normally and passes the error in value to
    error out. If an error occurs while this method runs, the
    method runs normally and merges error in and its own error
    status to produce error out.
    What exactly is the issue you are facing? Posting code will be helpful.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Does hide a frame means do not run/execute that frame(and its query) ?

    Hi Everyone
    Does hide a frame means do not run/execute that frame(and its query) ?
    Thank you
    Bryan

    No. It means setting the Format Trigger of it to reurn FALSE, so it won't display.

  • Workflow not executing method

    Hi,
    I am new in workflow. I am working on quotation workflow. I am using one zbusiness object which is working perfectly. But when i am using this object in my workflow one of method in this object is not working . It is excuting properly but logic within this method is not working.
    Regards,
    Gurprit

    I wouldn't mind trying to help, but I can't - because you're not letting anyone help you! How do you think we can help with your problem when you:
    1) don't say what you are trying to achieve with your method.
    2) don't give us the non-working (section of) the code.
    So please give some more information about your problem. Read the community guidelines for information and tips about phrasing your question.
    PS: When one of the methods in your object is not working I think it is slightly incorrect to say that your object is working perfectly...

  • Web Deploy error - "This method is not supported by this class"

    I have an MVC project which I am trying to deploy to one of our internally-hosted web front end servers via a TFS build process. Our server hosts the MS Deploy service, and other solutions deploy without problems to the same box. The parameters for the build
    process are as follows:
    /p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:MSDeployPublishMethod=WMSVC /p:MsDeployServiceUrl=https://<server>:8172/msdeploy.axd /p:DeployIISAppPath="<internal.site.com>" /p:username=<username> /p:password=<password>
    /p:IncludeIisSettingsOnPublish=false /p:AllowUntrustedCertificate=True /p:OutputPath=bin\ /p:SkipExtraFilesOnServer=True /p:VisualStudioVersion=11.0
    The error message I receive at the point the build reaches the deployment activity is:
    Web deployment task failed. (Could not complete the request to remote agent URL 'https://<server>:8172/msdeploy.axd?site=<internal.site.com>'.)
    Could not complete the request to remote agent URL 'https://<server>:8172/msdeploy.axd?site=<internal.site.com>'.
    The request was aborted: The request was canceled.
    This method is not supported by this class.
    We've found
    this StackOverflow post which describes the same error we're experiencing, however the suggested solution is something we already do in our server configuration, so this doesn't resolve the issue for us.
    Has anyone seen this error before, or is able to make any suggestions why it is happening?

    Hi Matt,
    You have to have a look in the build log then copy the command that is under Run MSBuild node and executed it on the build agent.
    You should find something like below:
    C:\Program Files (x86)\MSBuild\12.0\bin\amd64\MSBuild.exe /nologo /noconsolelogger "C:\Builds\....sln" /nr:False /fl /flp:"logfile=C:\Builds\...log;encoding=Unicode;verbosity=normal" /p:SkipInvalidConfigurations=true /p:CreatePackageOnPublish=true /p:DeployOnBuild=true /p:SkipExtraFilesOnServer=True /m /p:OutDir="C:\Builds\...\bin\\" /p:Configuration="DEV" /p:Platform="Any CPU" /p:VCBuildOverride="C:\Builds\....sln.Any CPU.DEV.vsprops" /dl:WorkflowCentralLogger,"C:\Program Files\Microsoft Team Foundation Server 12.0\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Normal;BuildUri=vstfs:///Build/Build/31630;IgnoreDuplicateProjects=False;InformationNodeId=14;TargetsNotLogged=GetNativeManifest,GetCopyToOutputDirectoryItems,GetTargetPath;LogProjectNodes=True;LogWarnings=True;TFSUrl=http://...-tfs:8080/tfs/...;"*WorkflowForwardingLogger,"C:\Program Files\Microsoft Team Foundation Server 12.0\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Normal;" /p:BuildId="aa2d3857-27e9-4854-b44f-4ca625ccd786,vstfs:///Build/Build/31630" /p:BuildLabel="..._2015.02.27.2" /p:BuildTimestamp="Fri, 27 Feb 2015 11:16:41 GMT" /p:BuildDefinition="..."
    Daniel

  • Exception: Call of execute(String) is not allowed for PreparedStatement

    Hi all,
    This query was run fine on SapDB 7.4 from Jave code using prepareStatement()  method:
    declare id11216053819634 cursor for select sc.name, measuredobjectid id from serviceconditions sc, measuredobjects mo where sc.collectionid = mo.collectionid and sc.name like 'DWindowsSLA/%,%,%,%' for reuse
    declare id21216053819634 cursor for select min(sampletime), max(sampletime), name, id11216053819634.id from id11216053819634, d_slastore ss where id11216053819634.id = ss.measuredobjectid and ss.sampletime between '2008-07-14 00:00:00' and '2008-07-14 12:43:35'  group by name, id11216053819634.id for reuse
    select ss.status, ss.statuschange, ss.sampletime, id21216053819634.name from d_slastore ss, id21216053819634 where ss.measuredobjectid = id21216053819634.id and ss.sampletime between '2008-07-14 00:00:00' and '2008-07-14 12:43:35'  and (statuschange != 0 or ss.sampletime = id21216053819634.expression1 or ss.sampletime = id21216053819634.expression2) order by name, sampletime
    We recently upgrade our old SapDb to the latest MaxDB. An now this query produces the error:
    com.sap.dbtech.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Call of execute(String) is not allowed for PreparedStatement.
    Does anyone know how to fix this?
    Thank you very much,
    Irina

    Hi Irina,
    First, welcome to SDN!
    Well, PreparedStatement represents a precompiled SQL statement, so you should be using the no-arg execute() method rather than execute(String).
    HTH!
    \-- Vladimir

Maybe you are looking for

  • How Do You Determine Your Apple FS Balance?

    How can I find the balance of my Apple Financial Services account? It's underwritten by TD Financial Services, which has even less information. There's no place to log-in on Apple's or TD's sites, no information on either site and no information in t

  • I want to use finished animations in Windows Movie Maker

    I use Flash cs6 and I have finished my first animation and want to finish the whole video on Windows Media Player. - I have tried Publishing it in different files. Non are accepted in the program. - I have tried Exporting it in different files. Still

  • Invoice and Order Confirmation automatic Print

    Hi everyone, The user wants the following configurations: Automatic printing of Invoices and Order Confirmations to the following printer: #$%$#%#%u2026.this printer is located on the following server: $%$#%$# Thanks for prompt response Nick

  • Why is -100% saturation still yielding faint colors?

    When working in "develop" - "basic", using adjustment brush at -100% saturation is still leaving my image with faint colors..... why would this happen and what am I missing to make this process work correctly?  Thanks..

  • Advantages of oracle

    can anyone please help me?? im a poor lil uni student looking for the advantages and disadvantages of using oracle developer