Using 'getClasses'  for reflection / introspection  - not found in Jdev

Hi people,
I am using Jdeveloper 10.1.3.0.4 and I am trying to use some of java's reflection / introspection features.
- I am trying to use the getClasses method, part of the 'Class' class.
However, Jdeveloper is telling me 'method not found.' The getClass method
is found OK, but not getClasses, which looks like a standard method in 'Class' in the java doc. Anyone know how to pull this one in ? I am coding import java.lang.Class; explicitly as well.
Specifically, my need is to determine, at runtime, a list of the lowest-level 'leaf node' subclasses in a specific class inheritance tree. I reckon I should be able to do this with a recursive routine that uses getClasses on each class; when this returns an empty array I know I am at a lowest-level subclass. However it's failing on the first hurdle -
static House myHouse = new House(); // House is the simple class I want to test
static Class[] array_of_classes ;
array_of_classes = myHouse.getClasses();
-> method getClasses not found in <current package.class>
on a similar vein, I tried adding
import java.lang.reflect;
- this gives java.lang.reflect not found.
My only alternative is to code my program in a totally non-OO way! :-(
please help!
thanks!!!

Hi,
I resolved the other errors by changing all references from com.bea.jcom.Variant
etc to com.linar.jintegra.class name..all were present under the com.linar.jintegra
package.
Thank you all anyways,
Regards,
rahul
"Rahul Srivastava" <[email protected]> wrote:
>
Hi,
We are generating java classes for the COM dll using JCOM com2java compiler.
We are getting a compilation error for import class not found when compiling
the
generated Proxy java source code. It can't find the com.bea.jcom.Dispatch
class that
the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
or com.bea.jcom.Param. These are interfaces or data types or classes used
by COM
library.
I added weblogic.jar to my class path and the only Dispatch class i found
inside
the weblogic.jar is com.linar.jintegra.Dispatch;
We have com objects for which we want to develop an EJB client to interface
with
the COM object using JCOM with Native Mode disabled.
Any help on the compilation error..I tried changing the extends for Dispatch
to com.linar.jintegra.Dispatch
but the other errors are still there.
To begin with, I think the generated code should not refer to any of the
COM data
types.
Any help please.
Thank you in advance,
Regards,
Rahul Srivastava
[email protected]

Similar Messages

  • Client app using WSSE for authentication, WSSEClientHandler not found

    Hi,
    I'm trying to build a stand alone java client that uses login/password to connect to a webservice using WSSE.
    I thought that
    soapProxy = proxy.getCCSoap(username,password);
    would do the job. CC is the name of the web service.
    Now I've found on http://e-docs.bea.com/wls/docs81/webserv/security.html#1073530
    that I should use WSSEClientHandler from weblogic.webservice.core.handler and UserInfo from weblogic.xml.security do get the job done.
    Problem is now that neather of these classes are included in the support Jar i've downloaded from my web service's console.
    The error I get is this:
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: EJB Exception: ; nested exception is:
         com.bea.wlw.runtime.jws.wssecurity.exception.WLWWSSEException: Policy requires Message to contain UsernameToken, UsernameToken not found in the Message.
    Can somebody help me out? I'm realy stuck on this :-(
    Kristof Taveirne

    Well yeah, i've read that post.
    But I don't understand the error since the soapheader realy does contain the UsernameToken! But weblogic can't find it for some strange reason.
    This is what i get in TestXML when i look at the logs:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <env:Header>
    <wsse:Security env:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <wsse:UsernameToken wsu:Id="Id-1Sle_jmBkVTCRbF0KUXcN2BG" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <wsse:Username>Dr_Taveirne</wsse:Username>
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">ktaveirn</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </env:Header>
    <env:Body>
    <n1:getConfig xmlns:n1="http://www.openuri.org/">
    <n1:login>Dr_Taveirne</n1:login>
    </n1:getConfig>
    </env:Body>
    </env:Envelope>
    Exception
    Submitted at donderdag 7 april 2005 14.58 u. CEST
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    com.bea.wlw.runtime.jws.wssecurity.exception.WLWWSSEException: Policy requires Message to contain UsernameToken, UsernameToken not found in the Message.
    You see? really strange behaviour if you ask me.
    Greetings,
    Kristof Taveirne

  • When using Craigslist I keep getting this error: Warning! Domain mapping upgrade for this domain not found. Nothing I do works to fix this.

    When I use Craigslist, my personal list of things being sold, and I try and renew my listings, I periodically get this: "Warning! Domain mapping upgrade for this domain not found. Please log in and go to the Domains Upgrades page of your blog to use this domain." Usually rebooting my computer makes it go away for a short time, but today that isn't working and following the commands on the warning doesn't work either...is this truly a firefox issue? How do I fix it.

    Clear the cache and the cookies from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"

  • Compilation Error for import classes not found in generated Proxy Class

    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

    Hi,
    I resolved the other errors by changing all references from com.bea.jcom.Variant
    etc to com.linar.jintegra.class name..all were present under the com.linar.jintegra
    package.
    Thank you all anyways,
    Regards,
    rahul
    "Rahul Srivastava" <[email protected]> wrote:
    >
    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling
    the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch
    class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used
    by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found
    inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface
    with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch
    to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the
    COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

  • Datasource: ORA-02019: connection description for remote database not found

    Hi,
    I recently made the datasource to point to a new host, and using the EM console tested the connectivity to the datasource to be successful.
    Java code that refers to the DS is also the same as before that was working as only the connection string has been changed, but now trying to access the web-application shows the following error in the logs:
    ==============
    Exception::java.sql.SQLException: ORA-02019: connection description for remote database not found
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
    oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
    oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
    oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
    oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:113)
    oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:431)
    oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:1029)
    oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:463)
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1126)
    oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1274)
    oracle_jdbc_driver_T4CStatement_Proxy.executeQuery()=====================================
    What could be the reason? Is there any other app server datasource related setting that needs to be done or is it some other issue - as I said 'testing the connection from EM console connects successfully'.
    Thanks,
    Rommel.

    The issue is resolved now.
    One of the queries used a db link that was missing on the new database and therefore the error from the java code.
    Since testing for connectivity using DS through EM console does not check for any db link (using the default query it executes) connectivity was successful.
    Thank a lot,
    Rommel.

  • 'Connection Description for Remote Database not found' Error

    Hi All,
    I have an interface that loads Oracle DB from an Oracle source(JD Edwards). It is mostly one to one mapping of the columns, and is utilizing LKM Oracle to Oracle(DBLink), IKM Oracle Incremental Update and CKM Oracle.
    I am getting an error when executing the interface which states 'Connection Description for Remote Database Not Found' at the 'Insert Flow into I$ table' step in the Operator logs.
    The below is the content of the error:
    2019 : 42000 : java.sql.SQLException: ORA-02019: connection description for remote database not found
    java.sql.SQLException: ORA-02019: connection description for remote database not found
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.j(e.java)
         at com.sunopsis.dwg.cmd.h.z(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Please advice me on the correction.
    Many Thanks!

    Hi All,
    I am seeing things are working fine, when I am using LKM SQL to Oracle in combination with IKM Oracle Incremental Update. It is only in the case of using LKM Oracle to Oracle(DBLINK) in combination with IKM Oracle Incremental Update, that the above mentioned error is thrown.
    Please suggest on the resolution in using LKM Oracle to Oracle(DBLINK) with IKM Oracle Incremental Update...
    Thanks!

  • System name for alias GD4_500 not found in portal

    Hi people,
    I want to launch a query from analyzer, but i have the next error message "System name for alias GD4_500 not found in portal".
    What can i do??
    More thanks

    Read,
    http://help.sap.com/saphelp_nw70/helpdata/en/fb/93ed3d72fe4b5ae10000000a11405a/content.htm
    Regards
    Juan

  • My PC sign: driver for keyboard filter not found. what can i do?

    my PC sign: driver for keyboard filter not found. what can i do?

    Hi:
    I don't think it is a big deal but let's see if we can find a driver for it.
    Please click on the missing keyboard filter in the device manager. Then click on the details tab. In the Properties drop down list, select the second item (Hardware ID's).
    Post  the top string of characters you see in the window.
    That will give me more information to go on.
    Paul

  • ORA-0209:Connection discription for remote database not found

    Please help me with this oracle error.
    I have create a DB link to connect to the Oracle database from a remote Oracle DB. I am able to query the select statement through DBLINK and i also created the Synonym for the same. But still iget the below error in the DB package when i am inserting one row into the same table for which i created a synonym with the DBLINK
    ORA-0209:Connection discription for remote database not found
    ORA-02063:preceding line from DBLINK
    Please help me if anyone can give me a appropriate answer.
    Thanks in advance for all those who try to help me

    Sorry for the Typo mistake ..
    The ORA error code is not ORA-0209 but it is ORA-02019

  • A region sent for save was not found

    Hi
    www.heritageharbourcommunity.com
    I have a three column index page with four editable regions.  First two regions seem to work well (column 1)  The other two columns each have one editable region.  After making changes when I try to publish I get a message that begins "a region sent for save was not found...."  Incontext works well on my other pages (1 Column).
    I'm sure its me, but a point in the right direction would be helpful.  Thanks...Morgan

    Hello Morgan,
    I've narrowed down the problem on the page, and it is specifically related to the weather widget. Unfortunately, something in either the JavaScript or ActionScript for the widget is conflicting with InContext Editing. When the widget is removed InContext Editing functions properly when editing the page.
    Best regards,
    Corey

  • Error: License File Exception (check the log file for details): ENT_PE_NODE not found in datastore

    Hi;
    i have install 2 MCS 7816 (publisher and suscriber) with call manager version 6.1, i have load the files licenses for the publisher and the phones, but when i load the file license for the suscriber in publisher server i had the error messeage :
    Error : License File Exception (check the log file for details): ENT_PE_NODE not found in datastore
    what s the solution.
    Thanks for your help

    Hello,
    I seen this issue before, all you have to do is Contact Cisco Licensing team. In order to generate new licenses for your server.
    Thanks,

  • I am wanting to print my iCal calendar, as use it for bookings but not include entries calendar from other people who I've synced with.

    I am wanting to print my iCal calendar, as use it for bookings but not include entries calendar from other people who I've synced with.

    GACU,
    OK, now I think I understand your problem.
    If it is your calendar that is being shared with other users who have been granted editing priviliges, you will not be able to exclude those events from printing.

  • Transport target for business system not found in System Landscape Director

    Folks,
    We have new installed new PI 7.1 system and importing interfaces from the OLD XI 3.0 system in to new PID 7.1 system.
    We are getting following error when we try to import an interfaces in to new PID system:
    Import failed because of business system transfer object
    Communication component XID_FileSystem: Obligatory
    transport target for business system XID_FileSystem not found in
    System Landscape Directory
    We are yet to install PIQ system.
    All the interfaces in the old XID system have transport target of XIQ system.  I removed the  transport taget for the interface, but transport target is still showing in the Business system under transport target head.
    How can we overcome this issue as we will not have PIQ system atleast for two weeks.
    Thanks in advance,
    Regards
    Chandu

    Hi,
    You need to maintain Transport Groups and target for business systems while SLD transports between your XI system and PI 7.1
    Illustrated with DEv & PRD here.
    Procedure:
    1) Call Integration Builder screen on DEV Server with http://hostname:J2ee Port/rep
    2) Call SLD (System Landscape Directory) Component from the Integration builder
    Save all the Following .zip files on the Local Desktop
    3) Select the Software Component & say Export that you want to Export from DEV
    Server to Production server and which is going to use in the IR of XI
    4) Also Select the Product of the above SWC and say Export
    5) Select the Technical Systems (TS of XI & TS of the SAP R/3) and say Export
    6) Select the Business System(s) & say Export; those are associated with above Exported
    Technical systems.
    In Production Server
    1) Logon to the SLD of the Production Server.
    2) Create a Technical System and Business system which points to the Production SAP R/3
    3) Go to Administration TAB in the main page of SLD
    4) Select the Import option to Import the SWC , PRD, TS,& BS which we Exported Earlier in DEV Server
    5) Click on Browse and select the .zip files that is to Import into Production Server,
    Which were stored on the local desktop at the time of DEV Server Export
    And say Import Selected File Option
    By this we exported and imported the SLD Objects
    Now we have to create transport groups and transport targets in the Production server of SLD
    Creation of Transport Groups
    Edit GroupsGroup1) Select the Business systems 
    2) Click on New Group and give the name of the group as DEV_group & select the
    Corresponding Development serveru2019s integration Server
    3) Similar way create another group for Production serveru2019s business system as
    PRD_group and select the Production serveru2019s integration Server
    Creation of transport targets
    This is to Define which business systems in two different groups correspond to each other
    1) Select each Business system in the SLD and select transport TAB---click on
    Add/Change Target and select its corresponding target business system.
    For Example:
    If you select the business system of Production XI server means
    In the target you have to select group as DEVGROUP and the business system of Development XI server.
    Like this do the same for other business systems also
    Ex:
    BS_PRD_Integration Server----
    BS_DEV_Inetration Server
    How to create Transport Groups & transport Targets
    http://help.sap.com/saphelp_nw04/helpdata/en/ef/a21e3e0987760be10000000a114084/content.htm
    Regards
    Seshagiri

  • Connect to MS Access using NetBeans, data source name not found!

    Hi
    NetBeans IDE 7.3 and OS was Windows 7 (64-bit )
    When I run my program by NetBeans, it complain about the following errors.
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    In fact, the MS Access file had exist the specify path, I can run the jar file (not in IDE environment) and connect to MS Access DB successfully.
    And I had search from network, and found it said "the ODBC source was run by different server", one was C:\Windows\SysWOW64\odbcad32.exe for 32-bit and c:\windows\system32\odbcad32.exe for 64-bit.
    So the question is, why IDE cannot connect to MS Access DB, How to set NetBeans IDE to make it connectable to 32 bits or 64 bits ODBC, like the program run without IDE?
    Thanks!

    user13005878 wrote:
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specifiedThat reads like "your datasource configuration is not good, fix it"
    And I had search from network, and found it said "the ODBC source was run by different server", one was C:\Windows\SysWOW64\odbcad32.exe for 32-bit and c:\windows\system32\odbcad32.exe for 64-bit. It would make a whole lot of sense if that was the other way around, don't you think? SysWOW64 for 64 bits and system32 for 32 bits.
    So the question is, why IDE cannot connect to MS Access DBBecause something is wrong
    How to set NetBeans IDE to make it connectable to 32 bits or 64 bits ODBC, like the program run without IDE?By setting the correct connection configuration properties.
    I'm not 100% positive, but I believe that doing ODBC connections from a 64 bits environment is not actually supported in Java. You may be outraged by that - in Java 8 the ODBC-JDBC bridge is going to be completely dropped, no more connecting to Access from Java without third party libraries (which tend to be commercial). In any case for now try to use a 32 bits Java runtime if you're using a 64 bits one.

  • DEV- QAS : Obligatory transport target for business system not found

    Hi guys!
    I have read all the other threads about this subject, but since I still have no success, I´m feeling obligated to ask you for a help (deadline approaching fast!)
    I´m trying to transport a Communication Channel, from DEV environment to QAS. I'm having the 'usual' error:
    Import failed because of business system transfer of object Communication Channel * | SIGA | SOAP_SYNC_SENDER: Obligatory transport target for business system SIGA not found in System Landscape Directory
    Here were my steps:
    Keep in mind that in DEV, everything was up and running: Software Component, Product, Technical System and Business System for this name "SIGA".
    1 - In DEV, I created a new Technical System, named "SIGA_QAS", pointing to my QAS server. (Keeping in mind I already had a "SIGA" pointing to my DEV server.)
    2 - Still in DEV, I did create two groups: GROUP_DEV and GROUP_QAS, one points to INTEGRATION_SERVER_DX1 (DEV) and the other INTEGRATION_SERVER_QX1 (QAS).
    3 - Still in DEV, I created the Business System called "SIGA_QAS" also, pointing to my QAS server.
    4 - Still in DEV, I went inside both Business Systems and put: "SIGA_QAS" as TARGET BS of "SIGA" (which automatically puts "SIGA" as SOURCE BS of "SIGA_QAS")
    If I look at my QAS SLD, I can see all of these objects already there, since my BASIS team did activate the 'sync' between these two environments. So, I dont need to create anything 'new' in my QAS SLD, all the objects are there, same as DEV SLD.
    If I try to EXPORT/IMPORT a simple Communication Channel (using file system or even CTS - I tried both) I get the error mentioned above.
    But this is 'wierd' for me, since the error says: "business system SIGA not found in System Landscape Directory", but it is there, in both SLDs.
    Am I missing something here?
    Thanks!
    Ricardo Sancio Lóra
    Brazil

    Hi,
    If you not tried this then try it. Delete the Business System SIGA from Integration Directory in your QAS system and then again import the business system from SLD. Acitvate the changes and then import the CC from Dev to QAS.
    Regards,
    Sarvesh

Maybe you are looking for

  • Use of % wildcard

    Hello all, boolean rowfound=true; try PreparedStatement st=dbcon.prepareStatement("select * from stud2 where ename=? "); st.setString(1,ename+"%"); ResultSet rs=st.executeQuery(); rowfound=rs.next(); int nor=0; if(rowfound) nor=1; while(rowfound) out

  • How do i turn off sound and text notifications?

    I find both the text and sound notifications very annoying. I do not play games or do anything other than work on this computer. When I unchecked the "show a notification" and "play a sound" boxes, the notifications and sounds do not turn off. I also

  • How to display html document in browser?

    Hi, I want to display an html document in my directory using nescape. How can I do that? I know that AppletContext can display html, but it has to be in URL. How about a document in my directory? Help please.

  • What Apple Remote Desktop is NOT?

    Is there a way to run a Remote Server at my home computer and then connect to it from my MacBook Air when I'm on the go? My computer at home is on a dynamic IP via cable modem and router. So I have no fixed IP to connect to. However I know there are

  • SERVLETs in WEB Application (.ear)

    Can a Servlet in a WEB Application launch a Swing / AWT Application (Frame).??