Connection object is null returned

Hi,
I have created a datasource in Server Navigator for MySql database. Also in Admin Console I have given a JNDI name to this datasource. I am using this JNDI name. Application is able to lookup for this JNDI name but unable to get connection object. I am getting this exception while executing the application. This error is due to MySql database? I am getting lot of error while running any aplication using JSC. Is it really possible to develop any application using JSC early access? Any help on this is highly appreciated.
Follwing part of exception which I am getting:
Exception Details: javax.faces.el.EvaluationException
javax.faces.FacesException: java.sql.SQLException: Error in allocating a connection. Cause: null
Thanks
Shailesh

I also faced the same problem with oracle DB.
I could workaround it as described in bug# 270767.
It is because the appserver expects a datasource
class implementation and creator UI expects a
vanilla DB driver class.
It could be resolved by completing design of your
project and then deleting a the datasource based on
the vanilla version of thedb driver and create a new
datasource with the same name based on
DataSource implementation.
hth,
Shanmu

Similar Messages

  • Problem in creating the ADODB.Connection object Error Number returned:-2147024770

    Hi,
    We are migrating our applications from Windows 2003 to 2008 application server. We have vbs script in a job which is invoked from Tivoli Workload Scheduler (Windows)/JOBLNCH 8.5.1. We are getting the error while creating ADOBD object (Error Number returned:-2147024770).
    The error does not occur when we directly run the job on the 2008 server, but only when invoked throught the TWS scheduler. Also, this error is not occurring on 2003 server when run through the TWS.
    Here is the code snippet used to create object.
    set oSrcConnect = CreateObject("ADODB.Connection")
    Could you please help us identify if any settings need to be changed to avoid this error. Many Thanks for looking into the question.

    Hi,
    Error -2147024770 = hex 8007007E
    Least significant 32 bits are hex 7E = decimal 126
    C:\>net helpmsg 126
    The specified module could not be found.
    This usually indicates that the COM object you're using is trying to load a DLL that is not installed.
    Based on only this error message, there's no way we can tell you how to fix your script.
    Bill

  • Field.get(Object obj) now returning null with Generics (Java 5.0) ??

    Hello,
    I'm currently using Java 5.0 (especially for the Generics part) on a new Java/J2EE project, but having a strange issue with code working previously in a Java 1.4 project.
    Below is an overriding of the toString() method provided by the Object class which allow me to view nicely in debug (dev. mode) the contents of my Transfer Objects (all the TO's must extend this ATO abstract class).
    Previously this code displayed me something like:
    [field1 => value1, field2 => value2] ... for a TO (sort of "Javabean") having e.g. two String fields with values initialized to "value1" (resp. "value2").
    But unfortunately, this does (or seems) not to work anymore, having such display :
    [field1 => null, field2 => null]I tried to debug, and the problem is that the call fieldValue = field.get(this); returns null while it should returns the actual value of the field.
    I thing it it strongly related to Generics, but could not at the moment found how/why it does not work.
    May someone help...? Thanks.
    public abstract class ATO {
        // Reflection for field value display
        public String toString() {
            StringBuffer sb = new StringBuffer("[");
            MessageFormat mf = new MessageFormat("{0} => {1}, ");
            Field[] fields = this.getClass().getDeclaredFields();
            for (int i = 0; i < fields.length; i++) {
                Field field = (Field) fields;
    String fieldName = field.getName();
    Object fieldValue = null;
    try {
    fieldValue = field.get(this);
    } catch (IllegalArgumentException e) {
    } catch (IllegalAccessException e) {
    mf.format(new Object[] { fieldName, fieldValue }, sb, null);
    if (sb.length() > 1) {
    sb.setLength(sb.length() - 2);
    sb.append("]");
    return sb.toString();

    ejp wrote:
    Field field = (Field) fields;
    This cast is unnecessary.
    Effectively, I haven't noticed it yet. Fixed.
    } catch (IllegalArgumentException e) {
    } catch (IllegalAccessException e) {
    }Either the field value really is null or you are getting one of these exceptions which you are ignoring. Never write empty catch blocks.That's true, I missed something. Fixed with some code to log the eventual exceptions.
    Thanks for you answer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Significnce of making the Connection object explicitly as null

    Iam using java.sql.Connection object to make connection to DB400 database and in the finally block closing the connection as con.close();
    90% of the time query is executing fine and getting correct results. But some times the updated values in the data base are not getting reflected in the result set. ie: ResultSet object is not refreshing properly(not always but sometimes). After making the code in the finally block as follows I feel it is working fine
    if(con != null)
    con.close();
    con=null;
    Can some one explain the significance of making an object explicitly to null.

    I am facing the same issue again. The resultSet and the stament are getting closed properly but the query is not fetching the updated results. If i execute the same query using a client(WinSQL), then the updated values are reflected. Also if i change any of the where conditions in the query(adding one more 'and' condition or 'or' condition ), then the query is giving correct results. Is there any resultSet caching occurs in websphere

  • DBCP - how are null connection objects handled?

    We are using DBCP in a refactored web application that, in the past, used a locally written connection pool. This original pool always checked a connection object to see if it was NULL before handing it out. I was told that this was because the DB was unstable at one point and the pool was handing out connections that were null after a db restart.
    I would like to know if this is an issue with DBCP. I can't image that it would be, this seems like a common enough situation. However, the higher ups are concerned that we have subtracted functionality by using DBCP.
    Thanks,
    -=bill

    snorky,
    Suck it and see. Suggest you tell the higher ups to go worry about "higher up" stuff, and leave the details to you... but I'd also cover my ass with a proven reversion strategy.

  • How to store Connection object and call it from other programs.

    Hi,
    I am trying to connect to the database, store the connection object and use this connection object from other standalone java programs.
    Can any one tell me how to do this? I've tried in the following way:
    In the following program I am connecting to the database and saving the connection object in a variable.
    public class GetKT2Connection {
       public static void main(String[] args) {
          String url = "jdbc:odbc:SQLDsn;
          String dbUser = "sa";
          String dbPwd = "sa";
          Connection kt2conn = Connection connection = java.sql.DriverManager.getConnection(url, dbUser, dbPwd);
          if(kt2conn == null) {
             System.out.println("Database Connection Failure!");
          else {
             System.out.println("Connected to Database...");
         GetKTConnectionObj.storeKT2ConnectionObj(kt2conn);
    } Here is the program to save connection object in a variable.
    public class GetKTConnectionObj {
       static Connection kt2Connection = null;
       public static void storeKT2ConnectionObj(Connection conn) {
       kt2Connection = conn;
       public static Connection getKT2ConnectionObj() {
       try {
          return kt2Connection;
       catch(Exception e){
          System.out.println(e);
      return null;
    }Now from the following code I am trying to get the connection object that is stored. But this is throwing NullPointerException.
    public class Metrics_Migration {
      public static void main(String args[]) {
         try {
        java.sql.Connection connection_1 =   GetKTConnectionObj.getKT6ConnectionObj();
         catch(Exception e){
    }

    kt2Connection is null. You need to store it first, to make it not null. Otherwise it will stay null forever. And why on earth are you trying to do this THIS way?
    If you are running the two applications separately, it wont work either.

  • Connection object is getting closed before the stored procedure is complete

    Hi Everyone,
    I am facing an issue where by the java connection object is closed before the stored procedure it is connected to is complete.
    I am not sure if the fault is in SP or Connection pool.
    After spending some time, i could able to figure out that the procedure is taking a tad more time for processing as there are over 1000 records in the database tables it is dealing with.
    Would that be a potential cause ? or Am i required to handle it in Java only ?
    I want to know what could be possible causes for this issue ?
    Please Help.
    FYI,
    The following are the logs which says,
    XYZ (Stored Procedure) : Start Time is 1349217771302 Procedure started here
    INFO >2012-10-02 18:43:09,935 [ConnectionPool]: Closing connection: DataSource [ABC](684)
    INFO >2012-10-02 18:46:03,512 DAO[main]: XYZ : End Time is 1349217963512 Procedure ended here
    Thanks in Advance.

    Hi ,
    Thank you all for your quick response.
    Well it's my bad i dint provide you any code to look into thinking that i am dealt with a gen issue and also i am too paranoid to post any code i am dealing with in the forum (i am sorry).
    But here is some information for you,
    Database : Oracle 10g
    Java: 1.5 version
    We are using only One connection object for the entire java backend process .
    The SP is of over 1000 lines of code which for obvious reasons i can't past it here but this morning i figured out an issue in SP where by a query taking way more than usual time to execute which led to SP's poor performance and also the reason for why it is taking very long time than usual.
    This query is a simple SELECT query where it is trying fetch over 2000 records from a table of over 3 million records. The execution time is over 30-40 seconds which is the root cause of SP's poor performance.
    When i eliminated this from the logic and ran the query it could able process (inserting huge volume around 5000 records of data) in 1 second instead of 3-4 minutes earlier.
    I tried to replicate this issue (which occurred in our production server) in my local system but no luck as there was no connection issue here but only the substantial time difference.
    We are using a customized connection pool which is as follows,
    I am not sure what's going on here because it seems to be greek and latin to me.
    What we are doing in our DAO is we are using method of the below ConnectionPool.getInstance(SCHEMA) to get the connection object.
    Looking forward to seeking advice from you on how connection pool in general works.
    public class ConnectionPool extends Thread
         private static final ConnectionPool me = new ConnectionPool();
         private Hashtable dataSources = new Hashtable();
         private static final int MIN_TIMEOUT = 0;
         private long timeOut;
         private Hashtable cons = new Hashtable();
         private Hashtable active = new Hashtable();
        private boolean trace = false;
         private ConnectionPool()
              registerDataSources();
              this.timeOut = PropertyManager.getIntProperty("connectionPool.timeOut", MIN_TIMEOUT);
              setName("ConnectionPool");
              setPriority(MIN_PRIORITY);
              if (timeOut > 0)
                   start();
         private void registerDataSources()
            dataSources.clear();
              Properties props = System.getProperties();
              String app = props.getProperty("X", "Y");
              for(Enumeration e = props.keys(); e.hasMoreElements();)
                   String key = (String) e.nextElement();
                   if (key.startsWith(app + ".connectionPool.dataSources.") && key.endsWith(".selector"))
                        String ds = key.substring((app + ".connectionPool.dataSources.").length(), key.length() - ".selector".length());
                        LogManager.logStatus("Registering [" + ds + "] (selector) " +
                                  props.getProperty(app + ".connectionPool.dataSources." + ds + ".selector"));
                        dataSources.put(ds,
                             new GenDataSource(
                                  ds,
                                  props.getProperty(app + ".connectionPool.dataSources." + ds + ".selector")));
                        continue;                    
                   if (!key.startsWith(app + ".connectionPool.dataSources.") || !key.endsWith(".server"))
                        continue;
                   String ds = key.substring((app + ".connectionPool.dataSources.").length(), key.length() - ".server".length());
                   try
                        LogManager.logStatus("Registering [" + ds + "] " +
                                  props.getProperty(app + ".connectionPool.dataSources." + ds + ".url"));
                        loadDriver(props.getProperty(app + ".connectionPool.dataSources." + ds + ".driver"));
                   catch (Exception se)
                        LogManager.logException(se);
                   GenDataSource genDataSource = new GenDataSource(
                             ds,
                             props.getProperty(app + ".connectionPool.dataSources." + ds + ".useMatrix", "false").equals("true"),
                             props.getProperty(app + ".connectionPool.dataSources." + ds + ".server"),
                             props.getProperty(app + ".connectionPool.dataSources." + ds + ".url"),
                             props.getProperty(app + ".connectionPool.dataSources." + ds + ".user"),
                             props.getProperty(app + ".connectionPool.dataSources." + ds + ".password"));
                   // Set the schema if schema is defined in settings.xml file
                   if (genDataSource != null && props.getProperty(app + ".connectionPool.dataSources." + ds + ".schema") != null ) {
                        genDataSource.setSchema(props.getProperty(app + ".connectionPool.dataSources." + ds + ".schema"));
                   dataSources.put(ds, genDataSource);
         public static Connection getConnection(String dataSource) throws SQLException
              GenDataSource ds = (GenDataSource) me.dataSources.get(dataSource);
              if (me.timeOut <= 0)
                   if (ds.getSchema() != null )
                        return updateSchema ( ds);
                   else
                        return DriverManager.getConnection(ds.url(), ds.user(), ds.password());
              String key = dataSource;
              Stack free;
              GenPooledConnection pc = null;
              synchronized (me)
                   if ((free = (Stack) me.cons.get(key)) == null)
                        free = new Stack();
                        me.cons.put(key, free);
                   if (!free.empty())
                        pc = (GenPooledConnection) free.pop();
                   if (pc == null)
                        if (ds.getSchema() != null )
                             pc = new GenPooledConnection("DataSource [" + key + "]",
                                                 updateSchema ( ds), free, me.active, me.timeOut, me.trace);
                        else
                             pc = new GenPooledConnection("DataSource [" + key + "]",
                                       DriverManager.getConnection(ds.url(), ds.user(), ds.password()), free, me.active, me.timeOut, me.trace);
                   else
                        pc.touch();
              LogManager.logStatus("Using " + pc);
              me.active.put(pc.id(), pc);
              return pc;
         public void run()
              for(;;)
                   try
                        sleep(60 * 1000);
                        synchronized (me) {
                             for(Enumeration e = cons.elements(); e.hasMoreElements();)
                                  Stack stack = (Stack) e.nextElement();
                                  for (int i = stack.size()-1; i >= 0; i--)
                                       GenPooledConnection pc = (GenPooledConnection) stack.elementAt(i);
                                       if (pc.isExpired())
                                            stack.removeElementAt(i);
                   catch (Exception e)
                        GenUtil.reportException(e);
         private static Connection updateSchema ( GenDataSource ds) throws SQLException {
              Connection con = DriverManager.getConnection(ds.url(), ds.user(), ds.password());
              if (ds.getSchema() != null ) {
                   String sql = "SET SCHEMA  " + ds.getSchema()+ ";";
                   LogManager.logDebugMessage("updating the Schema with sql statement " + sql);
                   PreparedStatement ps = con.prepareStatement(sql);
                   ps.execute();
                   ps.close();
              return con;
    }Thanks.
    Edited by: EJP on 5/10/2012 14:09: added {noformat}{noformat} tags. Please use them.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Question related to getmetadata in connection object

    i just want to check up what r the names of the tables in a database.
    when i use this sentence rs1=cn1.getmetadata.gettables(null,null,null,null);(assume that the command is syntactically correct coz it is so)
    it returns me somethin.on this resultset when i try to navigate like rs1.first or rs1.last it says resultset type forward only. i can say rs1.next but then i think that i need to say rs1.next till the moment i reach the last record.and so it even doesn't allow me to use the method rs1.islast() to check whether is the last record or not and gives me the same error message"resultset type forward only.". i think that u cannot change the type of this resultset that u get from the connection object metadata method.so please guide me on wat to do.

    Answer is simple: The catalog information, that is, the result sets returned by DatabaseMetaData queries, are not required to support something else than forward-only result sets. And: Looking at for example Oracle catalog tables, this is hardly surprising.
    The only solution I can think of (and which allows you to navigate arbitrarily in the catalog) is to copy the contents of the result sets into a local java.util.List object.

  • How to trap null return values from getters when using Method.invoke()?

    Hi,
    I am using Method.invoke() to access getters in an Object. I need to know which getters return a value and which return null. However, irrespective of the actual return value, I am always getting non-null return value when using Method.invoke().
    Unfortunately, the API documentation of Method.invoke() does not specify how it treats null return values.
    Can someone help?
    Thanks

    What do you get as a result?I think I know what the problem is.
    I tested this using following and it worked fine:
    public class TestMethodInvoke {
    public String getName() {
    return null;
    public static void main(String args[]) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
    Object o = new TestMethodInvoke();
    Class cls = o.getClass();
    Method m = cls.getMethod("getName", (Class[]) null);
    Object result = m.invoke(o, (Object[])null);
    if (result == null) {
    System.err.println("OK: Return value was null as expected");
    else {
    System.err.println("FAILED: Return value was NOT null as expected");
    However, when I use the same technique with an EJB 3.0 Entity class, the null return value is not returned. Instead, I get a String() object. Clearly, the problem is the the EJB 3.0 implementation (Glassfish/Toplink) which is manipulating the getters.
    Regards
    Dibyendu

  • User-Defined Data Type (Data Transfer Objects) is null

    hi
    i try to access a nested complex datatype over blazeds. i always see that the second level of the  complex datatye is NULL but the other data's like String are ok.
    here an example:
    as you can see TT1 has a member TT2, and a String
    TT2 has a member TT3 and a string
    and TT3 has just a string.
    in the ActionScript the TT2 referenz in TT1 is always NULL.
    Java Code
    Java code:
    package clientreportingserver;
    public class TT1 {
        public String getT1s() {
            return t1s;
        public void setT1s(String t1s) {
            this.t1s = t1s;
        String t1s;
        public TT2 getTt2() {
             return tt2;
        public void setTt2(TT2 tt2) {
             this.tt2 = tt2;
        TT2 tt2;
    =================================================
    package clientreportingserver;
    public class TT2 {
        public String getT2s() {
            return t2s;
        public void setT2s(String t2s) {
            this.t2s = t2s;
        String t2s;
        public TT3 getTt3() {
             return tt3;
        public void setTt3(TT3 tt3) {
             this.tt3 = tt3;
        TT3 tt3;
    =================================================
    package clientreportingserver;
    public class TT3 {
         public String getT3s() {
            return t3s;
        public void setT3s(String t3s) {
            this.t3s = t3s;
        String  t3s;
    ActionScript DataType
    package clientreporting.model
    import mx.collections.ArrayCollection;
    [RemoteClass(alias="clientreportingserver.TT1")]
    [Bindable]
    public class TT1
        public var t1s:String;
        public var t2:TT2
    ====================================================================
    package clientreporting.model
    import mx.collections.ArrayCollection;
    [RemoteClass(alias="clientreportingserver.TT2")]
    [Bindable]
    public class TT2
        public var t2s:String;
        public var t2:TT3
    ===================================================================
    package clientreporting.model
    import mx.collections.ArrayCollection;
    [RemoteClass(alias="clientreportingapi.TT3")]
    [Bindable]
    public class TT3
        public var t3s:String;
    here the output from blazeds. for me it looks perfect, all data are transmitted
    BlazeDs output
    [BlazeDS]Deserializing AMF/HTTP request
    Version: 3
      (Message #0 targetURI=null, responseURI=/5)
        (Array #0)
          [0] = (Typed Object #0 'flex.messaging.messages.RemotingMessage')
            source = null
            operation = "getTT"
            destination = "exposedServiceWrapper"
            clientId = "E57066B1-170E-503A-D4EC-004166E95FC3"
            body = (Array #1)
            timeToLive = 0
            headers = (Object #2)
              DSEndpoint = "channel-amf"
              DSId = "E570490A-C218-4A29-4229-8CD6F29222FC"
            timestamp = 0
            messageId = "5FDB47AD-9066-DD95-4CD4-0CE0D3F6C337"
    [BlazeDS]Adapter 'java-object' called 'null.getTT(java.util.Arrays$ArrayList (Collection size:0)
    [BlazeDS]Result: 'clientreportingserver.TT1
      t1s = TT 1 String
      tt2 = clientreportingserver.TT2
        t2s = TT 2 String
        tt3 = clientreportingserver.TT3
          t3s = TT 3 String
    [BlazeDS]Serializing AMF/HTTP response
    Version: 3
      (Message #0 targetURI=/5/onResult, responseURI=)
        (Externalizable Object #0 'DSK')
          (Typed Object #1 'clientreportingserver.TT1')
            t1s = "TT 1 String"
            tt2 = (Typed Object #2 'clientreportingserver.TT2')
              t2s = "TT 2 String"
              tt3 = (Typed Object #3 'clientreportingserver.TT3')
                t3s = "TT 3 String"
    1.262936445958E12
    (Byte Array #4, Length 16)
    (Byte Array #5, Length 16)
    (Byte Array #6, Length 16)
    the last Alert (accessing t2) got always a null pointer, the fist Alert works fine and print out the string i expected to see
    call in ActionScript
        public function loadTT():void {
           _policyService.getTT(loadTTHandle);
        private function loadTTHandle(content:TT1):void {
           Alert.show("" + content.t1s);
           Alert.show("" + content.t2.t2s);
    is it possible to access a nested complex type? i only could find simple examples.
    thanks for your help joe

    I found the problem
    in the flashlog.txt i found :ReferenceError: Error #1056: Cannot create property AFoo on [...]
    this let me to this blog http://blog.comtaste.com/java/  ==>
    Automating  ActionScript 3 classes generation from Java Beans in a LiveCycle Data Services context
    it was a naming problem.

  • External Content Typ: "Connection manager did not return valid connection."

    Hi,
    I created an external content typ in the sharepoint designer which takes my custom WCF Service as a data source. I sucessfully added all my required operations and created a new list based on the new content typ. At first I had a security issue which I got
    resolved by editing my BDC configuration in the Central Administration. Now I face a new issue. When I open my external list the BDC Service gives me the following error message:
    "Connection manager did not return valid connection."
    Has someone a solution for this kind of message?
    Thanks,
    Eric

    Hi,
       I got the same error "Connection manager did not return valid connection.". In the error log it shows
    09/17/2010 12:21:35.28  w3wp.exe (0x13FC)                        0x0F60 Business Connectivity Services Business Data                
     a5t8 Medium   Chose 'PassThrough' auth mode cb34d6ff-663a-4872-9022-21782a7be122
    09/17/2010 12:21:35.28  w3wp.exe (0x13FC)                        0x0F60 Business Connectivity Services Business Data                
     a5uo Medium   Initialized WcfSystemUtility for LobSystemInstance with Id '144'. cb34d6ff-663a-4872-9022-21782a7be122
    09/17/2010 12:21:35.28  w3wp.exe (0x13FC)                        0x0F60 Business Connectivity Services Business Data                
     a5up Medium   Wcf Service AuthN Mode: PassThrough  cb34d6ff-663a-4872-9022-21782a7be122
    09/17/2010 12:21:35.28  w3wp.exe (0x13FC)                        0x0F60 Business Connectivity Services Business Data                
     f8dk Medium   Checking for current connection to SystemInstance: NewCustomer cb34d6ff-663a-4872-9022-21782a7be122
    09/17/2010 12:21:35.28  w3wp.exe (0x13FC)                        0x0F60 Business Connectivity Services Business Data                
     a5s9 Medium   Creating ClientBase object with type : BCSServiceProxy.WCFCustomerClient cb34d6ff-663a-4872-9022-21782a7be122
    09/17/2010 12:21:35.29  w3wp.exe (0x13FC)                        0x0F60 Business Connectivity Services Business Data                
     a5tz Unexpected System.MissingMethodException: Method not found: 'Void Microsoft.BusinessData.SystemSpecific.Wcf.IBdcClientBase.set_ActAs(Boolean)'.     at Microsoft.SharePoint.BusinessData.SystemSpecific.Wcf.WcfConnectionManager.ConfigureCredentials(Type
    clientBaseType, Object clientBase)     at Microsoft.SharePoint.BusinessData.SystemSpecific.Wcf.WcfConnectionManager.CreateClientBase()     at Microsoft.SharePoint.BusinessData.SystemSpecific.Wcf.WcfConnectionManager.GetConnection()    
    at Microsoft.SharePoint.BusinessData.SystemSpecific.Wcf.WcfSystemUtility.ExecuteStatic(IMethodInstance methodInstance, ILobSystemInstance lobSystemInstance, Object[] args, IExecutionContext context) cb34d6ff-663a-4872-9022-21782a7be122
    Can you help me on this?
    Thanks in advance
    Thybu

  • Help - LCM Utility Error - Could not connect to source - Null

    Has anyone successfully used LCM to extract BI+ objects to files under 9.3.1?
    I've configured it as per the doc, and it seems to connect to HSS Ok, but fails to connect to BI+ even though I've used the Project name and App ID as shown in Shared Services.
    Attempting to load Log Config File:../conf/log.xml
    main 2009-01-16 11:49:11,823 INFO - ----------- Package file info -------
    main 2009-01-16 11:49:11,839 INFO - Package File Path = W:\Hyperion\common\utilities\LCM\9.3.1\doc\
    Test_ExportPackage.xml
    main 2009-01-16 11:49:20,948 INFO - --------Application Details:---------
    main 2009-01-16 11:49:20,948 INFO - Application Name: Hyperion System 9 BI+:xxxwebdev.pcdir.int.xxx:6800::1
    main 2009-01-16 11:49:20,948 INFO - Application ID: 00000115dc60f0fe-0001-09bc-0a0401e0
    main 2009-01-16 11:49:20,948 INFO - Plugin Type: java
    main 2009-01-16 11:49:20,948 INFO - CallBackURL: xxxwebdev.pcdir.int.xxx:6800
    main 2009-01-16 11:49:20,948 INFO - Product Name: HAVA-9.3.1
    main 2009-01-16 11:49:20,948 INFO - Product Code: HAVA
    main 2009-01-16 11:49:20,948 INFO - Project Name: Hyperion System 9 BI+
    main 2009-01-16 11:49:20,964 INFO - Plugin Class: com.hyperion.expimp.ExportImportManager
    main 2009-01-16 11:49:20,964 INFO - ----------------------------------------------
    Current date is - Fri Jan 16 11:49:21 GMT 2009
    Current date is - Fri Jan 16 11:49:21 GMT 2009
    Current date is - Fri Jan 16 11:49:21 GMT 2009
    Current date is - Fri Jan 16 11:49:21 GMT 2009
    Current date is - Fri Jan 16 11:49:21 GMT 2009
    Current date is - Fri Jan 16 11:49:21 GMT 2009
    Current date is - Fri Jan 16 11:49:21 GMT 2009
    Current date is - Fri Jan 16 11:49:21 GMT 2009
    Current date is - Fri Jan 16 11:49:21 GMT 2009
    java.lang.ClassNotFoundException: com.hyperion.expimp.ExportImportManager
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at com.hyperion.lcm.common.manager.ManagerFactory.getManager(Unknown Source)
    at com.hyperion.lcm.handler.util.Migration.getManager(Unknown Source)
    at com.hyperion.lcm.handler.ArtifactHandler.execute(Unknown Source)
    at com.hyperion.lcm.handler.TaskHandler.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Thread-6 2009-01-16 11:49:21,339 ERROR - Could not connect to Source - null
    Thread-6 2009-01-16 11:49:21,401 WARN - Task 1 in package file does not have a valid source manager
    Thread-6 2009-01-16 11:49:21,401 ERROR - There are errors in task 1
    Thread-6 2009-01-16 11:49:21,495 INFO - Migration(s) Completed Successfully.
    the Package Definition is...
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Dongling Ding (Hyperion) --><Package name="" description="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <Credentials user="admin" password="{CSS}gEyoY7EyW6cugoKczYohhQ=="/>
         <Connections>
              <ConnectionInfo name="MyHSS"
                   type="HSS"
                   description="Hyperion Shared Service connection"
                   url="http://xxxwebdev:58080/interop"
              />
              <ConnectionInfo name="FS"
                   type="FileSystem"
                   description="File System Location"
                   filePath="file:/c:/LCM/ExportedOutput"
              />
              <ConnectionInfo name="BI"
                   type="Application"
                   product="HAVA"
                   description="BI Plus Dev"
                   HSSConnection="MyHSS"
                   project="Hyperion System 9 BI+"
                   application="Hyperion System 9 BI+:xxxwebdev.pcdir.int.xxx:6800::1"
              />
         </Connections>
         <Tasks>
              <Task seqID="1">
                   <Source connection="BI">
                        <!-- the options listed would match some option specified in product registration -->
                        <Options>
                             <!-- Set to "true" if Job Outputs should be exported alone with the job -->
         <optionInfo name="exportJobOutput" value="true"/>
    </Options>
                   <!-- Following demonstrates retrieving the objects using the filtering by type -->
              <Artifact parentPath="/Repository Objects" type="folder" recursive="true" pattern="*"/>
              <Artifact parentPath="/Repository Objects" type="application/x-brioquery" recursive="true" pattern="*"/>
              <Artifact parentPath="/Repository Objects" type="application/x-SQR" recursive="true" pattern="*"/>
              <Artifact parentPath="/Repository Objects" type="application/hyperion-analyzer-report" recursive="true" pattern="*"/>
              <Artifact parentPath="/Repository Objects" type="application/hyperion-reports-report" recursive="true" pattern="*"/>
              <!-- Non-repository objects -->
                        <Artifact parentPath="/Product Preferences" recursive="true" pattern="*"/>
                        <Artifact parentPath="/Schedule Objects" recursive="true" pattern="*"/>
                        <Artifact parentPath="/Physical Resources" recursive="true" pattern="*"/>
                        <Artifact parentPath="/Security" recursive="true" pattern="*"/>
                   </Source>
                   <Target connection="FS">
                        <Options>
                        </Options>
                        <Transforms>
                        </Transforms>
                   </Target>
              </Task>
         </Tasks>
    </Package>
    Any advice would be great.
    Dave.
    Edited by: djhogg on 16-Jan-2009 04:22

    Soban,
    I was with the same problem and it worked using LCMUtility in BIPlus\bin directory.
    Thanks !
    Raphael
    Edited by: user4506039 on 11/05/2009 11:10

  • Problem with Connection Object

    I have created a java application. The main function is in MainFrame.java. I have created a connection object myConnection. This I did from the GUI dialog. Later while creating application module i used this connection.
    While running the application, I want to change the connection object . Let us say previously it was connected to myUser user. I want to change the username as hisUser. Ofcourse myUser and hisUser are the database users.
    The problem, how to get the myConnection Object reference. I don't know about this. Could any one please help me in this regard.

    Is myConnection a Connections-Navigator connection? Use the myConnection
    datasource jdbc/myConnectionDS to connect to datasource. Specify a different pasword for a different userid.
    String appModule = "model.AppModule";
    String cfg="AppModuleLocal";
    ApplicationModule applicationModule =
    (ApplicationModule)Configuration.createRootApplicationModule(appModule, cfg);
    Transaction transaction=applicationModule.getTransaction();
    transaction.connectToDataSource(null,"jdbc/myConnectionDS","OE",
    "<ppassword>", false);

  • Advantages of connection object

    Could someone explain the advantages or rather difference in passing the Connection object from a JSP to a servlet instead of creating one (and returning to the pool) in the servlet itself?
    Thanking you

    Do you mean the advantage of holding onto a connection over multiple requests versus making a new one each request?
    There it usually comes down to 2 things:
    1) Faster response time if new connections don't have to be made, or you don't have to wait for another connection to be freed for the pool
    2) Probably more importantly you can maintain multi-request transactions. If you have a transaction with the DB that may take several steps of user interaction, if you maintain the same connection then if you need to you can roll back all the changes (cancel) that the user made. If you make/get new connections each time then it is harder to roll back and you could leave the DB in an unwanted state.
    If you mean in the same request... then I don't know - other than it is easier to handle all the exceptions in a servlet then in a JSP (nature of working with Java code directly)

  • Getting null returned when working with Linked Lists

    Ok, i'm having the same problem with a couple of methods that deal with linked lists, and i was hoping someone could lend me a hand. First off, the specifications for one of the methods:
    An iterative procedure smallElements
    PARAMETERS: a ListItem reference, ls
    an integer n
    RETURN VALUE: a new list identical to the given list, except
    that it contains no occurrences of numbers greater than n.
    for example, given input list ( 3 2 6 3 4 ) and 3,
    the return value would be the list ( 3 2 3 )
    And here is my code:
    ListItem smallElements(ListItem ls, int n){
    ListItem small = null;
    ListItem result = small;
    if(ls == null)
    return null;
    else{
    while(ls!=null){
         if(ls.number <=n){
         result = new ListItem(ls.number, null );
         result = result.next;
         ls = ls.next;
    return small;
    Like the topic says, i keep getting null returned as a value. I have tried setting small= new ListItem(ls.number, null), and that actually returns the correct list, except that the first number is repeated twice. I would greatly appreciate any assistance.

    I am not sure I understand your code. What exactly are those ListItems? It seems to me that you are dealing with single List elements, while the specification says that you are supposed to return a List.
    But the main error is that you have two ListItem objects there, which seems to fill the same purpose - only that you use one, and return the other. 'small', which is the one you return, never get set to anything else than null.
    I think you should do something like this: make a new, empty list to return
    for element in parameterlist
        if number is smaller than n
            add this element to returnlist
    return returnlist

Maybe you are looking for

  • GL account wise report

    Dear All, I have to reconcile the BW with ERP for GL accounts. I need to know a transaction which will report GL account wise credit and debit. I have 700+ GL accounts. Is there a report where I can get each GL account and their respective credits an

  • Unzipping the file at AE

    Hi , I am doing file to idoc scenario. I am getting the file in zip format. File adaptor poll the file in zip format, Now my requirement is to extract the file in text format before content conversion .... can we use the OS command option in sender f

  • [ADF custom task form] How to get logged user in Worklist app?

    Hi! How to get the user id, logged in Worklist application in a managed bean? I'm creating ADF task form for human task and i have to know which user is logged in. Thx!

  • How can I show my view correctly  after interlization?

    hi, everybody        In my project , we need interlization(for example:English and Chinese). But after interlizating the view , I built and deployed the project in the "Development Configuration Perspective". When I ran the project, in the view, some

  • I said I didn't want Siri when downloading ios6 when I do want it! How do I now get it?

    I want Siri on ios6 but when downloading it I said I didn't want it ! How do I now get it?