Alternate api's in ep6.0

hi
Can someone tell me what are the alternate api's in ep6.0
which we can use in place of the follwing ep5.0 api's
com.sapportals.portal.security.usermanagement.AbstractBackendConnection
com.sapportals.portal.security.usermanagement.IModifyLogonDataBroker
Thanks in advance
Subra

Hi Ramachandra,
sorry, it seems SDN interprets the comma after the link as part of the link. Here's the link again:
https://media.sdn.sap.com/javadocs/NW04/SP12/ume/index.html
Regards
Heiko

Similar Messages

  • Ignoring Sun proprietary API warning in JDK 1.6.0_13.

    We are upgrading our application from JDK 1.5.0_17 to JDK 1.6.0_13 and we get so many warnings regarding Sun proprietary API.
    Can someone help me in telling when this API's will be removed from Sun API and is there any problem in using this API's as long as we use JDK 1.6.0_13.
    At the same time can u suggest the alternate API's which can be used in place of this.
    Warinings :
    [javac] D:\eRAM3500_07_04\server\src\globalaccess\SSLTunnelSocketFactory.java:9:
    warning: sun.net.www.protocol.http.HttpURLConnection is Sun proprietary API and may be removed in a future release
    [javac] import sun.net.www.protocol.http.HttpURLConnection;
    [javac] ^
    [javac] D:\eRAM3500_07_04\server\src\globalaccess\SSLTunnelSocketFactory.java:111:
    warning: sun.net.www.protocol.http.HttpURLConnection is Sun proprietary API and may be removed in a future release
    [javac] String s1 = "CONNECT " + s + ":" + i + " HTTP/1.0\n" + "User-Agent: " + HttpURLConnection.userAgent;
    [javac] ^
    [javac] D:\eRAM3500_07_04\server\src\globalaccess\RedirectGSGRequestThread.java:160:
    warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
    [javac]      s2 = "Basic " + (new BASE64Encoder()).encode(s2.getBytes());
    [javac]      ^
    Any help appreciated.

    Can someone help me in telling from which release this Sun API's will be removed. I answered that. No. Nobody can help you. What Sun say here is 'From one release to another, these classes may be removed, or they may be moved from one package to another, and it's fairly likely that their interface (method names and signatures) will change.' There's no statement there that they will be removed, and certainly no implication that there is a single release in which they will all be removed at the same time.
    So as of now we can migrate to JDK 1.6.0_13 ignoring warnings msgs. Will there be any problem in still using the same api's?I answered that too.
    Does this API's work in JDK 1.7 and from where can I download JDK 1.7?You will have to test it yourself. Google will find it for you.
    Is there any alternate API to get the user agent string of sun.net.www.protocol.http.HttpURLConnection.userAgentI answered that. You don't need it in a CONNECT command.

  • Error: could not be converted to [class java.lang.Class].

    I am newbie to JDeveloper (10.1.2) on winxp and i was trying to setup the example from the following url http://radio.weblogs.com/0129487/2003/09/19.html
    It is a how to on "Executing Toplink Queries using JavaBean DataControl "
    Any help would be greatly appreciated.
    Near the bottom on step "In StrutsPageFlow diagram, select allEmpsDA Data Action, right mouse and chooe Run" i get a the following runtime errors:
    Validation Error
    You must correct the following error(s) before proceeding:
    JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.toplink.exceptions.ConversionException, msg= Exception Description: The object [mypackage.Employees], of class [class java.lang.String], could not be converted to [class java.lang.Class]. Please ensure that the class [class java.lang.Class] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager Internal Exception: java.lang.ClassNotFoundException: mypackage.Employees
    JBO-29000: Unexpected exception caught: oracle.toplink.exceptions.ConversionException, msg= Exception Description: The object [mypackage.Employees], of class [class java.lang.String], could not be converted to [class java.lang.Class]. Please ensure that the class [class java.lang.Class] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager Internal Exception: java.lang.ClassNotFoundException: mypackage.Employees
    Exception Description: The object [mypackage.Employees], of class [class java.lang.String], could not be converted to [class java.lang.Class]. Please ensure that the class [class java.lang.Class] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager Internal Exception: java.lang.ClassNotFoundException: mypackage.Employees

    This error is happening on a read.
    Here is the mapping descriptor:
    <database-mapping>
    <attribute-name>SuppItemCollection</attribute-name>
    <read-only>false</read-only>
    <reference-class>package.SuppItem</reference-class>
    <is-private-owned>false</is-private-owned>
    <uses-batch-reading>false</uses-batch-reading>
    <indirection-policy>
    <mapping-indirection-policy>
    <type>oracle.toplink.internal.indirection.NoIndirectionPolicy</type>
    </mapping-indirection-policy>
    </indirection-policy>
    <container-policy>
    <mapping-container-policy>
    <container-class>java.util.Vector</container-class>
    <type>oracle.toplink.internal.queryframework.ListContainerPolicy</type>
    </mapping-container-policy>
    </container-policy>
    <source-key-fields>
    <field>SUPP.REQ_NUM</field>
    </source-key-fields>
    <target-foreign-key-fields>
    <field>SUPP_ITEM.REQ_NUM</field>
    </target-foreign-key-fields>
    <type>oracle.toplink.mappings.OneToManyMapping</type>
    </database-mapping>
    Object model has a Supp class that has a collection of SuppItem(s). I was allowing the Mapping Workbench to create the Java Source. I'm not to fond of that, but I thought it would be easiest to get things going.
    The datamodel is similiar to the class model.
    Thanks for the help,
    Mike

  • New problem  --  My java code can't see my CLASSES from Mapping Workbench

    Donald and others -
    I am VERY new to TopLink......
    I was at the last Oracle Developer Days in Northern Virginia. Donald convinced me and my co-workers to use TopLink for our upcoming project. I have been having tons of problems getting it to work correctly. Maybe I need a TOPLINK license plate, like Donald!!!
    Here is my newest problem. I can create a DatabaseSession, login to it, write a query and log out of it.
    However, I can only do this if I remove my classes from the Mapping Workbench. As soon as I add even one class to the Mapping Workbench......I get an error as follows:
    LOCAL EXCEPTION STACK:
    EXCEPTION [TOPLINK-3007] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.ConversionException
    EXCEPTION DESCRIPTION: The object [mil.usa.lbit.isr.TestIsr], of class [class java.lang.String], could not be converted to [class java.lang.Class]. Please ensure that the class [class java.lang.Class] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager
    INTERNAL EXCEPTION: java.lang.ClassNotFoundException: mil.usa.lbit.isr.TestIsr
    Can anyone tell me where I need to put my class files so the java code can see them via the ISR.xml deployment file.
    I currently have these files in a .jar file on the system path and in my web-inf folder and in my project settings. I put them everywhere I could think of, but no luck.
    Here is my code:
    package mil.usa.lbit.isr;
    import mil.usa.lbit.LbitColors;
    import java.util.*;
    import java.math.*;
    import oracle.toplink.sessions.*;
    import oracle.toplink.tools.schemaframework.*;
    import oracle.toplink.exceptions.*;
    import oracle.toplink.expressions.*;
    import oracle.toplink.queryframework.*;
    import oracle.toplink.tools.workbench.*;
    public class TestIsr extends ISR {
    public DatabaseSession session;
         public Project project;
    public TestIsr() {
    this.name = "TestISR";
    this.color = LbitColors.AMBER;
    this.metric = 97.00;
    public boolean isConnected() {
    if (session == null)
    System.out.println("Not Connected");
    return false;     
    System.out.println("Connected");
    return session.isConnected();
    public void loginToDatabase() {
    Project builderProject;
    System.out.println("Attempt to login to database using TopLink:");
    project = XMLProjectReader.read("C:\\LBIT TopLink\\ISR\\ISR.xml");
    session = project.createDatabaseSession();
    session.login();
    System.out.println("Logged in");
    public void runQuery() {
    ExpressionBuilder builder = new ExpressionBuilder();
    Expression expression = builder.get("isr_id").equal(3);
    System.out.println(expression);          
    //TestIsr isr = (TestIsr) session.readObject(TestIsr.class, expression);
    //System.out.println(isr);     
    public void logoutOfDatabase() {
    session.logout();     
    System.out.println("Logged out");          
    public static void main(String[] args) {     
    TestIsr testing = new TestIsr();
    testing.isConnected();     
    testing.loginToDatabase();          
    testing.isConnected();
    testing.runQuery();
    testing.logoutOfDatabase();     
    Thanks in advance.
    Donald please email me and maybe we can chat on the phone if you want to offer some help.
    Andy

    Thanks for the reply!
    However, I did try to implement that yesterday.
    When I add the "getClass().getClassLoader()" to the "XMLProjectReader.read" call, the codes loses site of my project (.xml) file.
    Here is the new line:
    project = XMLProjectReader.read("C:\\LBIT TopLink\\ISR\\ISR.xml", getClass().getClassLoader());
    Here is the new error:
    EXCEPTION [TOPLINK-7099] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.ValidationException
    EXCEPTION DESCRIPTION: Could not find xml project file which is specified in properties file: xmlProjectFile=C:\LBIT TopLink\ISR\ISR.xml.
         oracle.toplink.exceptions.ValidationException oracle.toplink.exceptions.ValidationException.projectXMLNotFound(java.lang.String, java.lang.Exception)
         oracle.toplink.sessions.Project oracle.toplink.tools.workbench.XMLProjectReader.read(java.lang.String, java.lang.ClassLoader)
    But my code could find that file before I added the "getClass().getClassLoader()" code.
    Maybe I can avoid this problem by "deploying the XML file in my application jar?" Could you please explain more about this option after answering the first part of my question.
    Any other posters feel free to help me too.
    I know TopLink is a powerful tool, I just keep hitting these hurdles. ARRRRRRRGGGG!!!
    Thanks again,
    Andy

  • Quering MySql DB tables using DB adapter in Oracle SOA

    Hi',
    I am trying to query MySql DB tables using DB adapter in Oracle SOA.
    inside the weblogic server console I have created a data source and test is "success" MySql
    Now inside the deployments > DBAdapter > Configuration > outbound connection pools
    I am new outbound connection, however I only get one option by default "javax.resource.cci.ConnectionFactory".
    which is default pointing to oracle DB.
    If someone has implemented this earlier or some blog/document demonstrates this please let me know.
    Thanks
    Yatan

    Thanks Naresh,
    actually I tried changing the "platformClassName" to "oracle.toplink.platform.database.MySQL4Platform" in the existing connection factory.
    I am able to update the DBAdapter successfully, however when I try to run the service created in JDEV which uses this MySql DB table it gives me below error.
    I also have another doubt regarding "How can we create a new connection factory in weblogic console?"
    ERROR:
    The selected operation process could not be invoked.
    An exception occured while invoking the webservice operation. Please see logs for more details.
    oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    Caused by Exception [EclipseLink-7042] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.ValidationException
    *Exception Description: Database platform class [org.eclipse.persistence.platform.database.MySQL4Platform] not found.*
    Internal Exception: Exception [EclipseLink-3007] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.ConversionException
    Exception Description: The object [org.eclipse.persistence.platform.database.MySQL4Platform], of class [class java.lang.String], could not be converted to [class java.lang.Class]. Ensure that the class [org.eclipse.persistence.platform.database.MySQL4Platform] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager
    Internal Exception: oracle.classloader.util.AnnotatedClassNotFoundException:
    Missing class: org.eclipse.persistence.platform.database.MySQL4Platform
    Dependent class: org.eclipse.persistence.internal.helper.ConversionManager
    Loader: sun.misc.Launcher$AppClassLoader@13288040
    Code-Source: /C:/Oracle/MiddlewarePS4/modules/org.eclipse.persistence_1.1.0.0_2-1.jar
    Configuration: /C:/Oracle/MiddlewarePS4/modules/org.eclipse.persistence_1.1.0.0_2-1.jar
    This load was initiated at default.composite.MySqlTest.soa_2c170363-5ad7-4578-8920-f30fb224a8d2:1.0 using the Class.forName() method.
    You may need to configure the connection settings in the deployment descriptor (i.e. DbAdapter.rar#META-INF/weblogic-ra.xml) and restart the server. This exception is considered not retriable, likely due to a modelling mistake.
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.

  • Getting Unit Of Work without JSP context

    We are developing an application using Toplink and ADF Datacontrols. We have timer (which starts right after deploy) which reads data from magnetic card reader and stores them into database (via Toplink). Our main problem is getting Unit Of Work (server session). If user interacts with application via jsp pages, obtaining uow is done from TopLinkDataControl (getAssociatedUnitOfWork()). But timer lives on its own, it has no jsp pages to get context from.
    We know one solution - getting server session from toplink descriptor (absolute path needed) - XMLProjectReader.read("c:\\...\\toplink-deployment-descriptor.xml"). Is there another way to create Unit Of Work for our timer in order to last whole application existence? Thanks.

    I was wrong, when I thought, that XMLProjectReader.read() with absolute path works. Your solution seems to be similar, with the same result. I'll describe my problem more closely:
    - Our web apllication consists of 2 projects - Model and ViewController. Each has set the classpath pointing to classes of the opposite project.
    - The only way, that I know of starting a Clock (from Model, Runnable) without creating JSP page is instatiating it in some servlet's init() method. (Servlet has set 'Load This Servlet When the Web App is Strted" in WEB.XML).
    - When I try in my clock to create UnitOfWork by XMLProjectReader.read("c:\\...\\toplink-deployment-descriptor.xml"), I get this error:
    EXCEPTION [TOPLINK-3007] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.ConversionException
    EXCEPTION DESCRIPTION: The Object [mypackage.MyClass], of class[class java.lang.String] could not be converted to [class java.lang.Class]. Please ensure that the class [class java.lang.Class] is on the CLASSPATH. You may need to use alternate
    API passing in the appropriate class loader as required, or setting it
    on the default ConversionManager/
    INTERNAL EXCEPTION: java.lang.ClassNotFoundException: mypackage.MyClass
    - mypackage.MyClass is one of many classes from Model, mapped in toplink-deployment-descriptor.xml. It is in classpath of ViewController.
    - For the time being, our application runs in JDeveloper, it will be deployed to OracleAS 10g.
    Either somebody please help me how to solve above error or maybe suggest how to start my clock together with application deployment (no jsp context).
    Thanks.

  • TopLink IAS\SessionBean Example exception

    I am deploying the SessionBean Example which comes with TopLink installable in the examples folder on OC4J 9.0.4 standalone server. I have changed the datasource references for Db url and db driver in the DataSource.xml. Also added TopLink.jar and Xerces.jar in OC4J\j2ee\home\lib.
    Now server is throwing an exception : Unknown tag name: [session] in XML node: [toplink-configution] which i think is from the Sessions.xml file
    Any help or pointers will be really welcome.

    Hello,
    This exception is not a problem with sessions.xml, its a problem with the project that is being referenced by sessions.xml.
    There should be a description of the problem, such as:
    EXCEPTION DESCRIPTION: The object [oracle.demo.MyClass], of class [class java.lang.String], could not be converted to [class java.lang.Class]. Please ensure that the class [class java.lang.Class] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager
    INTERNAL EXCEPTION: java.lang.ClassNotFoundException: oracle.demo.HockeyTea
    EXCEPTION [TOPLINK-9001] (TopLink - 9.0.3.4 (Build 432)): oracle.toplink.exceptions.SessionLoaderException
    EXCEPTION DESCRIPTION: Unknown tag name: [session] in XML node: [toplink-configuration].
    INTERNAL EXCEPTION: java.lang.reflect.InvocationTargetException
    TARGET INVOCATION EXCEPTION: java.lang.NullPointerException
    Without a more detailed stack trace, I would be taking guesses as to the problem.

  • ObjectInputStream.GetFields: Useful in readObject()?

    The following is an excerpt from the User Guide description of ObjectInputStream.GetField class (http://java.sun.com/j2se/1.3/docs/guide/serialization/spec/input.doc2.html):
    ��Using readFields to access the serializable fields does not change the format of the stream. It only provides an alternate API to access the values which does not require the class to have the corresponding non-transient and non-static fields for each named serializable field. The serializable fields are those declared using serialPersistentFields or if it is not declared the non-transient and non-static fields of the object. When the stream is read the available serializable fields are those written to the stream when the object was serialized. If the class that wrote the stream is a different version not all fields will correspond to the serializable fields of the current class. The available fields can be retrieved from the ObjectStreamClass of the GetField object.�
    Based on this description, I assumed that this API could be used within an object�s readObject() method to retrieve fields with names/types that differ from the current object. This assumption appears to be false.
    In my tests with 1.3 and 1.4.01, the serialization code makes a number of comparisons between the class being deserialized, and the local (vm loaded) version of the class. These comparisons include class cast compatibility, serialVersionUID compatibility, and field name/type compatibility. If any of the test fail, an appropriate exception is thrown. These tests are performed before the call is made to the object�s readObject method. (In 1.4_01, these tests are performed by ObjectSteamClass.initNonProxy().)
    In the following example, Foo (version 2) cannot successfully deserialized Foo (version 1). The serialization mechanism with throw a field type mismatch on �field1� before calling readObject(). Foo (version 2b) will fail as well. This time, because of an incompatible serialVersionUID.
    // Version 1
    public class Foo implements Serializable
        private static final long serialVersionUID = 1L;
        protected int field1 = 123;
    // Version 2
    public class Foo implements Serializable
        private static final long serialVersionUID = 1L;
        protected String field1 = 123;
        private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
            ObjectInputStream.GetField fields = in.readFields();
            field1 = Integer.toString(fields.get(�field1�,  0));
    // Version 2b
    public class Foo implements Serializable
        private static final long serialVersionUID = 2L;
        protected String field1 = 123;
        private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
            ObjectInputStream.GetField fields = in.readFields();
            field1 = Integer.toString(fields.get(�field1�,  0));
    }It appears ObjectInputStream.readFields() cannot be used within readObject() as the documentation describes. Am I missing something?
    Thanks, Craig.

    Oops. In version 2 and 2b, the following line:
    protected String field1 = 123;should read:
    protected String field1 = "123";

  • AnnotatedClassNotFoundException

    This is in a new JSF/JPA project.
    I was seeing this same behavior with all my JSP pages, but it wasn't affecting behavior. Now that I am trying to access the database, I am getting this error for Oracle10g class:
    SEVERE: [RaiserReportsFacade:public  Person  ReportsFacadeBean.queryPersonFindByUsername(java.lang.String)] exception occurred during method invocation: oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-7042] (Oracle TopLink - 11g Release 1 (11.1.1.0.0) (Build 070502)): oracle.toplink.exceptions.ValidationException
    Exception Description: Database platform class [Oracle10g] not found.
    Internal Exception: Exception [TOPLINK-3007] (Oracle TopLink - 11g Release 1 (11.1.1.0.0) (Build 070502)): oracle.toplink.exceptions.ConversionException
    Exception Description: The object [Oracle10g], of class [class java.lang.String], could not be converted to [class java.lang.Class]. Please ensure that the class [Oracle10g] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager
    Internal Exception: oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: Oracle10g
         Dependent class: oracle.toplink.internal.helper.ConversionManager
         Loader: oracle.toplink:11.1.1.0.0
         Code-Source: /C:/JDeveloper-1.11.1/lib/java/shared/oracle.toplink/11.1.1.0.0/toplink-core.jar
         Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\JDeveloper-1.11.1\j2ee\home\oc4j.jar
    Here is the classpath parameter: C:\JDeveloper-1.11.1\j2ee\home\oc4j.jar;C:\JDeveloper-1.11.1\jdev\lib\jdev-oc4j-embedded.jar
    and here is my system classpath: .;C:\Program Files\Java\j2re1.4.2_03\lib\ext\QTJava.zip;C:\oracle\product\10.2.0\db_1\jdk\lib\tools.jar;C:\eclipse\plugins\org.apache.jakarta_log4j_1.2.8.v200607172048\lib\log4j-1.2.8.jar;
    I have these added to my project:
    ocrs12.jar
    ojdbc14_g.jar
    orai18n.jar
    Any insights appreciated.

    This is the trace for the above exception:
    Query:ResultSetMappingQuery()
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:127)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:91)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:101)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:52)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.oc4j.security.SecurityServices.doAsPrivileged(SecurityServices.java:150)
         at oracle.oc4j.security.SecurityServices.doAsPrivileged(SecurityServices.java:420)
         at oracle.oc4j.security.JaasModeImpl$DoAsPrivilegedExecutor.execute(JaasModeImpl.java:280)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:57)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:101)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:101)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:58)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:104)
         at SearchFacade_RemoteProxy_43jlpm9.queryBasicProfilesByLastName(Unknown Source)
         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 com.evermind.server.rmi.RmiMethodCall.invokeMethod(RmiMethodCall.java:104)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:59)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
         Nested exception is:
    Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink - 11g Release 1 (11.1.1.0.0) (Build 070502)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: SQL string is not QueryError Code: 17128
    Call:findBasicProfilesByLastName
    Query:ResultSetMappingQuery()
         at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:283)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:583)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:443)
         at oracle.toplink.internal.sessions.AbstractSession.executeCall(AbstractSession.java:749)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:193)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:179)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:250)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeSelect(DatasourceCallQueryMechanism.java:232)
         at oracle.toplink.queryframework.ResultSetMappingQuery.executeDatabaseQuery(ResultSetMappingQuery.java:192)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:671)
         at oracle.toplink.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:594)
         at oracle.toplink.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2632)
         at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1014)
         at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:986)
         at oracle.toplink.internal.ejb.cmp3.base.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:395)
         at oracle.toplink.internal.ejb.cmp3.base.EJBQueryImpl.getResultList(EJBQueryImpl.java:502)
         at ca.on.gov.justice.oyais.domain.services.SearchFacadeBean.queryBasicProfilesByLastName(SearchFacadeBean.java:122)
         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 com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:27)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:101)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:101)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:101)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:101)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:52)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.oc4j.security.SecurityServices.doAsPrivileged(SecurityServices.java:150)
         at oracle.oc4j.security.SecurityServices.doAsPrivileged(SecurityServices.java:420)
         at oracle.oc4j.security.JaasModeImpl$DoAsPrivilegedExecutor.execute(JaasModeImpl.java:280)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:57)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:101)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:101)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:58)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:104)
         at SearchFacade_RemoteProxy_43jlpm9.queryBasicProfilesByLastName(Unknown Source)
         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 com.evermind.server.rmi.RmiMethodCall.invokeMethod(RmiMethodCall.java:104)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:59)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.sql.SQLException: SQL string is not Query
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:72)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:105)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:168)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:224)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:439)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1302)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3522)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3574)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:267)
         at oracle_jdbc_driver_OraclePreparedStatementWrapper_Proxy.executeQuery(Unknown Source)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:754)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:518)
         ... 49 more

  • SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: cannot access

    When we try to print the Google Map API for Flash component, it is throwing the Security Sandbox Violation
          SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: http://ps6143:8080/aa/XYZ/Main.swf/[[DYNAMIC]]/1 cannot access  http://mt1.google.com/vt/lyrs=m@171000000&hl=en&src=api&x=1&y=1&z=1&s=Gali&flc=x3t. No policy files granted access.
    at flash.display::BitmapData/draw()
    To avoid this error we tried to use the alternate API provided by library. But that also causing cross domain issue as it loading some 3d library internally which is not able to access our application.
    SecurityError: Error #2121: Security sandbox violation: BitmapData.draw: http://maps.googleapis.com/mapfiles/lib/map_1_20_10_3d.swf cannot access http://ps6143.persistent.co.in:8080/dv/SiteOptimizer/SiteOptimizer.swf/%5b%5bDYNAMIC%5d%5d /1http://ps6143:8080/aa/XYZ/Main.swf/[[DYNAMIC]]/1. This may be worked around by calling Security.allowDomain.
    at flash.display::BitmapData/draw()
    Please help us in resolving this issue.
    Thanks & Regrds,
    Ravi Darji

    There is no redirect... Charles is a web proxy so it will look completely legitimate to the browser.
    According to the help, it's getting the access request from the SWF itself and not the crossdomain.xml file:
    In the case of a source object other than a loaded bitmap, the source object and (in the case of a Sprite or MovieClip object) all of its child objects must come from the same domain as the object calling the draw() method, or they must be in a SWF file that is accessible to the caller by having called the Security.allowDomain()method.
    http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7d1b.html#WS5b3ccc516d4fbf351e63e3d118a9b90204-7c4a
    So the default state accessing a SWF on a different domain is protected, unless that SWF allows some or all domains to access it via the Security.allowDomain() method.

  • NSAPI compatibility with IPV6

    Hi All,
    In our application we need to get the client IP address. Our product is supported on NetScape webserver , so we are using NSAPI to get the client IP address.
    We are using following call to get the client IP address
    pblock_findval( "ip", _sn->client)).GetChar());
    We are planning to upgrade our application to support IPv6 address.
    I am wondering if the current API provided by NSAPI is IPv6 compliant.
    Can somebody please confirm if the above API can be used for IPv6 based address?
    If not then what alternate API(s) we should be leveraging to get the IP address of the client in IPv6 format?
    Thanks and Regards
    Raj Mishra

    I wrote this NSAPI plugin :
    #include "nsapi.h"
    NSAPI_PUBLIC mytest(pblock pb, Session sn, Request *rq)
    char *arr = pblock_findval( "ip", sn->client);
    if (arr)
    pblock_nvinsert("Location", arr, rq->srvhdrs);
    protocol_status(sn, rq, PROTOCOL_REDIRECT, NULL);
    protocol_start_response(sn, rq);
    return REQ_ABORTED;
    Added in server.xml in http-listener element :
    <ip>fe80::123:baef:abcd:1234</ip>
    and sent a request on the same host:
    telnet fe80::123:baef:abcd:ef12  80
    GET / HTTP/1.0
    HTTP/1.1 302 Moved Temporarily
    Server: Sun-Java-System-Web-Server/7.0
    Date: Tue, 03 Jun 2008 08:05:57 GMT
    Location: fe80::123:baef:abcd:ef12%bge0
    Content-length: 0
    Connection: closeLooks like pblock_findval( "ip", sn->client); returns fe80::123:baef:abcd:ef12%bge0.

  • Replacement of   IUser API for EP6

    Hi,
    Can somebody tell me that what is replacement of following IUser apis for EP6:
    1.getMappingInfo()
    2.getValuesForKey()
    3.getRawUserMappingData()
    4.getKeys()
    The following apis are with EP5. But I am not able to see them with EP6.
    What are the replacement IUser api for the above in EP6.
    Thanks in advance.
    Manish

    Hi Manish,
    I am not too sure if i understand your question but to get usermapping data in EP6, you need to do the following.
    //get usermapping service
    IPortalComponentRequest request = (IPortalComponentRequest)this.getRequest();
    IUser userid = request.getUser();
    IUserMappingService iums = (IUserMappingService)     PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);
    //get the mapping data
    IUserMappingData iumd = iums.getMappingData("R3DEV",userid);
    Map map = new HashMap ();
    try {
       iumd.enrich (map);
    catch (NoLogonDataAvailableException nldae) {}
    //Get the userid and password
    String userid = (String)map.get ("user");
    String password = (String)map.get ("mappedpassword");
    PS: Pease consider rewarding points for helpful answer or problem resolved. thank you.

  • API to get system objects and their propeties at EP6?

    Thank you.

    Hi Detlev,
    Thank you very much for quick and precise reply!
    I have also added a following piece of code to receive
    a name-value pairs of all the system and it works.
    Attributes attr = so.getAttributes();
                   NamingEnumeration ids = attr.getIDs();
                   while (ids.hasMoreElements()) {
                        Object nextIDObj = ids.nextElement();
                        String idName = nextIDObj.toString();
                        response.write(idName + " = " + attr.get(idName).get() + "<BR>");
    Thanks again,
    Yuri
    P.S. Where from comes your knowledge about these APIs?
    I didn't find ANY documentation about!...

  • EP6 SP2 APIs through web services/urls?

    Hi,
    One general question to begin this thread -
    Can I do anything the portal APIs (UME, KMC and all
    the rest) allow me to do and expose it for external
    application usage as a web service/url/whatever? If
    no, who knows what can be exposed and what is not?
    Thanks all,
    Yuri

    Anyone?

  • Java API to read the Encrypted Values from Windows Registry settings

    Is there any Java API to read the Encrypted Values from Windows Registry settings ?
    My Java Application invokes a 3rd party Tool that writes the key/value to windows registry settings under : “HKLM\Software\<3rdparty>\dataValue”.
    This entry is in BINARY and encrypted with 3DES, using crypto API from Microsoft.
    3rd party software to encrypt the data stored in registry it
    either uses C++ code: and uses the call “CryptProtectData” and “CryptUnProtectData” or
    If it is a .NET (C#) it uses the call “Protect” or “UnProtect” from class “ProtectData” of WinCrypt.h from the library “Crypt32.lib.
    Note: The data is encrypted using auto-generated machinekey and there is no public key shared to decrypt the Encrypted data.
    Since the data is encrypted using auto-generated machinekey the same can be decrypted from a .Net / C++ application using CryptUnprotectData or UnProtect() API of WinCrypt.h from the library “Crypt32.lib.
    To know more about Auto-Generated MachineKey in Windows refer the links below
    http://aspnetresources.com/tools/machineKey
    http://msdn.microsoft.com/en-us/library/ms998288.aspx
    I need to find a way in Java to find the equivalent API to decrypt (CryptUnprotectData) and Microsoft will automatically use the correct key.
    But i couldn't find any informato related to Java APIs to enrypt or decrypt data using auto-generated machinekey.
    Is there a way to read the encrypted data from Windows regsitry settings that is encrypted using the Auto-Generated Machine Key ?
    Kindly let me know if Java provides any such API or mechanism for this.

    If the symmetric key is "auto-generated" and is not being stored anywhere on the machine, it implies that the key is being regenerated based on known values on the machine. This is the same principle in generating 3DES keys using PBE (password-based-encryption). I would review the documentation on the C# side, figure out the algorithm or "seed" values being used by the algorithm, and then attempt to use the JCE to derive the 3DES key using PBE; you will need to provide the known values as parameters to the PBE key-generation function in JCE. Once derived, it can be used to decrypt the ciphertext from the Regiistry in exactly the same way as the CAPI/CNG framework.
    An alternate way for Java to use this key, is to write a JNI library that will call the native Windows code to do the decryption; then the Java program does not need to know details about the key.
    That said, there is a risk that if your code can derive the key based on known seeds, then so can an attacker. I don't know what your applicatiion is doing, but if this is anything related to compliance for some data-security regulation like PCI-DSS, then you will fail the audit (for being unable to prove you have adequate controls on the symmetric key) if a knowledgable QSA probes this design.
    Arshad Noor
    StrongAuth, Inc.

Maybe you are looking for

  • How do I connect my new 3gs iphone to itunes when i have a corrupted backup file

    My iphone 3gs died (got stuck on the itunes screen) when I tried to upgrade it.  i never had a good backup for my phone but i tried to back up anyway. Didn't work. Today I got a new 3gs at the apple store and now I'm trying to put everything back on

  • Using Table as Datasource

    Hi guys i need to use a SAP table in BW as source for a datasource...whats the procedure for do that? Message was edited by:         Oscar Díaz

  • Non-blocking server

    Hi there, I've got a problem with the NIO package: I'm trying to make a simple webserver, just to get familiar with SocketChannel, ServerSocketChannel, Selector, Buffer's and so on. My problem is that my server can only receive one single request, th

  • ABAP Limited Number of CHAR in File

    Hi All, I am writing txt data to a flat file and it appears I am not able to print more than 616 characters.  Is their a way to expand the line so I can write more than 616 characters? Regard, - Helen

  • No authorization for object K_VRGNG, action 16, fi,Message no. DB000

    Hi, User got error message while doing GR . Error message : Cost allocation Document was NOT Posted due to  No authorization for object K_VRGNG, action 16, fi Message no. DB000 Regards....