Null pointer not found exception

Hi,
I keep getting the error mentioned in the subject heading, through the use of this code:
// set relevant to false
               relevant = false;
               // if there are two data slots, it is worthwhile to sort them
               if (counter > 1) relevant = true;
               // do the following if relevant is true
               if (relevant = true)
                   // set all the variables needed for this sort.
                   String[] names = new String[10];
                   AirlineTicket[] temp = new AirlineTicket[10];
                   int[] indexes = new int[10];
                   int tmp;
                   // do the selection sort on names only
                   for (int j = 0; j < data.length; j++)
                       names[j] = getNames(data[j]);
                       for (int i = 0; i < data.length; i++) System.out.println(names);
selectionSort(names);
// match names to the data array and record index position
for (int j = 0; j < data.length; j++)
tmp = matchNames(names, data[j]);
indexes[j] = tmp;
// put the data at indexes[j] in the sorting place in temp
for (int j = 0; j < data.length; j++)
if (indexes[j] != -1)
data[indexes[j]] = temp[j];
// move back from temp to data - now sorted
for (int j = 0; j < data.length; j++)
data[j] = temp[j];
// let the user know what's happened
System.out.println("The data is now sorted.");
Above is the main method of the program. Below are the methods it refers to:
   // match names against the data array's names and report index number
   public static int matchNames(String[] names, AirlineTicket in)
       // set variables
       String name;
       int index = 0;
       // select one name to test
       name = in.getName();
       // cycle through array
       for (int j = 0; j < names.length; j++)
           // if the name is matched and not null, index = j, or return -1
           if (names[j] == name && name  != null && names[j] != "a") index = j;
           else  index = -1;
       return index;
   // smallest(): find the 'smallest' string in a range
   public static int smallest (String[] array, int start, int finish)
      // assume the first item is the smallest
      int lowest = start;
      // scan the rest of the array segment for anything smaller
      // and re-set the recorded lowest if necessary
      for(int i = start + 1; i < finish; i++)
         if (array.compareTo(array[lowest]) < 0)
lowest = i;
// return the lowest index
return lowest;
// swap(): swap one element with another
public static void swap(String[] data, int a, int b)
String temp = data[a];
data[a] = data;
data[b] = temp;
// selectionSort(): sort a string array
public static void selectionSort(String[] data)
// cycle through the array (except for the last element)
for (int index = 0; index < data.length - 1; index++)
// find the smallest in the remaining section
int small = smallest(data, index, data.length);
// swap current position with smallest
swap(data, index, small);
Now, the error it gives me is this (during runtime):
Exception in thread "main" java.lang.NullPointerException
at TicketManager.smallest(TicketManager2.java:349)
at TicketManager.selectionSort(TicketManager2.java:371)
at TicketManager.main(TicketManager2.java:270)
What do you think would be causing the problem? I did my best to get rid of the nulls, and tried put a System.out.println(); line just before it tells it to selectionSort(names); to see what it prints. It prints the first line of what it should, and from then on, nothing but null. I don't think the matchNames method is actually doing its job properly. Any ideas?
Regards,
Platinum

// put the data at indexes[j] in the sorting place in temp
for (int j = 0; j < data.length; j++)
if (indexes[j] != -1)
data[indexes[j]] = temp[j];
}try swapping this over.temp[j] = data[indexes[j]];It seems you just want to sort data[], if this is the case, then use:public class AirlineTicket implements Comparable
  // all your AirlineTicket code
  // goes here
  public int compareTo(Object obj)
    AirlineTicket at = (AirlineTicket)obj;
    return this.getName().compareTo(at.getName());
}Then you can just use Arrays.sort(data);

