Executing commands when connection pool connections created

Is there any way to set up connection pools to automatically execute a
command when a connection is created?
The system I'm working on needs (for a number of reasons outside of our
control) to switch our connection to be rule based by executing:
alter session set optimizer_goal=RULE;
I guess we could add this functionality into our "getConnection" method but
this just seems kind of inefficient.
We're using WLS5.1sp11 on solaris2.6 talking to oracle 8.1.7 using
weblogic.jdbc20.oci.Driver.
Does anyone have any ideas on how to persuade JDriver to initialise the
pool with the command above?
Thanks
Barry

Barry Munro wrote:
Is there any way to set up connection pools to automatically execute a
command when a connection is created?no, but...
The system I'm working on needs (for a number of reasons outside of our
control) to switch our connection to be rule based by executing:
alter session set optimizer_goal=RULE;
I guess we could add this functionality into our "getConnection" method but
this just seems kind of inefficient.
We're using WLS5.1sp11 on solaris2.6 talking to oracle 8.1.7 using
weblogic.jdbc20.oci.Driver.
Does anyone have any ideas on how to persuade JDriver to initialise the
pool with the command above?One trick you can do is to define the pool's connection test to do this
every time you reserve a pool connection, instead of doing a query to DUAL or
whatever test table you define. Define the testTable to be:
testTable=SQL alter session set optimizer_goal=RULE,\
testConnsOnReserve=true,\
Joe
Thanks
Barry

