Problem during dynamic casting (using reflection)

Hi Guys,
Need you help
Situation is like this �.I have a function which accept the Sting parameter
Which is actually a full name of class �.using reflection I created the class and object
Now I want to cast this newly created object to their original class type
Code is somehow like this
Public void checkThis (String name) throws Exception{
Class c = Class.forName(name.trim());
Object o = c.newInstance();     
System.out.println(" class name = " + c.getName());
throw ()o; //// here I want to cast this object to their orginal class type
I tried throw (c.getName())o;
But it is not working
}

You can't cast to an unknown type like that. You're trying to throw the object, which makes me believe you're loading and instantiating some Exception or other, right? Just cast the result to something generic, like Exception, or RuntimeException, or maybe Throwable. As long as the class you load actually is a subclass of whichever you choose, you'll be fine. And if it isn't, you've got problems anyway because you can't throw anything that isn't Throwable

Similar Messages

  • Problem during dynamic casting

    Hi Guys,
    Need you help
    Situation is like this �.I have a function which accept the Sting parameter
    Which is actually a full name of class �.using reflection I created the class and object
    Now I want to cast this newly created object to their original class type
    Code is somehow like this
    Public void checkThis (String name) throws Exception{
    Class c = Class.forName(name.trim());
    Object o = c.newInstance();     
    System.out.println(" class name = " + c.getName());
    throw ()o; //// here I want to cast this object to their orginal class type
    I tried throw (c.getName())o;
    But it is not working
    }

    You are trying to do the impossible, for example, this just doesn't work:
    String classname = ...
    Class cls = Class.forName(classname);
    Object obj = cls.newInstance();
    classname x = (classname) obj; //??? There is no way to name this legal syntax!Solution: you must statically know an interface or superclass for the dynamic class:
    Runnable r = (Runnable) obj;
    new Thread(r).start(); //etcOr work with the Object reference, using reflection to apply methods, etc.
    Message was edited by:
    DrLaszloJamf

  • Dynamic JTabbedPane using Reflection

    Hi all,
    First time posting... I am wanting to created a dynamic JTabbedPane that creates its tabs with dynamic objects, these objects are defined at runtime. I have searched the forums and got this far but I am having trouble with casting the Method object to a type of Component which is what is required by the add(String str,Component comp) ;
    I know that I have given it a paramater of type Method, I am not sure though how to cast it to a type Component. The strings "myClassName" and "myTabTitle" have only been used for the purpose of this post.
    Some more background information that might be usefull is the .getInstance() method that I am trying to invoke .. the SamConfigPanel class extends a custom abstract class that is of type JPanel.
    My code is posted below ... any thoughts??
    public static final SamConfigPanel getInstance()
    if (samConfigPanel == null)
    samConfigPanel = new SamConfigPanel();
    return samConfigPanel;
    Class cls;
    JTabbedPane iTabs = new JTabbedPane();
    try
    cls = Class.forName("myclassName");
    Method method = cls.getMethod("getInstance",new Class[0]);
    method.setAccessible(true);
    method.invoke(cls, new Object[0]);
    // testing for instance of my dynamic class
    boolean b2 = cls.isInstance(SamConfigPanel.getInstance());
    System.out.println(b2);
    iTabs.add("myTabTitle",method.invoke(cls, new Object[0]));
    catch(ClassNotFoundException e)
    System.out.println(e.toString());
    catch(NoSuchMethodException e)
    System.out.println(e.toString());
    catch(IllegalAccessException e)
    System.out.println(e.toString());
    catch(InvocationTargetException e)
    System.out.println(e.toString());
    }

    as long as you're shure that your method returns a component it's safe to cast.
    if you can't be shure, you'd have to check the return type of your method before invoking directly.
    or invoke the method first, then check the object.
    Object o = method.invoke(null, new Object[0]);
    if ( o instanceof Component)
            iTabs.add(keys,(Component)o);
    else
           //do something else, print warning or such

  • Problem during uploading data Using BDC

    While I'm trying to upload data for T.Code J1IS using BDC, Value for the field  Net.***.value ( J_1IASSVAL-J_1IVALNDP) is not getting populated on the screen.
    Pls help.

    Hi,
    This is a Currency Field so you need to pass this to a Char field first and then pass to BDCTAB-FVAL.
    " This is a common problem with BDC with other data types even with Date  and Quantity and Numeric types
    Please note while passing values to BDCTAB all the values should be passed in CHAR form only
    Cheerz
    Ram.

  • Problem during BDC recording using wb01

    Hi,
    I have done recording using the T-Code WB01. While running the recording from SM35 it runs fine. But while the recording is being used to create the program to upload data, the execution stops at one field DELIVERY PRIORITY which is not a mandatory field. We can't proceed further even if the we put some value in the field. Please suggest some solution.
    Regards,
    Uttam

    Dear Mr. Bhowmik,
    SAP retail site master data was never batch input enabled. For this reason, during batch input several errors or endless loops could  occur. To avoid this, please read note 1274501 and 1400394 which contains some modification proposals .
    Please keep in mind, that SAP-Retail Site master does not support Batch Input (Rel. >=4.6C) and for this reason we do not support modification proposals.
    SAP recommends the use of CATT/SECATT instead of batch input.  
    With Best Regards,
    Markus Dinger

  • Private inheritance and dynamic cast issue

    Hello. I am hitting a problem combining private inheritance and dynamic casting, using Sun Studio 12 (Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25):
    I have three related classes. Let's call them:
    Handle: The basic Handle class.
    DspHandle. Handle implementation, able to add itself to a Receiver.
    IODriver. Implemented in terms of DspHandle, It is the actually instantiated object.
    Consider the following code. Sorry, but I've tried my best trying to minimize it:
    #include <iostream>
    using namespace std;
    class Handle {
    public:
    virtual ~Handle() {};
    class Receiver {
    public:
    void add(Handle &a);
    class DspHandle : public Handle {
    public:
    virtual ~DspHandle() {};
    void run(Receiver &recv);
    class IODriver : private DspHandle {
    public:
    void start(Receiver &recv) {
    DspHandle::run(recv);
    void DspHandle::run(Receiver &recv) {
    cout << "Calling Receiver::add(" << typeid(this).name() << ")" << endl;
    recv.add(*this);
    void Receiver::add(Handle &a) {
    cout << "Called Receiver::add(" << typeid(&a).name() << ")" << endl;
    DspHandle d = dynamic_cast<DspHandle>(&a);
    cout << "a= " << &a << ", d=" << d << endl;
    int main(int argc, char *argv[]) {
    Receiver recv;
    IODriver c;
    c.start(recv);
    Compiling and running this code with Sun Studio 12:
    CC -o test test.cc
    ./test
    Calling Receiver::add(DspHandle*)
    Called Receiver::add(Handle*)
    a= ffbffd54, d=0
    The dynamic cast in Receiver::add, trying to downcast Handle to DspHandle, fails.
    This same code works, for example with GNU g++ 4.1.3:
    Calling Receiver::add(P9DspHandle)
    Called Receiver::add(P6Handle)
    a= 0xbfe9c898, d=0xbfe9c898
    What is the reason of the dynamic_cast being rejected. Since the pointer is actually a DspHandle* , even when it is part of a private class, shouldn't it be downcastable to DspHandle? I think that perhaps the pointer should be rejected by Receiver::add(Handle &a) as it could be seen as a IODriver, that can't be converted to its private base. But since it's accepted, shouldn't the dynamic_cast work?
    Changing the inheritance of IODriver to public instead of private avoids the error, but it's not an option in my design.
    So, questions: Why is it failing? Any workarround?
    Best wishes.
    Manuel.

    Thanks for your fast answer.
    But could you please provide a deeper answer? I would like to know where do you think the problem is. Shouldn't the reference be accepted by Receiver:add, since it can only be seen as a Handle using its private base, or should the dynamic_cast work?
    Aren't we actually trying to cast to a private base? However, casting to private bases directly uses to be rejected in compile time. Should the *this pointer passed from the DspHandle class to Receiver be considered a pure DspHandle or a IODriver?
    Thanks a lot.

  • Problem for xml generation using DBMS_XMLGEN

    Hi All,
    i have problem during xml generation using Any help would be highly appreciate
    how could we publish xml data using data base API DBMS_XMLGEN in oracle applications (APPS) i.e. at 'View Output" using
    Any help would be highly appreciate.
    Let me know if need more explanation, this is High priority for me.
    Thanks and Regards,
    [email protected]
    Message was edited by:
    user553699

    You can set the null attribute to true , so that the tag appears in your XML
    see the statement in Bold.
    DECLARE
    queryCtx dbms_xmlquery.ctxType;
    result CLOB;
    BEGIN
    -- set up the query context
    queryCtx := dbms_xmlquery.newContext(
    'SELECT empno "EMP_NO"
    , ename "NAME"
    , deptno "DEPT_NO"
    , comm "COMM"
    FROM scott.emp
    WHERE deptno = :DEPTNO'
    dbms_xmlquery.setRowTag(
    queryCtx
    , 'EMP'
    dbms_xmlquery.setRowSetTag(
    queryCtx
    , 'EMPSET'
    DBMS_XMLQUERY.useNullAttributeIndicator(queryCtx,true);
    dbms_xmlquery.setBindValue(
    queryCtx
    , 'DEPTNO'
    , 30
    result := dbms_xmlquery.getXml(queryCtx);
    insert into clobtable values(result);commit;
    dbms_xmlquery.closeContext(queryCtx);
    END;
    select * from clobtable
    <?xml version = '1.0'?>
    <EMPSET>
    <EMP num="1">
    <EMP_NO>7499</EMP_NO>
    <NAME>ALLEN</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM>300</COMM>
    </EMP>
    <EMP num="2">
    <EMP_NO>7521</EMP_NO>
    <NAME>WARD</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM>500</COMM>
    </EMP>
    <EMP num="3">
    <EMP_NO>7654</EMP_NO>
    <NAME>MARTIN</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM>1400</COMM>
    </EMP>
    <EMP num="4">
    <EMP_NO>7698</EMP_NO>
    <NAME>BLAKE</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM NULL="YES"/>
    </EMP>
    <EMP num="5">
    <EMP_NO>7844</EMP_NO>
    <NAME>TURNER</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM>0</COMM>
    </EMP>
    <EMP num="6">
    <EMP_NO>7900</EMP_NO>
    <NAME>JAMES</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM NULL="YES"/>
    </EMP>
    </EMPSET>
    http://sqltech.cl/doc/oracle9i/appdev.901/a89852/d_xmlque.htm

  • Problems during Transformation using Xalan

    Hi,
    i'm using Xalan 2.6.0 to transform xml and xsl into HTML.
    This works fine but i get errors during Transformation but the HTML File is build.
    The Error is:
    [Error] version.xsl:9:80: Element type "xsl:stylesheet" must be declared.
    [Error] version.xsl:11:33: Element type "xsl:include" must be declared.
    [Error] version.xsl:20:3: Element type "xsl:output" must be declared.
    [Error] version.xsl:21:25: Element type "xsl:template" must be declared.
    [Error] version.xsl:22:7: Element type "html" must be declared.
    [Error] version.xsl:23:34: Element type "xsl:call-template" must be declared.
    [Error] version.xsl:24:79: Element type "xsl:with-param" must be declared.
    [Error] version.xsl:26:7: Element type "body" must be declared.
    [Error] version.xsl:27:83: Element type "table" must be declared.
    [Error] version.xsl:28:7: Element type "tr" must be declared.
    [Error] version.xsl:29:34: Element type "th" must be declared.
    [Error] version.xsl:32:64: Element type "table" must be declared.
    [Error] version.xsl:33:7: Element type "tr" must be declared.
    . and so on
    The header of the XSL File looks like:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE xsl:stylesheet [
    <!ENTITY amp "&#038;">
    <!ENTITY nbsp "&#160;">
    <!ENTITY uuml "&#252;">
    <!ENTITY Auml "&#196;">
    ]>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:include href="global.xsl"/>
    <!-- Template f�r root Element-->
    <xsl:output
    method="html"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
    encoding="ISO-8859-1"
    version="4.01"
    indent="yes"
    />
    <xsl:template match="/">
    Can somebody help me with this problem ?
    Thanks.
    Jens

    When I remove the DOCTYPE it works but is this a Xalan Problem or is the using of a doctype declaration in a XSL Document generally forbidden ?
    Because without Doctype i cant use characters such as "�", "�", and so on.

  • Problem while determining receivers using interface mapping: "SYSTEM FAILURE" during JCo call. Bean SMPP_CALL_JAVA_RUNTIME3 not found

    We have a SOAP to PROXY scenario Which is in Production.
    We keep getting the Error:
    " Problem while determining receivers using interface mapping: "SYSTEM FAILURE" during JCo call. Bean SMPP_CALL_JAVA_RUNTIME3 not found on host XXXXXX, ProgId =AI_RUNTIME_XXX.
    We are using Standard Receiver Determination with single receiver without any condition. And no mapping being used in interface determination.
    What are all the possible situation where we face such as this issue in Production.

    Please check the SAP note
    # 1706936 - messages fails with error java.lang.RuntimeException Bean SMPP_CALL_JAVA_RUNTIME3 not found
    1944248 - PI unstable due to JCO_SYSTEM_FAILURE mapping issues

  • CS 4 Dynamic Link to Encore doesn't work most of the time.  Encore stops operating after opening and periodically Premier Pro stops working.  I'm told that there has been a problem with CS4 when using Dynamic Link to go to Encore and build CD's.  Is there

    CS 4 Dynamic Link to Encore doesn't work most of the time.  Encore stops operating after opening and periodically Premier Pro stops working.  I'm told that there has been a problem with CS4 when using Dynamic Link to go to Encore and build CD's.  Is there a way around this?  Is there a patch to correct it?

    To build CD's???
    What problem does Encore have with DL?
    If DL is not working properly for you the way around this is to export from Premiere to either mpeg2-dvd for DVD or BluRay H.264 for BD-disks and import the files in Encore.

  • Problem to calling readObject(java.io.ObjectInputStream) using reflection

    Hi,
    I am facing the following problem
    I have an Employee class its overridden the following below methods
    private void readObject(java.io.ObjectInputStream inStream) {
         inStream.defaultReadObject();
    I am trying to call this method using reflection.
    my code is like this
         Class fis= Class.forName("java.io.FileInputStream");
         Constructor fcons = fis.getConstructor(new Class[]{String.class});
         Object fisObj = fcons.newInstance(new Object[]{"C:\\NewEmployee.ser"});
         Class ois= Class.forName("java.io.ObjectInputStream");     
         Constructor ocons = ois.getDeclaredConstructor(new Class[]{InputStream.class});
         Object oisObj = ocons.newInstance(new Object[] {fisObj});
         Method readObj = aClass.getDeclaredMethod("readObject", new Class[]{ois});
         readObj.setAccessible(true);
         Object mapObj = readObj.invoke(employeeObj,new Object[]{oisObj});
    The above code is call the readObject method, but it is failing while executing inStream.defaultReadObject() statement
    I am getting the following exception
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at HackEmployee.reflect(HackEmployee.java:49)
    at HackEmployee.main(HackEmployee.java:131)
    Caused by: java.io.NotActiveException: not in call to readObject
    at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:474)
    at Employee.readObject(Employee.java:77)
    ... 6 more
    can anybody help me?
    ~ murali

    Hi,
    Here is the simple example.
    public class Employee implements Serializable {
    static final long serialVersionUID = 1L;
    static final int _VERSION = 2;
    private int eno;
    private String empName;
         private String paaword;
         private void readObject(java.io.ObjectInputStream inStream)
    throws IOException, ClassNotFoundException {
         int version = 0;
         BufferedInputStream bis = new BufferedInputStream(inStream);
         bis.mark(256);
         DataInputStream dis = new DataInputStream(bis);
         try {
              version = dis.readInt();
              Debug.println(Debug.INFO, _TAG, "Loading version=" + version);
         } catch(Exception e) {
              dis.reset();
         switch(version) {
              case 0:
              case 1:
                   inStream.defaultReadObject();
                   migrateDefaultEmployeeToEncryptionPassword();
                   break;
              case _VERSION:
                   inStream.defaultReadObject();
                   break;
              default:
                   throw new IOException("Unknown Version :" + version);
         private void writeObject(ObjectOutputStream aOutputStream)
    throws IOException {
         aOutputStream.writeInt(_VERSION);
         aOutputStream.defaultWriteObject();
    Now I am writing a tool that need to read data and print all the field and values in a file.
    So I am trying the same with reflecton by calling readObject(ObjectInputStream inStream).
    But here I am facing the problem, it is geving java.lang.reflect.InvocationTargetException while calling migrateDefaultEmployeeToEncryptionPassword(.
    Hope you got my exact scenerio.
    Thanks for your replay
    ~ Murali

  • Curve 9300 error message: there was a problem during installati​on. Please try again when using app world

    hi 
    I have a curve 9300 using os 6 and the latest app world 2.1.1.. something
    when i try to download apps it initiates the download then after a couple of seconds after starting it shows the error message "there was a problem during installation. Please try again"
    i have tried ALL the suppourt forums (KB26671 and KB30074) and suggestions/threads and called my network but none have worked. 
    these were reinstallign app world, making a new blackberry id as the other email address was associated with an old blackberry, security wiping the phone then restoring it and entering the new bb id, changing the date to 2014 and then hard wiping the phone and restoring it
    i have twitter, facebook and bbm ect apps but these are RIM made i think and already preinstalled. everything else on the phone works fine
    i have tried both wifi and network internet and battery pull
    i really dont know what else to try or who else to contact to fix it. very annoying paying for a service you cant even use!
    any help or more ideas would be great! 
    thanks

    Hello carckberrypie,
    In this case i would recommend wiping the BlackBerry smartphone. To do this we would need to back up the BlackBerry smartphone http://bit.ly/aSediX
    Once backed up please follow the link below to perform a security wipe of your BlackBerry smartphone.
    Link: http://www.blackberry.com/btsc/KB14058
    Test the BlackBerry smartphone and proceed with a selective restore as outlined below.
    Link: http://www.blackberry.com/btsc/KB10339
    Thank you
    -DrP
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • We encountered a problem during use the Configtool access JAVA engine.

    We encountered a problem during use the Configtool access JAVA engine.
    Our environment of system as below:
    HardWard: IBM i570
    OS: IBM as/400 V5E3
    DB: DB2/400
    Application system:SAP XI 3.0
    The problem we encountered as below:
    Our company used XI 3.0 SR1 for exchange data between SAP R/3 and no-sap system.For now,we wanna create a backup system(for
    offline recovery),so we backup the XI product system throught entiry system save in AS/400(we stopped the XI system before
    save process start).And following,we restored from the tape that we save from XI product system to the new backup system(they
    are whole different paratition),but the problem is coming.Describe as following item:
    1. The application seem to can be started but the java node always restart circularly(We have 4 java node now),I think
    because of different of hardware configure(between XI product and Backup system) and lack of hardware resource.(XI prduction
    have 5 CPUs and 22G Mem,Backup system have 2 CPUs and 16G MEM ).Therefore we wanna decrease the number of java nodes for
    start application in backup system(throught configtool).
    2. We wanna use configtool to decrease the java nodes for start backup system.But we encountered a problem during running the
    configtool ,the information of prompt dialog as following:
    Error occurred while working with Configuration (Scanning).
    Msg:Error while connecting to DB.
    We also see the system.log that below the directory of usr\sap\PXI\DVEBMGS00\j2ee\configtool,and found some error as
    following text:
    #1.5#C0000A0008A8000000000000017A906E000423BFFC7246E0#1165207387826#/System/Configuration/Logging##com.sap.tc.logging.APILogg
    er.LogController[addLog()]#######Thread[main,5,main]##0#0#Info##Java#TC_LOGGING_CONFIGURATION_NEW_ITEMS
    [C0000A305666000000000002018FB1F70003D67C779ECE88]##The () has been added to the !#3#Log#.
    system.log#/System#
    #1.5#C0000A0008A8000000000001017A906E000423BFFC73A670#1165207388006#/System/Server##com.sap.engine.core.configuration#######T
    hread[main,5,main]##0#0#Info#1#com.sap.engine.core.configuration#Plain###ConfigurationManager: found jar for secure store
    Z:
    sapmnt
    PXI
    global
    security
    lib
    tools
    iaik_jce_export.jar#
    #1.5#C0000A0008A8000000000002017A906E000423BFFC73CD80#1165207388016#/System/Server##com.sap.engine.core.configuration#######T
    hread[main,5,main]##0#0#Info#1#com.sap.engine.core.configuration#Plain###ConfigurationManager: found jar for secure store
    Z:
    sapmnt
    PXI
    global
    security
    lib
    tools
    iaik_jsse.jar#
    #1.5#C0000A0008A8000000000003017A906E000423BFFC73CD80#1165207388016#/System/Server##com.sap.engine.core.configuration#######T
    hread[main,5,main]##0#0#Info#1#com.sap.engine.core.configuration#Plain###ConfigurationManager: found jar for secure store
    Z:
    sapmnt
    PXI
    global
    security
    lib
    tools
    iaik_smime.jar#
    #1.5#C0000A0008A8000000000004017A906E000423BFFC73CD80#1165207388016#/System/Server##com.sap.engine.core.configuration#######T
    hread[main,5,main]##0#0#Info#1#com.sap.engine.core.configuration#Plain###ConfigurationManager: found jar for secure store
    Z:
    sapmnt
    PXI
    global
    security
    lib
    tools
    iaik_ssl.jar#
    #1.5#C0000A0008A8000000000005017A906E000423BFFC73CD80#1165207388016#/System/Server##com.sap.engine.core.configuration#######T
    hread[main,5,main]##0#0#Info#1#com.sap.engine.core.configuration#Plain###ConfigurationManager: found jar for secure store
    Z:
    sapmnt
    PXI
    global
    security
    lib
    tools
    w3c_http.jar#
    #1.5#C0000A0008A8000000000006017A906E000423BFFC9C25A0#1165207390660#/System/Configuration/Logging##com.sap.tc.logging.APILogg
    er.LogController[setResourceBundleName(String resourceBundleName)]#######Thread[main,5,main]
    ##0#0#Info##Java#TC_LOGGING_CONFIGURATION_IS_CHANGED[C0000A305666000000000000018FB1F70003D67C779CD2B8]##The for the
    has been changed from to )!#5#resource bundle
    name#LogController#com.sap.security.core.server.secstorefs.SecStoreFS#<null>#com.sap.security.core.server.secstorefs.SecStore
    FSResources#
    #1.5#C0000A0008A8000000000007017A906E000423BFFC9C4CB0#1165207390670#/System/Configuration/Logging##com.sap.tc.logging.APILogg
    er.LogController[setResourceBundleName(String resourceBundleName)]#######Thread[main,5,main]
    ##0#0#Info##Java#TC_LOGGING_CONFIGURATION_IS_CHANGED[C0000A305666000000000000018FB1F70003D67C779CD2B8]##The for the
    has been changed from to )!#5#resource bundle
    name#LogController#/System/Security/SecStoreFS#<null>#com.sap.security.core.server.secstorefs.SecStoreFSResources#
    #1.5#C0000A0008A8000000000008017A906E000423BFFCAC7D38#1165207391731#/System/Server##com.sap.engine.core.configuration#######T
    hread[main,5,main]##0#0#Info#1#com.sap.engine.core.configuration#Plain###OpenSQLDataSource successfully created with secure
    store.#
    #1.5#C0000A0008A8000000000009017A906E000423BFFCDA3070#1165207394726#/System/Configuration/Logging##com.sap.tc.logging.APILogg
    er.LogController[setResourceBundleName(String resourceBundleName)]#######Thread[main,5,main]
    ##0#0#Info##Java#TC_LOGGING_CONFIGURATION_IS_CHANGED[C0000A305666000000000000018FB1F70003D67C779CD2B8]##The for the
    has been changed from to )!#5#resource bundle
    name#LogController#/System/Database/sql/jdbc#<null>#com.sap.sql.log.OpenSQLResourceBundle#
    #1.5#C0000A0008A800000000000A017A906E000423BFFCDB41E0#1165207394796#/System/Database/sql/jdbc##com.sap.sql.jdbc.NativeConnect
    ionFactory#######Thread[main,5,main]
    ##0#0#Error#1#com.sap.sql.jdbc.NativeConnectionFactory#Java#com.sap.sql_0002#com.sap.sql.log.OpenSQLResourceBundle#SQL error
    occurred on connection : code={0,number,integer}, state="", message="".#5#-99999#08001#The application requester
    cannot establish the connection. (XIPRD)#jdbc:as400://XIPRD/SAPPXIDB;transaction isolation=read uncommitted;data
    truncation=true;date format=jis;time format=jis;sort=hex;hold input locators=true;hold statements=true;cursor
    hold=false#<null>#
    The "SQL error occurred on connection"  happened during start run configtool.
    We don't know how to solve this problem.
    Thanks

    I am unable to start my configtool.bat to administer JVM memory settings for my J2EE.
    Wait......
    Thanks

  • My IPhone 5 is rebooting many times, during charge and using. How can I fix the problem?

    My IPhone 5 is rebooting many times, during charging or using. How can I fix the problem? All this problem began after I charged my phone in an aircraft with the USB Port.
    thanks

    Update to iOS 7.1.1. Then bring it to an Apple Store if it isn't fixed.

  • Problem using reflection... Really urgent...

    Hi all,
    in my current program, i'm usin reflection a lot. This is due to the fact that i automatically generate some code, compile it, and run another program which uses the generated code.
    The generated code contains inner classes. For example:
    package mypackage;
    class A {
    public A() {}
    class B {
    public B() {}
    class C {
    public C() {}
    My question is: how can i instantiate, the classes B and C using reflection? i think i tried everything but when i run my prog i keep having error messages such as:
    - InstantiationException
    - NoSuchMethodException
    -etc...
    Any idea?
    Jack

    Consider this:
    Can you make the inner clases static? If you do, you may instatiate them by using names like A.B and A.B.C.
    If the inner classes are not made static, they need an instance of the enclosing class in order to be instantiated. This basically means that you may instantiate a B from inside a (non-static) method (or constructor) in A, and a C from within a method in B.
    One way of doing this is to create a method on A that creates a B (a factory method). Then, in order to get a B you first create an A, then call the factory method to get a B. By putting a factory method for C's in B, you could then go on to create a C from the B.
    But before going into this, you should consider whether you really need the inner classes to be non-static.

Maybe you are looking for

  • Schedule lines present on R/3 but not available on BW.

    Schedule lines present on R/3 but not available on BW. It is observed that some schedule line records are uploaded to BW with recordmode ‘R’ causing deletion from ODS, though they are present on R/3 side (in EKET). We use 2lis_02_scl to upload schedu

  • How do I add more text messages to my plan?

    I know it's an AT&T issue, not an Apple issue, but I can't really find how to do that on the AT&T site. I just want to increase the # of text messages.

  • How to Deploy crystal reports in BOE

    Hi,     I have two questions.     1.How to deploy crystal reports in BOE server.     2.How many ways is there to deploy crystal reports in BOE server and name of the method is needed.    Anyone knows about these details could you please reply me Rega

  • Remote JMS Queue in Non-Clustered Environment

              We have two hosts, both running WLS 8.1, that are not clustered. We would like           to create a queue on the first and be able to read it from the second. Is this           possible? How does one go about setting this up?           

  • JAXRPC--adding cmd line args to client

    Hi, I followed all of the steps in the Java Web Services Tutorial for JAX-RPC to run the HelloWorld example and everything worked as outline on pages 335-341 of the tutorial. ONE BIG QUESTION: How can I add my own argument to the client so that, inst