Similar Messages

  • Oracle.jbo.NoDefException: JBO-25002: Definition oracle.webcenter.search.model.DataControls of type null is not found.

    Hi experts,
    I am trying to deploy a new version of a WC Portal application and when the deployment finishes successfully I cannot see the web page. The error is:
    Error 500--Internal Server Error
    oracle.jbo.NoDefException: JBO-25002: Definition oracle.webcenter.search.model.DataControls of type null is not found.
        at oracle.jbo.mom.DefinitionManager.findDefObjectUsingMetadataObject(DefinitionManager.java:2772)
        at oracle.adf.model.binding.DCDataControlConfigDef.findDefObject(DCDataControlConfigDef.java:32)
    Checking the output log I can see:
    <Jul 29, 2013 2:47:21 PM CEST> <Error> <HTTP> <BEA-101020> <[ServletContext@667149283[app:<App_name> module:<Module> path:/<Path> spec-version:2.5 version:V4.0]] Servlet failed with Exception
    oracle.jbo.NoDefException: JBO-25002: Definition oracle.webcenter.search.model.DataControls of type null is not found.
            at oracle.jbo.mom.DefinitionManager.findDefObjectUsingMetadataObject(DefinitionManager.java:2772)
            at oracle.adf.model.binding.DCDataControlConfigDef.findDefObject(DCDataControlConfigDef.java:32)
            at oracle.adf.model.binding.DCDataControlDef.findDefObject(DCDataControlDef.java:377)
            at oracle.adf.model.binding.DCDataControlReference.<init>(DCDataControlReference.java:55)
            at oracle.jbo.uicli.mom.JUApplicationDefImpl.loadDataControlUsage(JUApplicationDefImpl.java:1137)
            Truncated. see log file for complete stacktrace
    Caused By: oracle.mds.core.MetadataNotFoundException: MDS-00013: no metadata found for metadata object "/oracle/webcenter/search/model/DataControls.dcx"
    I have checked similar errors in the forums and tried the solutions purposed but with no success. I do not understand why the application is looking for the DataControls.dcx file inside a standard WC Search library.
    Any help would be much appreciated.

    Hi Dani,
    Eventually I found the problem, it is reported in Oracle Support as Doc ID 1503173.1.
    It seems jDeveloper is a bit special when adding Directories to the MAR file. If the whole directory "/oracle" is added, the adf-config.xml introduces the following line:
    namespace metadata-store-usage="WebCenterFileMetadataStore" path="/oracle"/
    As a result, this diverts all /oracle/... file and class requests to MDS, which causes failures.
    So when editing the MAR deployment profile be careful to select the sub-directories under /oracle/webcenter/portalapp/ one by one.
    Added to this, I had to perform the cleaning process you suggested to make it work too, otherwise I get a different error...
    Final steps are:
    1. Undeploy application.
    2. Delete MDS partition.
    3. Shutdown managed server.
    4. Delete /cache and /tmp content for the managed server.
    5. Start managed server.
    6. Exectute Clean all in jDeveloper.
    7. Create a new mar deployment as described in SR 1503173.1.
    8. Deploy to EAR file.
    9. Deploy new application to managed server using Enterprise Manager.
    And it works!
    Thanks for your help!

  • Error: EdgeInspect.exe - Entry Point Not Found

    I'm getting the following error message when launching the Adobe Edge Inspect:
    ---------------------------EdgeInspect.exe - Entry Point Not Found---------------------------The procedure entry point SetGestureConfig could not be located in the dynamic link library USER32.dll. ---------------------------OK   ---------------------------
    Followed by another dialog mentioning C:\Program Files (x86)\Adobe\Adobe Edge Inspect\EdgeInspect.exe Edge Inspect has stopped working
    More details:
    Problem signature:
      Problem Event Name:          APPCRASH
      Application Name:          EdgeInspect.exe
      Application Version:          1.0.372.4762
      Application Timestamp:          51098b6d
      Fault Module Name:          USER32.dll!SetGestureConfig
      Fault Module Version:          6.0.6002.18541
      Fault Module Timestamp:          4ec3e39f
      Exception Code:          c0000139
      Exception Offset:          0006f52f
      OS Version:          6.0.6002.2.2.0.256.6
      Locale ID:          1033
      Additional Information 1:          9d13
      Additional Information 2:          1abee00edb3fc1158f9ad6f44f0f6be8
      Additional Information 3:          9d13
      Additional Information 4:          1abee00edb3fc1158f9ad6f44f0f6be8
    I tried googling but I haven't found any solutions, so I thought I'd ask for help here.

    No, there is no timeline like that. Vista support for any product will vary from team to team depending on a huge variety of factors.
    For us, we're not even sure why it no longers works on Vista. As I said above, it could be a recent change we made or a change in one of the libraries we use with the desktop application. The solution is nowhere near as simple as posting the older version of the desktop application. Edge Inspect is a system of multiple pieces that all have to work together and be able to communicate with each other. Even if we posted the older version of the desktop piece, it's likely that you'd find Edge Inspect features that didn't work because the other pieces no longer spoke to it correctly. It would get progressively worse with each release until it stopped working entirely. And we simply don't have the resources to support a Vista version of the desktop application and keep it up to date with all the other pieces of the application.
    We never devoted any of our limited dev or testing resources to testing on Vista and can't start doing that now. In our original FAQ we noted that it was not supported but that we didn't know of any issues with Edge Inspect running on Vista. That's now changed. I've updated the FAQ, and we'll be modifying the installer to reflect the new situation.
    I'm sorry, but the final word from engineering and product management is in, Edge Inspect does not support Vista.

  • After updating, install error "Install Flash Player.exe - Entry point not found"

    My current version of Flash Player is: 11.1.102.55. Then after an Update is performed and the download is downloaded, then it tries to install the download and an error message occurs. The error message says - Install Flash Player.exe - Entry point not found - then it says The procedure entry point  SetDllDirectoryW could not be located in the dynamic link library KERNAL32.dll.
    When I try to uninstall Flash Player I get the same error message above except that it says Uninstall_Flash_Player.exe instead of Install Flash Player.exe.
    I'm running WIN2000, my current version of Flash Player is 11.1.102.55 and I’m running Firefox version 12.0.

    I believe 10.1.102.64 was the last supported version of Flash Player for Win2k.  That being said, there have been numerous users that have been able to work around the error you are receiving.  Please see this post for details:
    http://forums.adobe.com/message/4218334#4218334

  • ORABPEL-11627 Mapping Not Found Exception

    Hi,
    I am getting into this error . Any idea how I can overcome this.
    Invoke_1 (faulted)
    [2006/05/16 18:03:20] "{http://schemas.oracle.com/bpel/extension}bindingFault" has been thrown. less
    <bindingFault>
    <part name="code" >
    <code>null</code>
    </part>
    <part name="summary" >
    <summary>file:/D:/OraBPELPM_1/integration/orabpel/domains/default/tmp/.bpel_check3xml_1.0.jar/write_good_file.wsdl [ write_good_file_ptt::merge(Ebill1500HdrStagingCollection) ] - WSIF JCA Execute of operation 'merge' failed due to: Mapping Not Found Exception. The mapping [ebill1500DtlStagingCollection] for descriptor [class bpel___localhost_default_check3xml_1_0__MD5_1599fb090298a18cd7a14175df888307_.check3xml.Ebill1500HdrStaging] could not be found. The input xml record had an element [Ebill1500HdrStaging/ebill1500DtlStagingCollection]. ; nested exception is: ORABPEL-11627 Mapping Not Found Exception. The mapping [ebill1500DtlStagingCollection] for descriptor [class bpel___localhost_default_check3xml_1_0__MD5_1599fb090298a18cd7a14175df888307_.check3xml.Ebill1500HdrStaging] could not be found. The input xml record had an element [Ebill1500HdrStaging/ebill1500DtlStagingCollection]. Make sure that the input xml is valid relative to the xsd and that the mapping exists in the Mappings.xml. If an old version of the descriptor without this mapping has been loaded by the database adapter, you may need to bounce the app server. If the same descriptor is described in two separate Mappings.xml files, make sure both versions include this attribute/mapping. </summary>
    </part>
    <part name="detail" >
    <detail>null</detail>
    </part>
    </bindingFault>
    thanks in advance

    Hi,
    I too get the same type of error. But in my case, i don't have two partner links. I have created only one and it throws the same error.
    Error details:
    <bindingFault>
    <part name="code" >
    <code>null</code>
    </part>
    <part name="summary" >
    <summary>file:/usr/oracle/midtier/integration/orabpel/domains/Dev/tmp/.bpel_DBSample_1.0.jar/DBInsert.wsdl [ DBInsert_ptt::merge(TestQueueCollection) ] - WSIF JCA Execute of operation 'merge' failed due to: Mapping Not Found Exception. The mapping [TestQueue] for descriptor [class bpel___localhost_Dev_DBSample_1_0__MD5_354f16a7145fe31c41b6d41f55336740_.DBSample.TestQueue] could not be found. The input xml record had an element [TestQueue/TestQueue]. ; nested exception is: ORABPEL-11627 Mapping Not Found Exception. The mapping [TestQueue] for descriptor [class bpel___localhost_Dev_DBSample_1_0__MD5_354f16a7145fe31c41b6d41f55336740_.DBSample.TestQueue] could not be found. The input xml record had an element [TestQueue/TestQueue]. Make sure that the input xml is valid relative to the xsd and that the mapping exists in the Mappings.xml. If an old version of the descriptor without this mapping has been loaded by the database adapter, you may need to bounce the app server. If the same descriptor is described in two separate Mappings.xml files, make sure both versions include this attribute/mapping. </summary>
    </part>
    <part name="detail" >
    <detail>null</detail>
    </part>
    </bindingFault>
    Can you please help me to solve this problem?
    Thanks

  • VBWS_MARA_CLASSIFICATION_GET - Class not found exception

    Hi,
    I`m trying to get the classification and the characteristics from material using VBWS_MARA_CLASSIFICATION_GET. When I test it, it raises the Class not Found Exception for the Materialnumber I`ve given in.
    For the Testmaterial classification and characteristics are created.
    Can anyone help me? Where could be the problem?

    Hi
    Use the following BAPI's:
    BAPI_OBJCL_GETDETAIL
    BAPI_OBJCL_CHANGE
    or use the fun module:
    CLAF_CLASSIFICATION_OF_OBJECTS.
    for getting the classification and characteristics data of Material
    instead of  VBWS_MARA_CLASSIFICATION_GET.
    Reward points if useful
    Regards
    Anji

  • Class not Found Exception while running an EJB

    I have created and published a EJB in Oracle 8i (in a particular
    schema) by running the deployejb tool supplied. The ejb was
    published successfully. On running the client program I get an
    error saying that the mybeans's HomeHelper class cannot be
    found. This error occurs when there is a lookup to the home
    interface of the bean. The exception thrown says Reasons are
    unknown. On checking the objects of type 'JAVA CLASS' I found
    that the homeHelper class object had been created automatically
    be the deploy process. What is the reason for the class not
    found exception and what can I do to correct it. ?
    The code for the beans is as given below :
    Home Interface
    package mituser ;
    import javax.ejb.*;
    import java.rmi.RemoteException;
    public interface MITUserHome extends EJBHome {
    public MITUser create()
    throws CreateException, RemoteException;
    Remote Interface
    package mituser ;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    public interface MITUser extends EJBObject {
    public int validateUserName (String username)
    throws java.sql.SQLException, RemoteException;
    public int validatePassword (String username, String password)
    throws java.sql.SQLException, RemoteException;
    public String validateSearchAccess (String username, String
    password)
    throws java.sql.SQLException, RemoteException;
    Bean
    package mituserServer ;
    import java.sql.*;
    import java.rmi.RemoteException;
    import javax.ejb.*;
    public class MITUserBean implements SessionBean {
    SessionContext ctx;
    public void ejbCreate() throws CreateException,
    RemoteException {
    public void ejbActivate() {
    public void ejbPassivate() {
    public void ejbRemove() {
    public void setSessionContext(SessionContext ctx) {
    this.ctx = ctx;
    public int validateUserName (String username) throws
    SQLException, RemoteException
    int count = 0 ;
    Connection conn =
    new oracle.jdbc.driver.OracleDriver().defaultConnection ();
    PreparedStatement ps =
    conn.prepareStatement ("select count(username) from
    useraccountinfo where username = ?");
    try {
    ps.setString (1, username);
    ResultSet rset = ps.executeQuery ();
    if (!rset.next ())
    throw new RemoteException ("no registered user with User
    Name " + username);
    count = rset.getShort(1) ;
    return count ;
    } finally {
    ps.close();
    public int validatePassword (String username, String password)
    throws SQLException, RemoteException
    int count = 0 ;
    Connection conn =
    new oracle.jdbc.driver.OracleDriver().defaultConnection ();
    PreparedStatement ps =
    conn.prepareStatement ("select count(username) from
    useraccountinfo where username = ? and password = ?");
    try {
    ps.setString (1, username);
    ps.setString(2, password);
    ResultSet rset = ps.executeQuery ();
    if (!rset.next ())
    throw new RemoteException ("Invalid Password ");
    count = rset.getShort(1) ;
    return count ;
    } finally {
    ps.close();
    public String validateSearchAccess (String username, String
    password) throws SQLException, RemoteException
    String searchaccess = "" ;
    Connection conn =
    new oracle.jdbc.driver.OracleDriver().defaultConnection ();
    PreparedStatement ps =
    conn.prepareStatement ("select searchprofileaccess from
    useraccountinfo where username = ? and password = ?");
    try {
    ps.setString (1, username);
    ps.setString(2, password);
    ResultSet rset = ps.executeQuery ();
    if (!rset.next ())
    throw new RemoteException ("Access Denied for " +
    username );
    searchaccess = rset.getString(1) ;
    return searchaccess ;
    } finally {
    ps.close();
    Client program
    import mituser.MITUser;
    import mituser.MITUserHome;
    import oracle.aurora.jndi.sess_iiop.ServiceCtx;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import java.util.Hashtable;
    public class Client {
    public static void main (String [] args) throws Exception {
    int count = 0 ;
    String access = "" ;
    if (args.length != 4) {
    System.out.println("usage: Client serviceURL objectName
    user password");
    System.exit(1);
    String serviceURL = args [0];
    String objectName = args [1];
    String user = args [2];
    String password = args [3];
    Hashtable env = new Hashtable();
    env.put(Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
    env.put(Context.SECURITY_PRINCIPAL, user);
    env.put(Context.SECURITY_CREDENTIALS, password);
    env.put(Context.SECURITY_AUTHENTICATION,
    ServiceCtx.NON_SSL_LOGIN);
    Context ic = new InitialContext(env);
    MITUserHome home = (MITUserHome)ic.lookup (serviceURL +
    objectName);
    MITUser testBean = home.create ();
    count = testBean.validateUserName("MITA");
    if (count > 0 )
    System.out.println ("Valid User");
    else
    System.out.println ("Invalid User");
    count = testBean.validatePassword("MITA", "MITA");
    if (count > 0 )
    System.out.println ("Valid Password");
    else
    System.out.println ("Invalid Password");
    access = testBean.validateSearchAccess("MITA", "MITA");
    if ( access.equalsIgnoreCase("YES") )
    System.out.println ("Search Access Available");
    else
    System.out.println ("Search Access Denied");
    The Descriptor file
    // MIT UserBean EJB deployment descriptor
    SessionBean mituserServer.MITUserBean {
    BeanHomeName = "test/mitUserJDBCBean";
    RemoteInterfaceClassName = mituser.MITUser;
    HomeInterfaceClassName = mituser.MITUserHome;
    AllowedIdentities = {MIT};
    SessionTimeout = 20;
    StateManagementType = STATEFUL_SESSION;
    RunAsMode = CLIENT_IDENTITY;
    TransactionAttribute = TX_REQUIRED;
    Batch File for deploying the ejb
    @echo off
    if (%ORACLE_HOME%)==() goto usage
    if (%ORACLE_SERVICE%)==() goto usage
    if (%JDK_CLASSPATH%)==() goto usage
    @echo on
    set CLASSPATH=.;%ORACLE_HOME%\lib\aurora_client.jar;%ORACLE_HOME%
    \jdbc\lib\classes111.zip;%ORACLE_HOME%\sqlj\lib\translator.zip;%
    ORACLE_HOME%\lib\vbjorb.jar;%ORACLE_HOME%\lib\vbjapp.jar;%
    JDK_CLASSPATH%
    javac -g mituser\MITUser.java
    javac -g mituser\MITUserHome.java
    javac -g mituserServer\MITUserBean.java
    jar cf0 mituser.jar mituser\MITUser.class
    mituser\MITUserHome.class mituserServer\MITUserBean.class
    javac -g Client.java
    call deployejb -republish -temp temp -u mit -p mit -s %
    ORACLE_SERVICE% -descriptor mituser.ejb mituser.jar
    @echo off
    goto done
    :usage
    @echo -------------------------------------------------------
    @echo Following are the requirements to run this script
    @echo set ORACLE_HOME to installed Oracle home
    @echo set ORACLE_SERVICE to the CORBA service name of
    your databae
    @echo for example sess_iiop://localhost:2481:ORCL
    @echo set JDK_CLASSPATH to the full path of your JDK
    classes.zip
    @echo -------------------------------------------------------
    :done
    Batch file for running the cleint program
    @echo off
    if (%ORACLE_HOME%)==() goto usage
    if (%ORACLE_SERVICE%)==() goto usage
    if (%JDK_CLASSPATH%)==() goto usage
    @echo on
    set CLASSPATH=.;%ORACLE_HOME%\lib\aurora_client.jar;%ORACLE_HOME%
    \jdbc\lib\classes111.zip;%ORACLE_HOME%\sqlj\lib\translator.zip;%
    ORACLE_HOME%\lib\vbjorb.jar;%ORACLE_HOME%\lib\vbjapp.jar;%
    JDK_CLASSPATH%;server_generated.jar
    java Client %ORACLE_SERVICE% /test/mitUserJDBCBean mit mit
    @echo off
    goto done
    :usage
    @echo -------------------------------------------------------
    @echo Following are the requirements to run this script
    @echo set ORACLE_HOME to installed Oracle home
    @echo set ORACLE_SERVICE to the CORBA service name of
    your databae
    @echo for example sess_iiop://localhost:2481:ORCL
    @echo set JDK_CLASSPATH to the full path of your JDK
    classes.zip
    @echo -------------------------------------------------------
    :done
    I know this is not strictly to do with JDBC but there appears to
    be no discussion forum for EJB
    Hoping for a response soon as it us very URGENT
    Thanks
    Mita
    null

    I have created and published a EJB in Oracle 8i (in a particular
    schema) by running the deployejb tool supplied. The ejb was
    published successfully. On running the client program I get an
    error saying that the mybeans's HomeHelper class cannot be
    found. This error occurs when there is a lookup to the home
    interface of the bean. The exception thrown says Reasons are
    unknown. On checking the objects of type 'JAVA CLASS' I found
    that the homeHelper class object had been created automatically
    be the deploy process. What is the reason for the class not
    found exception and what can I do to correct it. ?
    The code for the beans is as given below :
    Home Interface
    package mituser ;
    import javax.ejb.*;
    import java.rmi.RemoteException;
    public interface MITUserHome extends EJBHome {
    public MITUser create()
    throws CreateException, RemoteException;
    Remote Interface
    package mituser ;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    public interface MITUser extends EJBObject {
    public int validateUserName (String username)
    throws java.sql.SQLException, RemoteException;
    public int validatePassword (String username, String password)
    throws java.sql.SQLException, RemoteException;
    public String validateSearchAccess (String username, String
    password)
    throws java.sql.SQLException, RemoteException;
    Bean
    package mituserServer ;
    import java.sql.*;
    import java.rmi.RemoteException;
    import javax.ejb.*;
    public class MITUserBean implements SessionBean {
    SessionContext ctx;
    public void ejbCreate() throws CreateException,
    RemoteException {
    public void ejbActivate() {
    public void ejbPassivate() {
    public void ejbRemove() {
    public void setSessionContext(SessionContext ctx) {
    this.ctx = ctx;
    public int validateUserName (String username) throws
    SQLException, RemoteException
    int count = 0 ;
    Connection conn =
    new oracle.jdbc.driver.OracleDriver().defaultConnection ();
    PreparedStatement ps =
    conn.prepareStatement ("select count(username) from
    useraccountinfo where username = ?");
    try {
    ps.setString (1, username);
    ResultSet rset = ps.executeQuery ();
    if (!rset.next ())
    throw new RemoteException ("no registered user with User
    Name " + username);
    count = rset.getShort(1) ;
    return count ;
    } finally {
    ps.close();
    public int validatePassword (String username, String password)
    throws SQLException, RemoteException
    int count = 0 ;
    Connection conn =
    new oracle.jdbc.driver.OracleDriver().defaultConnection ();
    PreparedStatement ps =
    conn.prepareStatement ("select count(username) from
    useraccountinfo where username = ? and password = ?");
    try {
    ps.setString (1, username);
    ps.setString(2, password);
    ResultSet rset = ps.executeQuery ();
    if (!rset.next ())
    throw new RemoteException ("Invalid Password ");
    count = rset.getShort(1) ;
    return count ;
    } finally {
    ps.close();
    public String validateSearchAccess (String username, String
    password) throws SQLException, RemoteException
    String searchaccess = "" ;
    Connection conn =
    new oracle.jdbc.driver.OracleDriver().defaultConnection ();
    PreparedStatement ps =
    conn.prepareStatement ("select searchprofileaccess from
    useraccountinfo where username = ? and password = ?");
    try {
    ps.setString (1, username);
    ps.setString(2, password);
    ResultSet rset = ps.executeQuery ();
    if (!rset.next ())
    throw new RemoteException ("Access Denied for " +
    username );
    searchaccess = rset.getString(1) ;
    return searchaccess ;
    } finally {
    ps.close();
    Client program
    import mituser.MITUser;
    import mituser.MITUserHome;
    import oracle.aurora.jndi.sess_iiop.ServiceCtx;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import java.util.Hashtable;
    public class Client {
    public static void main (String [] args) throws Exception {
    int count = 0 ;
    String access = "" ;
    if (args.length != 4) {
    System.out.println("usage: Client serviceURL objectName
    user password");
    System.exit(1);
    String serviceURL = args [0];
    String objectName = args [1];
    String user = args [2];
    String password = args [3];
    Hashtable env = new Hashtable();
    env.put(Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
    env.put(Context.SECURITY_PRINCIPAL, user);
    env.put(Context.SECURITY_CREDENTIALS, password);
    env.put(Context.SECURITY_AUTHENTICATION,
    ServiceCtx.NON_SSL_LOGIN);
    Context ic = new InitialContext(env);
    MITUserHome home = (MITUserHome)ic.lookup (serviceURL +
    objectName);
    MITUser testBean = home.create ();
    count = testBean.validateUserName("MITA");
    if (count > 0 )
    System.out.println ("Valid User");
    else
    System.out.println ("Invalid User");
    count = testBean.validatePassword("MITA", "MITA");
    if (count > 0 )
    System.out.println ("Valid Password");
    else
    System.out.println ("Invalid Password");
    access = testBean.validateSearchAccess("MITA", "MITA");
    if ( access.equalsIgnoreCase("YES") )
    System.out.println ("Search Access Available");
    else
    System.out.println ("Search Access Denied");
    The Descriptor file
    // MIT UserBean EJB deployment descriptor
    SessionBean mituserServer.MITUserBean {
    BeanHomeName = "test/mitUserJDBCBean";
    RemoteInterfaceClassName = mituser.MITUser;
    HomeInterfaceClassName = mituser.MITUserHome;
    AllowedIdentities = {MIT};
    SessionTimeout = 20;
    StateManagementType = STATEFUL_SESSION;
    RunAsMode = CLIENT_IDENTITY;
    TransactionAttribute = TX_REQUIRED;
    Batch File for deploying the ejb
    @echo off
    if (%ORACLE_HOME%)==() goto usage
    if (%ORACLE_SERVICE%)==() goto usage
    if (%JDK_CLASSPATH%)==() goto usage
    @echo on
    set CLASSPATH=.;%ORACLE_HOME%\lib\aurora_client.jar;%ORACLE_HOME%
    \jdbc\lib\classes111.zip;%ORACLE_HOME%\sqlj\lib\translator.zip;%
    ORACLE_HOME%\lib\vbjorb.jar;%ORACLE_HOME%\lib\vbjapp.jar;%
    JDK_CLASSPATH%
    javac -g mituser\MITUser.java
    javac -g mituser\MITUserHome.java
    javac -g mituserServer\MITUserBean.java
    jar cf0 mituser.jar mituser\MITUser.class
    mituser\MITUserHome.class mituserServer\MITUserBean.class
    javac -g Client.java
    call deployejb -republish -temp temp -u mit -p mit -s %
    ORACLE_SERVICE% -descriptor mituser.ejb mituser.jar
    @echo off
    goto done
    :usage
    @echo -------------------------------------------------------
    @echo Following are the requirements to run this script
    @echo set ORACLE_HOME to installed Oracle home
    @echo set ORACLE_SERVICE to the CORBA service name of
    your databae
    @echo for example sess_iiop://localhost:2481:ORCL
    @echo set JDK_CLASSPATH to the full path of your JDK
    classes.zip
    @echo -------------------------------------------------------
    :done
    Batch file for running the cleint program
    @echo off
    if (%ORACLE_HOME%)==() goto usage
    if (%ORACLE_SERVICE%)==() goto usage
    if (%JDK_CLASSPATH%)==() goto usage
    @echo on
    set CLASSPATH=.;%ORACLE_HOME%\lib\aurora_client.jar;%ORACLE_HOME%
    \jdbc\lib\classes111.zip;%ORACLE_HOME%\sqlj\lib\translator.zip;%
    ORACLE_HOME%\lib\vbjorb.jar;%ORACLE_HOME%\lib\vbjapp.jar;%
    JDK_CLASSPATH%;server_generated.jar
    java Client %ORACLE_SERVICE% /test/mitUserJDBCBean mit mit
    @echo off
    goto done
    :usage
    @echo -------------------------------------------------------
    @echo Following are the requirements to run this script
    @echo set ORACLE_HOME to installed Oracle home
    @echo set ORACLE_SERVICE to the CORBA service name of
    your databae
    @echo for example sess_iiop://localhost:2481:ORCL
    @echo set JDK_CLASSPATH to the full path of your JDK
    classes.zip
    @echo -------------------------------------------------------
    :done
    I know this is not strictly to do with JDBC but there appears to
    be no discussion forum for EJB
    Hoping for a response soon as it us very URGENT
    Thanks
    Mita
    null

  • Page_jsp content not found exception ..

    though I was able to resolve this as a quick-fix by installing a new cq instance,
    I still donot know the root cause. This was occuring in OTB Geometrixx application in author instance ..
    reading something like " org.apache.jsp.libs.foundation.components.primary.cq.Page.page_jsp" content
    not found exception pointing to Page.jsp in  foundation/components and Proxy.jsp referenced in Page.jsp.
    Has anyone faced this issue and aware of the ' root cause' behind it. (Sorry the logs are gone now)
    Regards
    V

    I too am having the same problem with Weblogic 7.0.
              Did anyone get the solution to this ?
              

  • CSS 8.3 in Win7 won't launch - error re: css_admin.exe Entry Point not found... Help

    New install of Win7 / all Win7 drivers installed & working
    Except... during launch of CSS 8.3 (w & w/o patch installed - tried both ways), an error window pops up with:
    css_admin.exe - Entry Point Not Found (title bar)
    (Red X in window)
    The procedure entry point
    ??0LocalFileFormatTarget@xercesc_2_7@@QAE@QBQAVMemo
    ryManager@1@@Z could not be located in the dynamic link
    library xerces-c_2_7.dll.
    ?? What is all this stuff mean ??
    (the underscore is NOT present in the window, by the way...)
    HELP!  Anyone have ANY idea what the above lingo is re CSS and why it won't launch without popping up a window with this error, whatever it is??
    I'm days into this reinstall and this is my "last" hangup / called support and they won't touch it since i didn't BUILD it with Windows 7 from them... just don't get this mindset.  Only spent 5 digits (around $20,000 +) with Lenovo so far last year / may be the last dollar - I've run into many issues with support lately, for one the T61p I have has had 2 sys boards swapped, processor, 2 keyboards (after "loose screws from sys board swap" were found rolling around inside - yes, loose) among many other issues / only TP I've ever had issues with / want to stay with them, but if I have to fight city hall to swap out a lemon, heading out into the wild blue.

    Try the following user tip:
    iTunes for Windows 11.1.4.62: "The procedure entry point: ?videoTracks@QTMovie@ [...] could not be located ..." error messages when launching iTunes

  • CTIOS 8.5(2) Agent Desktop fails to start - file not found exception

    I can run the CTIOS 8.0(1) Agent Desktop OK against my 8.5(2) system, but when I install 8.5(2) SR on the client machine (running XP SP3), the app will not start. (Actually trace shows it starts a little bit but debugging doesn't point out the problem).
    It pops up a Windows Message wanting to send a report to Microsoft (yeah, we know where that goes) and I can see it say something about a file not found exception.
    I uninstall CTIOS 8.5(2) and it works perfectly.
    Makes you wonder how this passed QC testing. I have tried on two different machines.
    Anyone have the workaround that establishes the file it's looking for?
    Regards,
    Geoff

    I still have my TAC case open but I also have a workaround that seems to work.  As Chad described above he had a machine that the 8.5.2 upgrade originally did not launch on but then magically started working on.  I also came across that case. Once I had one working machine I could upgrade it and downgrade successfully without issues.   Seeing that the 8.5.2 installer examines the system to be upgraded I figured it's checking the registry and/or the installation files. I then did the following:
    Working system
    1) Downgrade working 8.5.2 system to 8.0.1
    2) Export the Cisco Systems Inc key from this 8.0.1 system
    3) Copy the CTIOS Client and CTIOS Silent Monitor directories for the 8.0.1 system
    Non working System
    4) Stop the CTIOS Silent Monitor system
    5) Delete the Cisco System Inc key from the reg
    6) Import the Cisco Systems Inc key from the working system
    7) delete the existing CTIOS Client and CTIOS Silent Monitor directories
    8) Copy in the CTIOS Client and CTIOS Silent Monitor directories from the working system
    9) Run the 8.5.2 installer
    Reboot - and run the agent/supervisor desktop
    I did this on several test machines and it worked every time.  I have upgraded about 5-6 supervisors and they all say it's working fine as well.
    Carlos

  • Error message when clicking on links from thunderbird: Firefox.exe – Entry Point Not found

    When I click on any link in a Thunderbird email message I get the error message:
    Firefox.exe – Entry Point Not found
    The procedure entry point ?DllBlocklist_Initialize@@YAXXZ could not be located in the dynamic link library T:\PQligP sFuvy (X86)\pJPpSox HneiCFv\GwCMqTQ.Oqt.
    I tried uninstalling Firefox 27 completely and reinstalling it, and the error is still there. When I uninstall V27 and install the older V26 the error disappears. Id there an issue with V27 trying to work with links from Thunderbird?
    I am on a laptop running Windows 8.1 with all current downloads.

    Thanks for the reply - as best as I can tell it seems to be some kind of incompatibility between Thunderbird V24.3.0 and Firefox V27. If I install Firefox V26 then everything works as it should. I haven't tried installing a previous version of Thunderbird to see if that makes a difference.

  • Why is my itunes not installing properly? I installed it and it was fine, then it started to show Errors. iTunes exe - Entry Point not Found. And the Error 7 (Windows error 127).Itsays to reinstall iTunes. I did that and same error. new pc, same on old

    Why is my itunes not installing properly?
    I installed itunes day before yesterday,  I spent hours last night linking all my music photograph and movie files, its a new windows 8 laptop.
    I plugged in my 64GB ipad 3 rebooted it and reloaded all the information I wanted on it, took hours... finally completed this this morning. After this I restarted the laptop to configure my icloud link for the laptop (which I installed last night while I was loading files, I chose to restart later)
    on completion I turned my laptop off for a few hours, when I turned it back on I went to itunes to connect my iphone to do the same and I got this message:
    iTunes exe - Entry Point Not Found
    The procedure entry point
    AVCFPlayerAppliesMediaSelectionCriteriaAutomaticallyKey could not
    be located in dynamiclink library F:\Programmes\iTunes.dll
                                                                                               OK
    then after pressing 'OK' the following message:
    iTunes
    iTunes was not installed correctly. Please reinstall iTunes
    Error 7 (Windows error 127)
    I went back to apple website to reinstall iTunes, first reinstalled it same again, then unsinstalled it and the reinstalled it, same again.
    The same thing happened with my old lap top and I replaced it with this new one at the start of the week.
    Has anyone any idea what is going on and how to rectify this problem, I am now going on 3 weeks without iTunes.
    Regards,
    Damian36

    I started up and plugged in my iPad  and then the following message came up:
           iTunes
    ❗️This iPad cannot be used because the required software is not
        Installed. Run the iTunes installer to remove iTunes, then install
        the 64-bit version of iTunes.
                                                                                             OK
    I then proceeded to the "iTunes64Setup" expanded folder to load "AppleMobileDeviceSupport64"
    Started the install and then received this message:
          Apple Mobile Device Support
    ❗️Service 'AppleMobile Device' (Apple Mobile Device)
        failed to start. Verify that you have sufficient
        Privileges to start system services.
       Abort.               Retry.                Ignore
    I tried all tree options, last being ignore.
    I continued to download the other 2 you suggested with out any drama.
    I did a system restart and then opened iTunes.
    Connected my iPad
    Then message appears:
          iTunes .exe - System Error
    ❌ The program can't start because CoreAdioToolbox.dll is missing from
          Your computer. Try reinstalling the program to fix the problem.
                                                                                           OK
    Press OK and then the next message:
           iTunes
    ❌ iTunes was not installed correctly. Please reinstall iTunes.
          Error 7 (Windows error 126)
                                                                                           OK
    Any suggestions?

  • Crystal Reports 2008-Vista-ERROR-crw32.exe Entry Point Not Found in dll

    Hi Experts,
    I just installed the Crystal Reports 2008 (with SP0) on my Vista (Home) machine.  When I try to start the CR 2008, I am getting the below error message:
    Error Title: crw32.exe - Entry Point Not Found
    Error Message: The procedure entry point ?PrintLegend@CMapXLegend@CSLib300@@QAEXJJJJJ@Z could not be located in the dynamic link library cslibu-3-0.dll
    Here are the things I tried to resolve the above problem:
    1) Uninstall and Reinstall the CR 2008.  -  No change.
    2) I configured the DEP to accept Crystal Reports (Performance - Advanced - DEP allow). 
    None of these seem fix the problem. 
    Can you please help me kick start the Crystal Reports 2008? 
    Thanks,
    Arun

    Please try with this:
    Run a command prompt as administrator. From the start menu, select "All Programs", then "Accessories" and right-click on the "Command Prompt" shortcut and choose "Run As Administrator". From here you can use the following command to disable Data Execution Prevention (DEP) with the following command:
    bcdedit.exe /set nx AlwaysOff
    Keeping your command prompt open, run your setup or other process being stopped by DEP. Then, to turn it back on again, do the same and run the following:
    bcdedit.exe /set nx AlwaysOn
    Regards,
    Shweta

  • Java File not Found Exceptions and other errors?

    Hello experts, an issue on our Portal has caught my attention. Every time the J2EE Engine is restarted, a large amount of errors are written on our Trace files. When looking at the trace files, I see that most errors are Java IO File not Found Exceptions. For example:
    [EXCEPTION]
    #1#java.io.FileNotFoundException: ./log/system/database.1.log (No such file or directory (errno:2))
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at com.sap.engine.services.log_configurator.archive.ArchivingThread.archiveTask(ArchivingThread.java:77)
         at com.sap.engine.services.log_configurator.archive.ArchivingThread.run(ArchivingThread.java:40)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
    #1.5 #0012799E98F6000F0000001800003A9E00044A5F2B9CCDEC#1207672520886#com.sap.engine.services.log_configurator.archive.ArchivingThread##com.sap.engine.services.log_configurator.archive.ArchivingThread######c3cfd920058911dd8ace0012799e98f6#SAPEngine_System_Thread[impl:5]_24##0#0#Error##Java###./log/system/server.1.log (No such file or directory (errno:2))
    [EXCEPTION]
    #1#java.io.FileNotFoundException: ./log/system/server.1.log (No such file or directory (errno:2))
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at com.sap.engine.services.log_configurator.archive.ArchivingThread.archiveTask(ArchivingThread.java:77)
         at com.sap.engine.services.log_configurator.archive.ArchivingThread.run(ArchivingThread.java:40)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
    #1.5 #0012799E98F6000F0000001900003A9E00044A5F2B9CE7BC#1207672520893#com.sap.engine.services.log_configurator.archive.ArchivingThread##com.sap.engine.services.log_configurator.archive.ArchivingThread######c3cfd920058911dd8ace0012799e98f6#SAPEngine_System_Thread[impl:5]_24##0#0#Error##Java###./log/system/security.1.log (No such file or directory (errno:2))
    [EXCEPTION]
    #1#java.io.FileNotFoundException: ./log/system/security.1.log (No such file or directory (errno:2))
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at com.sap.engine.services.log_configurator.archive.ArchivingThread.archiveTask(ArchivingThread.java:77)
         at com.sap.engine.services.log_configurator.archive.ArchivingThread.run(ArchivingThread.java:40)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
    #1.5 #0012799E98F6000F0000001D00003A9E00044A5F2BE5C172#1207672525667#com.sap.engine.services.log_configurator.archive.ArchivingThread##com.sap.engine.services.log_configurator.archive.ArchivingThread######c3cfd920058911dd8ace0012799e98f6#SAPEngine_System_Thread[impl:5]_24##0#0#Error##Java###./log/applications.1.log (No such file or directory (errno:2))
    [EXCEPTION]
    #1#java.io.FileNotFoundException: ./log/applications.1.log (No such file or directory (errno:2))
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at com.sap.engine.services.log_configurator.archive.ArchivingThread.archiveTask(ArchivingThread.java:77)
         at com.sap.engine.services.log_configurator.archive.ArchivingThread.run(ArchivingThread.java:40)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
    In summary, the system cannot find the files server.1.log, security.1.log, database.1.log and applications.1.log. I tried manually adding these files (I created them on my computer and left them empty) on the path written, but it did not work, for some reason they are deleted.
    Another error that is happening during restart of the engine is the following:
    #1.5 #0012799E98F6001B0000002000003A9E00044A5F2BCC28D7#1207672523990#com.sap.tc.logging##com.sap.tc.logging.APILogger.FileLog[setFormatter()]######c3c3f240058911dd9ed80012799e98f6#SAPEngine_System_Thread[impl:5]_10##0#0#Warning##Java###Attempting to change a formatter on active log ./log/system/httpaccess/responses.trc. reset() method must be called first.#1#java.lang.Exception: Attempting to change a formatter on active log ./log/system/httpaccess/responses.trc. reset() method must be called first.
         at com.sap.tc.logging.FileLog.setFormatter(FileLog.java:448)
         at com.sap.engine.services.log_configurator.admin.LogConfigurator.adjustConfiguration(LogConfigurator.java:795)
         at com.sap.engine.services.log_configurator.admin.LogConfigurator.applyConfiguration(LogConfigurator.java:1535)
         at com.sap.engine.services.log_configurator.LogConfiguratorContainer.prepareStart(LogConfiguratorContainer.java:545)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:223)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepareLocal(StartTransaction.java:176)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:365)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:132)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesLocalAndWait(ParallelAdapter.java:250)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:4450)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationsInitially(DeployServiceImpl.java:2610)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.clusterElementReady(DeployServiceImpl.java:2464)
         at com.sap.engine.services.deploy.server.ClusterServicesAdapter.containerStarted(ClusterServicesAdapter.java:42)
         at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.processEvent(ContainerEventListenerWrapper.java:144)
         at com.sap.engine.core.service630.container.AdminContainerEventListenerWrapper.processEvent(AdminContainerEventListenerWrapper.java:19)
         at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.run(ContainerEventListenerWrapper.java:102)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
    Any ideas?

    Nothing really seemed to work when trying to solve this problem, just suddenly it stopped appearing. It might have been our installation of SPS 15, since it was around that time that the error went away.

  • When I connect my new ipod nano to my laptop (using windows)I get an error message saying "itunes.exe - entry point not found" I cannot access my itunes , or download a new version. Any ideas what to do or what is causing this?

    I have been given a new ipod nano to replace my much loved but old ipod. When I plug it into my laptop to sync it I get an error message stating "itunes.exe - entry point not found. The procedure entry point AVCFAAssetCreateWithByteStreanAndOptions could not be located in the dynamic link library
    AVFoundationCF.dll" I cannot acces my itunes or download a new versiona as this keeps flashing up. Any ideas? Please help, my life is meaningless without my music!!

    Also I now can`t access any of my itunes library and am concerned that if I remove it from my computer I will lose everything as I have no option of accessing and therefore backing anything up. Any ideas?

Maybe you are looking for

  • What steps do I need to take before UPGRADING from v29 back to v28, so that everything be back where I WANTED IT b4 ur #$%@ Molly Maids disguised...

    ... as programmers decided to WASTE MY WHOLE GD DAY trying to find, fix, move things back into the place THAT I WANT THEM TO BE? I've already downloaded v28 but haven't installed it yet because I would like to know what will happen when I do? i.e. wi

  • Flex 4 migration problem

    Hi All, I just made the migration to Flex 4 keeping the 3.5 SDK. I didn't change any code and still, when I try to start a debugging session, I get a security sandbox error (2060) which wasn't there before the migration. I remember having seen a repo

  • MixRadio downloding time error

    Hi i have nokia lumia 1320, and i faced problem in MixRadio its show me some downloading time error. Kindly help out.

  • Runtime error on CJ8G

    Hi, What could be the cause of Runtime error while executing CJ8G? What funny is that if I do a test run, it executes fine, but when I remove it, it gives a runtime error. Error message: MESSAGE (type X) Error analysis                                

  • My scanner has stoped working on my imac (10.6.8).

    I'ver reinstalled the software and Canon will no longer help.  The scanner works fine on my macbook pro!  The scanner makes a noise when it is plugged in but when I try to scan an error message says that the scanner lock is on when it isn't.  Does an