Similar Messages

  • Can I execute commands when my system switches to UPS battery or shutdown?

    Hi, I am trying to execute some custom commands when the power goes out and my mac is running on battery from an uninteruptible power supply (UPS).  I did some research and read that a script is executed when OS X shuts down when critera are met while its is running on battery from a UPS. UPS is supported by Mac OS because it shows up in the Energy Saver Preference plane.
    This script is:  /usr/libexec/upsshutdown
    I modified this script, but it looks like my custom commands are not executed.
    Does anyone know if mountain lion still executes this script?
    2012 Mac Mini Server
    CyberPower CP1000PFCLCD

    Okay. I think I know what the problem is. Here's the exact sequence I follow. I am thinking SQL Developer is not doing exactly what it should.
    a) File > New and then click okay
    b) The top dialog box shows the file name: Untitled2.sql
    c) I rename this to abcd and click okay
    d) SQL worksheet opens with the following filename "abcdsql" <- there's no dot between abcd and sql !
    e) I enter in "select * from dual"
    f) execute and it works fine
    g) I click save and it saves it as abcdsql <- NO extension
    Before I had not been looking carefully. I had seen the word "abcdsql" and thought it was "abcd.sql".
    Now my question is why does it append "sql" to the filename? I was in the box for naming a new sql file. It allowed me to type in a file name but then instead of adding "sql" as an extension it just appended this to the filename and didn't give it an extension.
    Anyone else tried this? It seems like a very non-standard thing to do. I never saw an application that just appended "sql" to the filename when it should have given the file a ".sql" extension.
    Richard

  • Executing commands without connecting to a specified database

    Hello...
    I want to create a new database using some sql commands
    I already have the commands, the problem is that I need to send these commands to the Oracle itself (without connecting to a specified database, the same as the SQL*PLUS /NOLOG option)
    I tried many variations of connection strings, but non of them works (whenever I tried connecting to the main machine, I got the obvious error: ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA)
    how can I connect directly to the main Oracle?
    (until now, our product worked with sqlserver, which has the "master" db integrated, and all commands can be performed through it... as far as I know, oracle doesn't have something like this)
    thanks in advance
    Nissim

    I think you should ask your dba to give you the sid first.
    and he should create the schema/user to connect to.
    or you can ask him to give you system password to create a user and grant it permission.
    then only you can connect to the oracle.
    now after connecting to the oracle you have the database script(sqlserver and oracle syntax is little different).
    you can say database in sqlserver is equivalant to schema in oracle.

  • NPE when using pooled connection

    Hello. I have a client application connecting to an OC4J server running on a different machine. The OC4J server maintains a pool of connections to the Oracle database. My client is able to get the datasource from the server via jndi, and gets a non-null connection from the datasource. However, when I try to create a statement using the connection, I get a Null Pointer Exception. If I get a non-pooled connection from the datasource, everything works fine.
    Here is the client code:
    javax.naming.Context ic = getInitialContext();
    javax.sql.DataSource dataSource = (javax.sql.DataSource)ic.lookup("jdbc/nanookDS"); //this gives you pooling
    // javax.sql.DataSource dataSource = (javax.sql.DataSource)ic.lookup("jdbc/nanookCoreDS"); //this does not
    for (int x=0; x<100; x++)
    Connection conn = dataSource.getConnection();
    if (conn == null)
    System.out.println("null");
    Statement stmt = conn.createStatement(); //fails here
    ResultSet rs = stmt.executeQuery("select * from pmi.patient where patient# = 0");
    rs.close();
    stmt.close();
    conn.close();
    Can someone please tell me what's happening? I'm pulling my hair out...
    BTW, the code above works fine when executed in a JSP on the OC4J server.
    Thank you,
    Brian Brown

    import javax.naming.*;
    import java.util.*;
    import javax.sql.*;
    import java.sql.*;
    public class Lookup {
    public static void main(String arg[]) throws Exception {
    Properties props = new Properties();
    props.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.rmi.RMIInitialContextFactory");
    props.put(Context.PROVIDER_URL, "ormi://localhost:23791");
    props.put(Context.SECURITY_PRINCIPAL, "admin");
    props.put(Context.SECURITY_CREDENTIALS, "welcome");
    InitialContext ic = new InitialContext(props);
    Lookup l = new Lookup();
    l.testConn ( ( (DataSource) ic.lookup("jdbc/OracleCoreDS") ).getConnection( ) );
    l.testConn( ( (DataSource) ic.lookup("jdbc/pool/OraclePoolDS") ).getConnection( ));
    l.testConn ( ( (DataSource) ic.lookup("jdbc/OracleDS")).getConnection( ));
    public void testConn( Connection conn ) throws Exception {
    Statement s = conn.createStatement( );
    ResultSet r = s.executeQuery(" Select 'Passed' from dual ");
    if( r.next() )
    System.out.println( r.getString(1) );
    else
    System.out.println( "Failed" );
    r.close();
    s.close();
    conn.close();
    Add oc4j.jar and classes12.jar to CLASSPATH.
    Elango.

  • Error during executing the tp command 'tp Connect DEV...

    Dear All,
       There is error when I SPAM support package SAPKB70010.(SAP ECC6.0)
       Info:
       Import phase 'CHECK_REQUIREMENTSS'
       \HOSTNAME\SAPMNT\trans\bin\TPPARAM
       Error during executing the tp command 'tp connect DEV...'
       TP return cod:'0208', tp message:'error in transportprofil (param missing,unknow..'tp output
       sapmnt\trans\bin\TPPARAM could not be opened.
      EXIT
      ERROR:
    System: Parameter SAPEVTPATH not set. Batch jobs cannot be started.
      Error in
    hostname\sapmnt\trans\bin\TPPARAM: transdir not set.
      tp return code Summary:
      TOOLS:Hightest return code of single steps was:0
      ERRORS: Highest tp internal error was:0208
    My environment:
    Win2003 X64
    Oracle 10.2
    SAP ECC 6.0  Basis 700  09
    Kernel patch num:254
    How to solve the issue?
    Thank you very much!

    Hi
    2 possible problems.
    1) tp is using the wrong profile
    2) the profile is not complete
    For 1, specify the profile when using the tp command e.g. tp connect dr1
    pf='/usr/sap/trans/DR1/bin/TPPARAM'
    For 2 you need to edit the TPPARAM file and insert the correct values e.g.
    DR1/sapevtpath = /usr/sap/$(system)/SYS/exe/run/sapevt or you can add
    it into the command line with the -D option
    At the command prompt enter 'tp connect' and the help file will be
    displayed for that command with the available options
    Cheers
    Nirav Kundaria

  • When I want to create a pdf from a webpage I get:"cannot connect to server" why?

    when I want to create a pdf from a webpage I get:"cannot connect to server" why?

    Did you set you Preference im the right way? See
    http://help.adobe.com/en_US/acrobat/X/pro/using/WS533B928E-576F-4dc3-AA14-73D08EEE8F20.w.h tml
    the newer link leeds to https://helpx.adobe.com/acrobat/topics.html .
    You could use the German link too:
    http://help.adobe.com/de_DE/acrobat/using/WSa65464b4e07c3e0a781ee72f1298fed479c-7ffe.html
    Hans-Günter

  • How can java programs execute automatically when it connects to network

    Good Day dears...
    How can java programs execute automatically when it connects to network.
    Thanks in Advance friends Shackir

    884924 wrote:
    Good Day dears...
    How can java programs execute automatically when it connects to network.What is "it"? That is, execute when what connects to the network?
    Your computer? If that's what you mean, this is not a Java question. It's an OS operational/administrative question. Executing any program, whether written in Java or not, based on some system event has to do with that system, not with the program. If it's possible to do this, you'd do it exactly the same way for a Java program as you would for any other program.
    Or is "it" the program itself? If this is what you mean, then it's a nonsensical question. For the program to connect to the network and detect that it has connected to the network, it must already be executing, so asking how to execute it at that point is meaningless.
    Finally, I'll point out that "connecting to the network" is a pretty meaningless phrase. Or rather, it has so many potentially valid meanings that it's impossible to know which one you're referring to when you use that phrase. And I'd be willing to bet you don't have a clear picture of that yourself.

  • When connecting to a server farm in sharepoint foundation 2013 cannot create new farm error: One or more types failed to load

    When trying to create a new server farm in the sharepoint foundation 2013 we get a following error :
    The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
    PS C:\Users\Administrator> New-SPConfigurationDatabase
    cmdlet New-SPConfigurationDatabase at command pipeline position 1
    Supply values for the following parameters:
    DatabaseName: SharePoint_Config
    DatabaseServer: PC78\SQLEXPRESS,25111
    FarmCredentials
    Passphrase: *********
    New-SPConfigurationDatabase : One or more types failed to load. Please refer
    to the upgrade log for more details.
    At line:1 char:1
    + New-SPConfigurationDatabase
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidData: (Microsoft.Share...urationDatabase:
    SPCmdletNewSPConfigurationDatabase) [New-SPConfigurationDatabase], SPUpgra
    deException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSPCon
    figurationDatabase
    And the error log is shown below :
    Microsoft.SharePoint.Upgrade.SPUpgradeException: One or more types failed to load.
    Please refer to the upgrade log for more details.
    at Microsoft.SharePoint.Upgrade.SPActionSequence.LoadUpgradeActions()
    at Microsoft.SharePoint.Upgrade.SPActionSequence.get_ActionsInternal()
    at Microsoft.SharePoint.Upgrade.SPUtility.GetLatestTargetSchemaVersionByMajorVersion(Type typeActionSequence, Int32 majorVer)
    at Microsoft.SharePoint.Upgrade.SPUtility.get_CurrentSPSiteWssTargetSchemaVersion()
    at Microsoft.SharePoint.Administration.SPSiteCollection.Add(SPContentDatabase database, SPSiteSubscription siteSubscription, String siteUrl, String title, String description, UInt32 nLCID, Int32 compatibilityLevel, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, Strin... b712a522-fa85-49eb-b59c-dedf55295504
    ...g secondaryContactLogin, String secondaryContactName, String secondaryContactEmail, String quotaTemplate, String sscRootWebUrl, Boolean useHostHeaderAsSiteName, Boolean overrideCompatibilityRestriction)
    at Microsoft.SharePoint.Administration.SPSiteCollection.Add(SPSiteSubscription siteSubscription, String siteUrl, String title, String description, UInt32 nLCID, Int32 compatibilityLevel, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String secondaryContactLogin, String secondaryContactName, String secondaryContactEmail, Boolean useHostHeaderAsSiteName)
    at Microsoft.SharePoint.Administration.SPAdministrationWebApplication.CreateDefaultInstance(SqlConnectionStringBuilder administrationContentDatabase, SPWebService adminService, IdentityType identityType, ... b712a522-fa85-49eb-b59c-dedf55295504
    ...String farmUser, SecureString farmPassword)
    at Microsoft.SharePoint.Administration.SPFarm.CreateAdministrationWebService(SqlConnectionStringBuilder administrationContentDatabase, IdentityType identityType, String farmUser, SecureString farmPassword)
    at Microsoft.SharePoint.Administration.SPFarm.CreateBasicServices(SqlConnectionStringBuilder administrationContentDatabase, IdentityType identityType, String farmUser, SecureString farmPassword)
    at Microsoft.SharePoint.Administration.SPFarm.Create(SqlConnectionStringBuilder configurationDatabase, SqlConnectionStringBuilder administrationContentDatabase, IdentityType identityType, String farmUser, SecureString farmPassword, SecureString masterPassphrase)
    at Microsoft.SharePoint.Administration.SPFarm.Create(SqlConnectionStringBuil... b712a522-fa85-49eb-b59c-dedf55295504
    ...der configurationDatabase, SqlConnectionStringBuilder administrationContentDatabase, String farmUser, SecureString farmPassword, SecureString masterPassphrase)
    at Microsoft.SharePoint.PowerShell.SPCmdletNewSPConfigurationDatabase.InternalProcessRecord()
    at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord() b712a522-fa85-49eb-b59c-dedf55295504
    Error Category: InvalidData Target Object Microsoft.SharePoint.PowerShell.SPCmdletNewSPConfigurationDatabase Details NULL RecommendedAction NULL b712a522-fa85-49eb-b59c-dedf55295504
    Leaving ProcessRecord Method of New-SPConfigurationDatabase. e9ae5ba6-c499-0000-d35c-aee999c4cf01
    we are using server 2012 R2 and we don't have office 2010 installed

    Yes,SQL server is on the same server as SharePoint 
    SQL has both the permissions Securityadmin
    and  DBcreator roles on SQL Server.
    When we run those sharepoint management shell commands the database  will be created with the error
    msg (shown in attachment)

  • When connecting to iTunes advised that the IPOD is corrupted and needs to be restored to factory settings.  I executed this procedure, but after reconnecting it again identifies that it is corrupted and needs to be restored.  Repeating did not resolve.

    When connecting to iTunes, the system responds that the Ipod id corrupted and needs to have the factory settings restored.  Factory settings are successfully installed, but response still identifies that the Ipod is corruped.  Several repeats stil give the same result.  Any other suggestions ?

    Hello CoulntThinkOfAUser,
    If you purchased the songs from the itunes store you wouldn't really loose anything. This is how to recover all of your previous purchases.
    How to download past purchases.
    Hope this helps.
    ~Julian

  • Crash on search function for HTML Help file (.chm) when connected to a Visual C++ application

    Crash on search function for HTML Help file (.chm) when
    connected to a Visual C++ application
    I use the RH_ShowHelp API command to connect a HTML Help file
    (.chm file generated by RoboHelp Word X 5) to my Visual C++
    application. My application is able to call up this HTML help file
    in context-sensitive mode and everything is working great in the
    Contents and Index panels EXCEPT when I click on List Topics (after
    I enter a KEYWORD for search) in the Search panel.
    I got an error that said “Unhandled exception in
    xxxx.exe.(HHCTRL.OCX):0xC00000FD: Stack overflow”
    I am able to execute this .chm file by itself and the search
    function works well in this case. I am using HHActiveX.dll that is
    created on 2/23/04. Is this the correct version?? Any advice what
    to do here??

    Hi agschin and welcome to the RH forums. The hhactivex.dll
    file is not used by the search function so you can rule that our.
    Have you tried recompiling and seeing if the problem still happens?
    You can also start the Bug Hunter feature in RH - View > Output
    View and then select the Bug Hunter button - and see if that throws
    up any clues.

  • DBMS_SCHEDULER.run_chain() only works when connected to DB as sys

    Database Version: 10.2.0.4.0
    Hello,
    I have a problem with DBMS_SCHEDULER.run_chain where the Chain to be run references an external Program.
    The Chain runs correctly when run via SQLPLUS when you are connected to the database as SYS but fails to run when you are connected to the Database as the User who owns the Chain.
    The complete steps to recreate the problem are below. Any thoughts or suggestions gratefully received.
    Thanks,
    Andy
    STEP 1: Login with sys as sysdba and create a new user
    CREATE USER chaintest IDENTIFIED BY password PROFILE DEFAULT ACCOUNT UNLOCK;
    GRANT MGMT_USER TO chaintest;
    GRANT CONNECT TO chaintest;
    GRANT IMP_FULL_DATABASE TO chaintest;
    GRANT SCHEDULER_ADMIN TO chaintest;
    GRANT MANAGE SCHEDULER TO chaintest;
    GRANT EXECUTE ANY CLASS TO chaintest;
    GRANT CREATE ANY DIRECTORY TO chaintest;
    GRANT CREATE ANY JOB TO chaintest;
    GRANT CREATE TABLE TO chaintest;
    GRANT EXECUTE ANY PROGRAM TO chaintest;
    GRANT CREATE JOB TO chaintest;
    GRANT CREATE EXTERNAL JOB TO chaintest;
    STEP 2: Create a very simple batch file
    Create a folder called c:\chaintest and create a text file in there whose entire contents
    is "notepad.exe" followed by a carriage return. The idea is that if this batch file is
    called a notepad Window will be opened so we can clearly see if the batch file has run.
    STEP 3: Create a DBMS_SCHEDULER Program
    BEGIN
    DBMS_SCHEDULER.CREATE_PROGRAM (
    program_name => 'CHAINTEST.CHAINTEST_PROGRAM',
    program_type => 'EXECUTABLE',
    program_action => 'C:\WINDOWS\SYSTEM32\CMD.EXE /q /c c:\chaintest\chaintest.bat',
    number_of_arguments => 3,
    enabled => false);
    DBMS_SCHEDULER.define_program_argument(
    program_name =>'CHAINTEST.CHAINTEST_PROGRAM',
    argument_position => 1,
    argument_type => 'VARCHAR2',
    default_value => '/q');
    DBMS_SCHEDULER.define_program_argument(
    program_name =>'CHAINTEST.CHAINTEST_PROGRAM',
    argument_position => 2,
    argument_type => 'VARCHAR2',
    default_value => '/c');
    DBMS_SCHEDULER.define_program_argument(
    program_name =>'CHAINTEST.CHAINTEST_PROGRAM',
    argument_position => 3,
    argument_type => 'VARCHAR2',
    default_value => 'c:\chaintest\chaintest.bat');
    DBMS_SCHEDULER.enable('CHAINTEST.CHAINTEST_PROGRAM');
    END;
    STEP 4: Create a chain
    BEGIN
    DBMS_SCHEDULER.CREATE_CHAIN (chain_name => 'CHAINTEST.CHAINTEST_CHAIN');
    END;
    STEP 5: Create the only Chain Step
    BEGIN
    DBMS_SCHEDULER.DEFINE_CHAIN_STEP(chain_name=>'CHAINTEST.CHAINTEST_CHAIN'
    , step_name=>'STEPA'
    , program_name=>'CHAINTEST.CHAINTEST_PROGRAM');
    END;
    STEP 6: Create Chain Rules
    BEGIN
    DBMS_SCHEDULER.DEFINE_CHAIN_RULE(
    chain_name=>'CHAINTEST.CHAINTEST_CHAIN'
    , condition=>'TRUE'
    , action=>'START STEPA');
    DBMS_SCHEDULER.DEFINE_CHAIN_RULE(
    chain_name=>'CHAINTEST.CHAINTEST_CHAIN'
    , condition=>'STEPA COMPLETED'
    , action=>'END');
    END;
    STEP 7: Enable the Chain
    BEGIN
    DBMS_SCHEDULER.enable('CHAINTEST.CHAINTEST_CHAIN');
    END;
    STEP 8: Run the Chain whilst still connected as sys and observe that a Notepad window opens
    confirming that the Batch file ran successfully.
    BEGIN
    DBMS_SCHEDULER.run_chain(
    chain_name=>'CHAINTEST.CHAINTEST_CHAIN'
    , start_steps=>NULL);
    END;
    STEP 9: Connect to the database as the CHAINTEST user and run the same command as in STEP 8 above.
    Observe that even though you receive the message "PL/SQL procedure successfully completed." and do
    not see any error messages that no Notepad Window is opened indicating that the Batch file was NOT run.
    BEGIN
    DBMS_SCHEDULER.run_chain(
    chain_name=>'CHAINTEST.CHAINTEST_CHAIN'
    , start_steps=>NULL);
    END;

    >
    The Chain runs correctly when run via SQLPLUS when you are connected to the database as SYS but fails to run when you are connected to the Database as the User who owns the Chain.
    >
    Not true based on what you posted. The chain DOES RUN connected as SYS and when connected as the User who owns the chain.
    You posted steps that show that SYS is the user that owns the program and thus the chain.
    >
    STEP 1: Login with sys as sysdba and create a new user
    STEP 8: Run the Chain whilst still connected as sys and observe that a Notepad window opens
    confirming that the Batch file ran successfully.
    >
    I don't see where you made any EXECUTE grant to user 'chaintest' that would allow that user to execute the program.
    See the Usage Notes in the CREATE PROGRAM section of DBMS_SCHEDULER in the Database PL/SQL Packages and Types Reference
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_sched.htm#CIHEHDHA
    >
    For other users to use your programs, they must have EXECUTE privileges, therefore once a program has been created, you have to grant EXECUTE privileges on it.
    >
    Grant the EXECUTE privilege to user 'chaintest' and try it.

  • SSL error when connecting in SAP HANA Cloud Portal tutorial

    Hi,
    I'm going through the tutorial for SAP HANA Cloud Portal - SAP HANA Cloud Portal Developers Tutorial
    Unfortuanatelly I have problems with deploying public destinations (page 9).
    When I try to deploy the destination for the CRM back from the command console using neo command with relevant parameters and entering my password I get the following error:
    ERROR; SSL error when connecting to https://configapi.hanatrial.onedemand.com/configuraiton/api/rest; server certificate might be invalid or untrusted.
    Logfiles.
    Session log
    2014-08-18 15:53:59,579 DEBUG [main] org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1: Get connection: HttpRoute[{s}->https://configapi.hanatrial.onedemand.com], timeout = 0 2014-08-18 15:53:59,581 DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute: [HttpRoute[{s}->https://configapi.hanatrial.onedemand.com]] total kept alive: 0, total issued: 0, total allocated: 0 out of 20 2014-08-18 15:53:59,581 DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute: No free connections [HttpRoute[{s}->https://configapi.hanatrial.onedemand.com]][null] 2014-08-18 15:53:59,581 DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute: Available capacity: 2 out of 2 [HttpRoute[{s}->https://configapi.hanatrial.onedemand.com]][null] 2014-08-18 15:53:59,582 DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute: Creating new connection [HttpRoute[{s}->https://configapi.hanatrial.onedemand.com]] 2014-08-18 15:53:59,729 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnectionOperator: Connecting to configapi.hanatrial.onedemand.com/216.128.6.149:443 2014-08-18 15:54:00,035 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection: Connection closed 2014-08-18 15:54:00,035 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection: Connection shut down 2014-08-18 15:54:00,036 DEBUG [main] org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager: Released connection is not reusable. 2014-08-18 15:54:00,036 DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute: Releasing connection [HttpRoute[{s}->https://configapi.hanatrial.onedemand.com]][null] 2014-08-18 15:54:00,037 DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute: Notifying no-one, there are no waiting threads
    Console log
    2014-08-18 15:53:56,080 INFO  [main] com.sap.jpaas.infrastructure.console.CommandManager: Starting execution of command [get-destination] 2014-08-18 15:53:56,086 INFO  [main] com.sap.jpaas.infrastructure.console.CommandManager: Command [get-destination] init() finished for [1] ms 2014-08-18 15:54:00,038 INFO  [main] com.sap.jpaas.infrastructure.console.CommandManager: Command [get-destination] cleanup() finished for [0] ms 2014-08-18 15:54:00,046 FATAL [main] com.sap.jpaas.infrastructure.console.ConsoleClient: (!) ERROR; SSL error when connecting to https://configapi.hanatrial.onedemand.com/configuration/api/rest; server certificate might be invalid or untrusted com.sap.jpaas.infrastructure.console.exception.ValidationException at com.sap.jpaas.infrastructure.console.command.RemoteCommand.getHttpClient(RemoteCommand.java:97) at com.sap.jpaas.infrastructure.console.command.UnsecuredRemoteCommand.getHttpClient(UnsecuredRemoteCommand.java:57) at com.sap.core.connectivity.config.cmd.ConfigurationConsoleCommand.createHttpClient(ConfigurationConsoleCommand.java:254) at com.sap.core.connectivity.config.cmd.GetAction.download(GetAction.java:79) at com.sap.core.connectivity.config.cmd.GetAction.run(GetAction.java:52) at com.sap.jpaas.infrastructure.console.CommandManager.run(CommandManager.java:295) at com.sap.jpaas.infrastructure.console.CommandManager.run(CommandManager.java:260) at com.sap.jpaas.infrastructure.console.ConsoleClient.run(ConsoleClient.java:235) at com.sap.jpaas.infrastructure.console.ConsoleClient.main(ConsoleClient.java:85) Caused by: com.sap.core.utils.infrastructure.validation.HostValidationException: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated at com.sap.core.utils.infrastructure.validation.LandscapeHostValidator.getHttpClient(LandscapeHostValidator.java:304) at com.sap.jpaas.infrastructure.console.command.RemoteCommand.getHttpClient(RemoteCommand.java:95) ... 8 more Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated at sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:397) at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:390) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148) at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149) at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:561) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:776) at com.sap.core.utils.infrastructure.validation.LandscapeHostValidator.getHttpClient(LandscapeHostValidator.java:284) ... 9 more
    BR
    Beata

    Hi Beata,
    The CRM scenario is working again. We had to re install the Connector and deploy a new proxy app.
    Therefore you would need to download the code from the GitHub repository again. The changes you need to do on your side:
    1. Redeploy the new crm__public destination file - the updated destination now points to the new location of the proxy application
    2. Update the code of the registration form scripts (form.js and form.spec.xml).
    Regards,
    Ido

  • Possible to select self-signed certificate for client validation when connecting to VPN with EAP-TLS

    In windows 8.2, I have a VPN connection configured with PPTP as the outer protocol and EAP : "Smart card or other certificate ..." as the inner protocol. Under properties, in the "When connecting" section I've selected "Use a certificate
    on this computer" and un-checked "Use simple certificate selection".
    My preference would be to use separate self-signed certificates for all clients rather than having a common root certificate that signed all of the individual client certificates. I've tried creating the self-signed certificate both with and without the
    client authentication EKU specified, and I've added the certificate to the trusted root certificate authority store on the client. But when I attempt to connect to the VPN I can not get the self signed certificate to appear on the "Choose a certificate"
    drop down.
    Are self signed certificates supported for this use in EAP-TLS? If it makes a difference, I'm working with makecert (not working with a certificate server).
    TIA,
    -Rick

    Hi Rick,
    Thank you for your patience.
    According to your description, would you please let me know what command you were using to make a self-signed certificate by tool makecert? I would like to try to reproduce this issue. Also based on my experience, please let me
    know if the certificate has private key associated and be present in the local machine store. Hence, please move the certificate from the trusted root certificate authority store to personal store.
    Best regards,
    Steven Song
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Error occured when connect to MySql Databse in Dreamweaver

    Hello! I met a problem when connect to Mysql Databse in
    Dreamweaver
    Details:
    My Php Environment: Php 5.2.2+ MySql 5.0.4 + IIS 6.0 + DW IDE
    + WinXP SP2,
    All necessary sevice started(Actually I have never stopped
    any Windows service).
    Php installed (IIS + CGI) and tested successfully in DW
    MySql Installtion(Typical Install with extensions ) and
    configuration are both OK.
    Configuration Details:
    For configuration type, select Detailed Configuration.
    For server type, select Developer Machine
    For database usage, select Non-Transactional Database Only.
    For the number of concurrent connections, select Decision
    Support(DSS)/OLAP.
    For networking options, accept the default settings.
    For the default character set, accept the default setting.
    For the Windows options, select both options – Install
    As Windows Service, and Include Bin Directory in Windows Path.
    For security options, enter a root password and confirmed.
    And then I Created a database "mydb" with 3 tables inside by
    "MySql Command Line Client",
    ...... (Approach Obmit here)
    Open "MySql Command Line Client":
    Type >mysql Show Database mydb;
    Show a list with 3 tables(Created Successfully)
    Then In DW,
    Open my Php webpage,
    Then from Database Panel>MySql Connection,
    Connect Name:myconn
    Mysql Server:localhost
    Username:root (Right)
    Password:111111(Right)
    Database:mydb
    Click "OK", but when DW tried to connect to MySql database,
    then DW popuped an alert dialog says "HTTP Error Code 502 Bad
    Gateway",
    I don't know what this mean and how to solve this problem,
    hope any PHP and DW expert can help me, thank you very much.

    Phoenix Wang wrote:
    > Click "OK", but when DW try to connect to MySql
    database, then popup an alert
    > dialog says "HTTP Error Code 502 Bad Gateway",
    > I don't know what this mean and how to solve this
    problem, hope any PHP and DW
    > expert can help me, thank you very much.
    How have you set up the Testing server in your site
    definition?
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Nullpointerexception when connecting to database

    I am trying to connect to an oracle database. I can get successfully connected using the netbeans database connection wizard. I transferred over the same driver and connection string to my code. I am currently getting this error when connecting. I commented on the line of code where i am receiving the error below. Any help is appreciated. thanks
    NPE exception in creating statement null
    java.lang.NullPointerException
    at mmsiserver.conversation.doAction(conversation.java:115)
    at mmsiserver.conversation.<init>(conversation.java:101)
    at mmsiserver.Server.run(Server.java:105)
    public conversation(Socket clientSocket) {
            System.out.println("beginning of convo");
            client = clientSocket;
            Connection connection = null;
            try {
                objOut = new ObjectOutputStream(client.getOutputStream());
                objIn = new ObjectInputStream(client.getInputStream());
            } catch (IOException ex) {
                ex.printStackTrace();
            try {
                // Load the JDBC driver
                // DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                String driverName = "oracle.jdbc.driver.OracleDriver";
                Class.forName(driverName);
                String url = "jdbc:oracle:thin:@139.67.66.27:1521:XE";
                String username = "system";
                String password = "mmsi";
                connection = DriverManager.getConnection(url, username, password);
            } catch (ClassNotFoundException e) {
                System.out.println("clnf exception in connection to db");
            } catch (SQLException e) {
                System.out.println("sql ex in connecting to db");
            this.start();
            doAction();
            public void doAction() {
            Statement stmnt = null;  // used in executing static SQL statement returns results it produces
            System.out.println("got to doaction");
            try {
               // it errors out on this next line.
                stmnt = connection.createStatement();
            } catch(SQLException e) {
                System.out.println("SQL Exception " + e.getMessage());
            } catch (NullPointerException npe){
                System.out.println("NPE exception in creating statement ");
                npe.printStackTrace();
          

    Your conversation constructor is using a different variable named "connection" from the one that the doAction method is using. You didn't show it, but you must have an instance variable named "connection" in order for doAction to compile.
    To fix: in the conversation constructor, don't say:
    Connection connection = null;Then the following line (that you already have) will initialize the same variable that doAction sees:
    connection = DriverManager.getConnection(url, username, password);

Maybe you are looking for

  • Generation of tree like GUI

    Hey guys, I need to create a GUI which looks something like the left side content section of this webpage. If I click on the + sign I can see more topics that are there in that items. http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?

  • How can I know what my skype number is?

    I have a regular subscription. Do I also have a skype number with this free subscription? If yes, how can I find out what my number is so that people can call me from landlines?

  • Support Dynamic JDBC Credentials

    Can I use something similar in JDeveloper 11g like in this example http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html

  • AT-MIO-16E10

    Hi I am using the above card for acquiring data simultaneously on 4 channels. I have written both labview as well as Visual basic codes for this. I see that the maximum sampling rate given for the card (100 kS/s) is shared between the channels - I ge

  • Calling Child record onto a Form Module

    I am using 2 tables, Parents & Child, i.e 1 to many relations. Naturally the child table contains more than one record for the parent relationship. To make it clear one empno in parant table has more than one record in nominee tables. How I can call