Error while retriving the connection uisng JNDI and DATASOURCE

hi guys,
i had a specifed data source in the the data-sources.xml of CONFIG folder of my application
<data-source class="oracle.jdbc.pool.OracleConnectionCacheImpl"
connection-driver="oracle.jdbc.driver.OracleDriver" location="jdbc/OracleDS_native"
name="OracleDS"
password="abc"
url="jdbc:oracle:thin:@BC354321:1521:CRADV1"
username="xyz"/>
Here is the program i had written to retrive the datasource
package javaapplication1;
import javax.naming.InitialContext;
import java.sql.*;
import javax.naming.Context;
import javax.sql.DataSource;
public class Main {
public Main() {
public static void main(String[] args) {
Connection con =null;
try {
InitialContext context = new InitialContext();
System.out.println("##########context********"+context);
DataSource ds = (DataSource)context.lookup("jdbc/OracleDS_native");
System.out.println("##########DataSource********"+ds);
con = ds.getConnection();
catch( Exception exception ) {
// process exception
exception.printStackTrace();
if(con!=null)
try{ con.close(); }
catch(SQLException e)
{ e.printStackTrace();}
ERROR:
##########context********javax.naming.InitialContext@2bbd86
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at javaapplication1.Main.main(Main.java:35)
what might be the problem??
regards
Phani

Phani,
From the contents of your "data-sources.xml" file that you posted, it looks like you are using a pre-10.1.3.x version of OC4J (stand-alone?), so Jason's link may not be helpful.
Nonetheless, as Jason mentions, you do need to set some properties that need to be passed to the "InitialContext" class constructor. Probably something like the following.
[Note that the code is uncompiled and untested.]
Properties prp = new Properties();
prp.put(Context.INITIAL_CONTEXT_FACTORY,
        "com.evermind.server.rmi.RMIInitialContextFactory");
prp.put(Context.PROVIDER_URL, "ormi://oc4j_host");
prp.put(Context.SECURITY_PRINCIPAL, "user");
prp.put(Context.SECURITY_CREDENTIALS, "password");
Context ctx = new InitialContext(prp);
DataSource ds = (DataSource) context.lookup("jdbc/OracleDS_native");And replace "oc4j_host" with the name of your OC4J host machine as well as "user" and "password" with the appropriate values.
Note that you can probably use the OC4J admin user's details.
Good Luck,
Avi.

Similar Messages

  • Configuration Failed Error while running the Shareoint 2010 Products and Configuration wizard in windows 7

    Hi Techys,
    Kindly help me to resolve the below issue
    "Configuration Failed Error while running the Shareoint 2010 Products and Configuration wizard in windows 7"
    Many Thanks,
    Madhu

    Hi,
    Follow this link for smooth installation for SP 2010 on Win 7.
    http://msdn.microsoft.com/en-us/library/office/ee554869(v=office.14).aspx
    Murugesa Pandian.,MCTS|App.Development|Configure

  • Error while deploying the project to ESB and deleting the services in ESB

    Hi,
    I am tiring to deploy a project to ESB, but I am getting this exception.
    error code: 0 : 10
    summary: An unhandled exception has been thrown in the ESB system. The exception reported is: "javax.transaction.RollbackException: Timed out
    at com.evermind.server.ApplicationServerTransaction.checkForRollbackOnlyWhileInCommit(ApplicationServerTransaction.java:582)
    at com.evermind.server.ApplicationServerTransaction.doCommit(ApplicationServerTransaction.java:244)
    at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:130)
    at com.evermind.server.ApplicationServerTransactionManager.commit(ApplicationServerTransactionManager.java:433)
    at oracle.tip.esb.console.XMLConsoleManagerImpl.commit(Unknown Source)
    at oracle.tip.esb.configuration.deployment.JDevDeploymentManager.deploy(Unknown Source)
    at oracle.tip.esb.configuration.deployment.DeploymentServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Fix: -
    In the earlier thread
    Error while deploying the project to ESB
    I was told to do some corrections. I did that and also I have bounced the OPMN. It worked for me.
    But again I am getting the same error, and I did this for the second time. But it didn’t work now.
    And I also have one more problem. I am not able to delete the existing services in the ESB console. When I try to delete the services I am getting the same error.
    I even checked the LOGS. The last three error payloads I see are
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2007-04-03T13:15:30.846-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="WARNING"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>usmlrh37.arrow.com</HOST_ID>
    <HOST_NWADDR>192.168.226.25</HOST_NWADDR>
    <MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
    <THREAD_ID>26</THREAD_ID>
    <USER_ID>soauser</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>192.168.226.25:62472:1175620406177:7</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>JCA: ORABPEL-11207
    IO Failure in translator.
    IO failure because the Inbound XSD translator failed to DOM Parse InputStream .
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    </MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[ORABPEL-11207
    IO Failure in translator.
    IO failure because the Inbound XSD translator failed to DOM Parse InputStream .
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
         at oracle.tip.pc.services.translation.xlators.xsd.XSDTranslator.translateFromNative(XSDTranslator.java:136)
         at oracle.tip.adapter.mq.inbound.MessageProcessor.translateMessage(MessageProcessor.java:377)
         at oracle.tip.adapter.mq.inbound.MessageProcessor.processMessage(MessageProcessor.java:217)
         at oracle.tip.adapter.mq.inbound.MessageProcessor.run(MessageProcessor.java:165)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.io.UTFDataFormatException: Invalid UTF8 encoding.
         at oracle.xml.parser.v2.XMLUTF8Reader.checkUTF8Byte(XMLUTF8Reader.java:160)
         at oracle.xml.parser.v2.XMLUTF8Reader.readUTF8Char(XMLUTF8Reader.java:187)
         at oracle.xml.parser.v2.XMLUTF8Reader.fillBuffer(XMLUTF8Reader.java:120)
         at oracle.xml.parser.v2.XMLByteReader.saveBuffer(XMLByteReader.java:450)
         at oracle.xml.parser.v2.XMLReader.fillBuffer(XMLReader.java:2488)
         at oracle.xml.parser.v2.XMLReader.tryRead(XMLReader.java:1089)
         at oracle.xml.parser.v2.XMLReader.scanXMLDecl(XMLReader.java:3047)
         at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:521)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:287)
         at oracle.tip.pc.services.translation.xlators.xsd.XSDTranslator.translateFromNative(XSDTranslator.java:134)
         ... 8 more
    ]]></SUPPL_DETAIL>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2007-04-03T13:15:30.850-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>usmlrh37.arrow.com</HOST_ID>
    <HOST_NWADDR>192.168.226.25</HOST_NWADDR>
    <MODULE_ID>esb.monitor.manager</MODULE_ID>
    <THREAD_ID>29</THREAD_ID>
    <USER_ID>soauser</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>192.168.226.25:62472:1175620406325:10</UNIQUE_ID><SEQ>87</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>Activity monitor manager received an unexpected exception while processing the activity messages. Due to the error "ORA-01653: unable to extend table ORAESB.ESB_FAULTED_INSTANCE by 8 in tablespace USERS
    ", the activity message could not be stored.
    </MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[oracle.tip.esb.monitor.MonitorException: Due to the error "ORA-01653: unable to extend table ORAESB.ESB_FAULTED_INSTANCE by 8 in tablespace USERS
    ", the activity message could not be stored.
         at oracle.tip.esb.monitor.manager.database.AbstractFaultPersister.persist(Unknown Source)
         at oracle.tip.esb.monitor.manager.database.DBActivityMessageStore.persistMessage(Unknown Source)
         at oracle.tip.esb.monitor.manager.database.DBActivityMessageStore.store(Unknown Source)
         at oracle.tip.esb.monitor.manager.ActivityMessageManager.handleMessage(Unknown Source)
         at oracle.tip.esb.server.dispatch.agent.ESBWork.process(Unknown Source)
         at oracle.tip.esb.server.dispatch.agent.ESBWork.run(Unknown Source)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.sql.SQLException: ORA-01653: unable to extend table ORAESB.ESB_FAULTED_INSTANCE by 8 in tablespace USERS
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1161)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3001)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3074)
         at oracle.oc4j.sql.proxy.PreparedStatementBCELProxy.executeUpdate(PreparedStatementBCELProxy.java:37)
         at oracle.tip.esb.monitor.manager.database.oracle.OracleFaultPersister.persist(Unknown Source)
         ... 11 more
    ]]></SUPPL_DETAIL>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2007-04-03T13:15:30.853-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>usmlrh37.arrow.com</HOST_ID>
    <HOST_NWADDR>192.168.226.25</HOST_NWADDR>
    <MODULE_ID>esb.server.dispatch.agent</MODULE_ID>
    <THREAD_ID>29</THREAD_ID>
    <USER_ID>soauser</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>192.168.226.25:62472:1175620406325:10</UNIQUE_ID><SEQ>87</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>Failed to process deferred message</MSG_TEXT>
    <SUPPL_DETAIL>oracle.tip.esb.server.common.exceptions.BusinessEventRejectionException: Error occured while handling monitor message dequeued from monitor topic. Message text is "<activityMessages><activityMessage order='0' type='2'><flowId>ECA97010E20611DBBFEBA191573C68FA</flowId><subFlowId>1175620530577</subFlowId><source>379D02F0DD5F11DBBF92D52E11DE817E</source><sourceQName>Demo_Inbound_Queue_to_DB.Demo_Inbound_Queue_to_DB_From_Queue</sourceQName><timestamp>1175620530577</timestamp><operationGUID>379E8990DD5F11DBBF92D52E11DE817E</operationGUID><operationQName>Demo_Inbound_Queue_to_DB.Demo_Inbound_Queue_to_DB_From_Queue_RS.Dequeue</operationQName><errorMessage><![CDATA[java.util.MissingResourceException
    java.util.MissingResourceException
    java.util.MissingResourceException
    ]]></errorMessage><exception><![CDATA[ORABPEL-13004
    java.util.MissingResourceException
    java.util.MissingResourceException
    java.util.MissingResourceException
         at oracle.tip.adapter.mq.inbound.MessageProcessor.translateMessage(MessageProcessor.java:388)
         at oracle.tip.adapter.mq.inbound.MessageProcessor.processMessage(MessageProcessor.java:217)
         at oracle.tip.adapter.mq.inbound.MessageProcessor.run(MessageProcessor.java:165)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
    ]]></exception><inPayload><![CDATA[ediExtract850Header           4085537732     8670SSD23962-29     008675989102007032220070322
    [b]Can any one please help me.
    Thanks
    Rao.

    Hi Bastiaan,
    Thanks for the reply. I have asked my DBA analyst to work on this. He has increased the table space. Now if I try to deploy the projects to ESB the following error is show.
    Error 1:
    error code: 1000 : 5
    summary: /rh37/u01/app/soa/10.1.3.1/SOA/integration/esb/oraesb/deploy/OAGISApp_OAGIS.zip (Read-only file system)
    Fix: Contact Oracle Support
    Error 2:
    Entity Deployment Failed
    error code: 0 : 10
    summary: An unhandled exception has been thrown in the ESB system. The exception reported is:
    "oracle.tip.esb.infra.exception.ESBRuntimeException: An unhandled exception has been thrown in the ESB system. The exception
    reported is: "java.lang.NullPointerException
         at oracle.tip.esb.console.CacheManager.updateService(Unknown Source)
         at oracle.tip.esb.console.CacheManager.replaceEntity(Unknown Source)
         at oracle.tip.esb.console.XMLConsoleManagerImpl.updateServiceInRepository(Unknown Source)
         at oracle.tip.esb.console.XMLConsoleManagerImpl.updateServiceFromElement(Unknown Source)
         at oracle.tip.esb.configuration.deployment.JDevDeploymentManager.createEntity(Unknown Source)
         at oracle.tip.esb.configuration.deployment.JDevDeploymentManager.createServices(Unknown Source)
         at oracle.tip.esb.configuration.deployment.JDevDeploymentManager.deploy(Unknown Source)
         at oracle.tip.esb.configuration.deployment.DeploymentServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
         at oracle.tip.esb.console.XMLConsoleManagerImpl.updateServiceInRepository(Unknown Source)
         at oracle.tip.esb.console.XMLConsoleManagerImpl.updateServiceFromElement(Unknown Source)
         at oracle.tip.esb.configuration.deployment.JDevDeploymentManager.createEntity(Unknown Source)
         at oracle.tip.esb.configuration.deployment.JDevDeploymentManager.createServices(Unknown Source)
         at oracle.tip.esb.configuration.deployment.JDevDeploymentManager.deploy(Unknown Source)
         at oracle.tip.esb.configuration.deployment.DeploymentServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NullPointerException
         at oracle.tip.esb.console.CacheManager.updateService(Unknown Source)
         at oracle.tip.esb.console.CacheManager.replaceEntity(Unknown Source)
         ... 26 more
    Fix: -
    I tried to stop and start the OPMN. It didn't work. Can you please help me.
    Thanks
    Rao.
    Message was edited by:
    user552961

  • Error while retriving the values from a vector in jsp

    Vector AppDetails is set in a Attribute of request scope as.
    Vector[] AppDetails = (Vector[])port.retrieveAppDetails(appID);
    request.setAttribute("AppDetails",AppDetails);
    But while retriving the same in the jsp by
    Vector AppDetails =(Vector)request.getAttribute("AppDetails");
    its giving an error as
    java.lang.ClassCastException: [Ljava.util.Vector;
    so i am trying with this code now
    Object attr = request.getAttribute("AppDetails");
    if(attr instanceof Vector)
         System.out.println("is instance of vector");
    }     else
    System.out.println("is not a instance");
    System.out.println("I'm seeing a " + attr.getClass().getName());
    here the output is 'is not a instance'. Suggest me on the same.

    You are setting the array of vector in request object, but you are trying get the object as normal vector object. that's why are you getting error. try to get the vector object as array of vector.

  • Getting an error "Remote Access Service Error" while establishing the connection usng SonicWall Netextender.

    * Original Title: SonicWall Netextender issue with Windows 8.1
    I am able to install SonicWall Netextender version 6.0.181 without any issues in my Windows 8.1 machine. When i try to establish the connection getting this error "Remote Access Service Error - Rebooting might Solve the problem".
    Hope someone can help me in resolving this issue.

    Hi,
    Please go to Windows Service manager, run "services.msc", then Look for the Remote Access Auto Connection Manager and Remote Access Connection Manager to see if those two services have been started. If not, set them to automatic start, reboot the machine,
    and install\configure NetExtender again.
    Since this is a third party application, it's recommended to contact the application vender to check the compatibility with Windows 8.1\IE 11, because they're more familiar with the application.
    http://help.mysonicwall.com/sw/eng/2605/ui2/1000/Admin/SSL-VPN_2000_1.0_Admin-8-1.html
    NOTE
    This response contains a reference to a third party World Wide Web site. Microsoft
    is providing this information as a convenience to you. Microsoft does not control these sites and has not
    tested any software or information found on these sites.
    Yolanda Zhu
    TechNet Community Support

  • Error while retriving the Data in BI Answers

    Helllo Folks,
    we are using BI Apps 7.9.6 HR Module
    in BI Answers, i am getting false results that is when i am selecting only "ORAGANIZATION NAME", i get the name of the organization
    where as when selecting Oranization name along any of the facts, the ORGANIZATION CODE(NUMBER) show up instead of Names along with Facts
    is it due to the Dimensional Hierarchy error or any other CODE ERROR in the BMM Layer
    thank you
    user119

    did you establish any dimensional hierarchy for organization code and name??
    If your using pivot table view then place the organization name in the page axis and remaining all facts or columns as data points.CHeck out if organization code populating when used this way

  • CSSimport.bat error: while migrating the Shared Services groups and users

    Hi,
    I am trying to migrate the shared services native users and group from 9.3.1(on server A) to 11.1.1.3(on server B)
    - I have taken the export in CSV format from 9.3.1 using CSSexport.bat.(export.csv) -Successful.
    - I have copied this on the 11.1.1.3 server and changed lil details like removing the admin user etc.
    - When I am trying the import this on 11.1.1.3, I am getting the below error:
    CSSimport importexport.properties2010-10-11 09:36:41,328 Attempting a import operation
    log4j:WARN No appenders could be found for logger (com.hyperion.css.common.CSSLogger).
    log4j:WARN Please initialize the log4j system properly.
    null
    Aborting program...
    - There are not log or error files geting generated - The only error recieved , is given above.
    - I have made the necessary changes to the impotexport.properties file on 11.1.1.3 before starting the CSSimport utility.
    Can you please let meknow what should I do to overcome this error.
    -thanks,
    Ankit

    First thing I would try would be on the 11.1.1.3, try and run an export, if it works then run the import on the same file, this way you will make sure you have the version 11 utility working.
    Once you have done that then you can move on to the 9.3.1 export file.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Error while assigning the user to orgunit and position

    Hi,
    We are having the below issue :
    1.       Obtain the HR master record (P Ids) created by interface - ECC
    2.       Assign a valid user to this HR master record -ECC
    3.       Do the position/Org assignment against this P Id or personnel master record - ECC
    4.       Transfer the Org Id, then the position ID and then the personnel master ID (P Id) to SRM u2013 ECC
    5.       Check if the user is in SYNC in SRM  - Ideally he should inherit the mandatory parameters from the above Orgs in the structure without which he shall not be able to shop in SRM u2013 step executed in SRM
    Please let us know if this process is as per the expectation.
    If so, we are ending up with error in the third step where the assignment is not allowed since the personnel master record is created with prior date than the position and the Org units.
    Actually we are getting the idoc with user alone from other system, org and position ids are blank. So we are assigning the user in the system and we are getting above error.
    Is this the correct process to bring the users alone into the system and doing the position/organization assignment in ECC now?
    Or the Idoc comes with this data as well? 
    Regards
    Venkatesh P
    Edited by: Venkatesh Padarti on Mar 5, 2012 5:33 AM

    Thank you vikas for your reply.
    So we should bring all the data in the idoc(O,S,P). Even though O, S are present in the receiving sytem?
    Regards
    Venkatesh P

  • Error while retriving the data from the database

    morning we shutdown and start up the server.after that when i am retreving the data from the database it is giving the following error.
    ora-04030: out of process memory when trying to allocate 64512 bytes(sort subheap,sort key)
    pga_aggregate_target details are as follows
    value=2147483648
    display value=2g
    is default=false
    is sesmodifiable=false
    hash=2184567208

    Please look at the following link :
    how solve  ORA-04030: out of process memory when trying to allocate
    Cheers!

  • Error While Creating Informix Connection Pool

    Hi,
    I am trying to port an application from Weblogic 6.1 to Weblogic 8.1. The Application accesses Informix database. I used the following driver, url and properties while connecting to this database using Weblogic 6.1
    url:->jdbc:weblogic:informix4:snss_live
    Driver ClassName :-> weblogic.jdbc.informix.InformixDriver
    Properties :->
    port=22000
    user=snssadmn
    password=snssadmn
    server=10.115.26.40
    The above used to work fine with weblogic 6.1
    With Weblogic 8.1, I am using the following properties
    url :-> jdbc:bea:informix://10.115.26.40:22000;informixServer=10.115.26.40;databaseName=snss_live
    Driver ClassName :-> weblogic.jdbc.informix.InformixDriver
    Properties :->
    informixServer=10.115.26.40
    user=snssadmn
    portNumber=22000
    databaseName=snss_live
    serverName=10.115.26.40
    However using these properties I am getting the following error while deploying the Connection Pool to the Managed Server
    <Dec 29, 2004 12:26:53 PM EST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "Btv_Vms_Pool": [BEA][Informix JDBC Driver][Informix]INFORMIXSERVER does not match either DBSERVERNAME or DBSERVERALIASES.>
    <Dec 29, 2004 12:26:54 PM EST> <Error> <JDBC> <BEA-001150> <Connection Pool "Btv_Vms_Pool" deployment failed with the following error: 0:Could not create pool connection. The DBMS driver exception was: [BEA][Informix JDBC Driver][Informix]INFORMIXSERVER does not match either DBSERVERNAME or DBSERVERALIASES..>
    Any idea as to why this is happening
    Regards
    Nitin Nair

    Hi. I suspect that the databaseName property is causing the problem in
    8.1. Remove it and see if that works. Also, try running:
    java utils.dbping, and giving it the properties it asks for, for your
    Informix connection. Once it succeeds in making a connection, it will
    print out the URL and properties it used. Then define the pool with
    those (and only those) properties and URL.
    Joe
    Nitin Nair wrote:
    Hi,
    I am trying to port an application from Weblogic 6.1 to Weblogic 8.1. The Application accesses Informix database. I used the following driver, url and properties while connecting to this database using Weblogic 6.1
    url:->jdbc:weblogic:informix4:snss_live
    Driver ClassName :-> weblogic.jdbc.informix.InformixDriver
    Properties :->
    port=22000
    user=snssadmn
    password=snssadmn
    server=10.115.26.40
    The above used to work fine with weblogic 6.1
    With Weblogic 8.1, I am using the following properties
    url :-> jdbc:bea:informix://10.115.26.40:22000;informixServer=10.115.26.40;databaseName=snss_live
    Driver ClassName :-> weblogic.jdbc.informix.InformixDriver
    Properties :->
    informixServer=10.115.26.40
    user=snssadmn
    portNumber=22000
    databaseName=snss_live
    serverName=10.115.26.40
    However using these properties I am getting the following error while deploying the Connection Pool to the Managed Server
    <Dec 29, 2004 12:26:53 PM EST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "Btv_Vms_Pool": [BEA][Informix JDBC Driver][Informix]INFORMIXSERVER does not match either DBSERVERNAME or DBSERVERALIASES.>
    <Dec 29, 2004 12:26:54 PM EST> <Error> <JDBC> <BEA-001150> <Connection Pool "Btv_Vms_Pool" deployment failed with the following error: 0:Could not create pool connection. The DBMS driver exception was: [BEA][Informix JDBC Driver][Informix]INFORMIXSERVER does not match either DBSERVERNAME or DBSERVERALIASES..>
    Any idea as to why this is happening
    Regards
    Nitin Nair

  • Error while determining the form function module

    Hi everyone,
    We are experiencing problems while displaying one adobe form in ESS. It’s the Travel Expense form (PTRV_EXPENSE_FORM). When pressing the button to “Display/Print” the form we get an error message: "Error while determining the form function module", and no form I shown. The ADS server is configured correctly and there are other forms that are actually working, for example the Travel Request form. We are running WAS 7.0 with SP12.
    Anyone has an idea what can cause the problem? Any help is greatly appreciated.
    Thanks in advance!
    Regards,
    Sophie

    Viktor,
    Thank you for your answer, it solved our problem!
    Regards,
    Sophie

  • Automatic Picking giving error while saving the Delivery

    Hi
    We have done the configuration for doing automatic picking while saving the delivery.
    Steps done are
    1. TCode V/38
    2. TCode OVLT  where we have changed the Time value form 3 to 4 for  Send Immediate
    3. TCode VP01SHP where all shipping points are maintained.
    we are getting the following error while saving the delivery.

    Execute ST22 and go through the explanation given under the tab "Error analysis" and "How to correct the error".  Ask your ABAP team to look into this if you are not able to find out the root cause of the issue.
    G. Lakshmipathi

  • Trying to setup new iCloud in system preferences and get error message: "iCloud encountered an error while trying to connect to the server."

    Here's the sequence of events:
    Setting up a new iMac.
    Migration Assistant was aborted during setup and a normal setup was completed.
    Then ran Migration Assistant from the newly setup account.
    It ran fine, but put all the data in a new account called "user".
    Renamed "user" to a new name, renamed the home folder to a new name following these instructions: OS X: How to change your account name or home directory name
    Delete the account we originally created, so just have one account with the name we want and all the data, email. Works fine.
    Sign into the App Store with the account we share for purchases.
    Now, the problem:
    Go to System Preferences to setup iCloud with a new Apple ID
    Get this error: "iCloud encountered an error while trying to connect to the server."
    So I'm unable to setup iCloud for photo stream, FaceTime, etc.
    Internet works fine, we can get mail, etc.
    Rebooting doesn't help
    Ideas?

    never mind the problem is gone this morning.

  • I am unable to connect to the icloud from my windows laptop and get an error message: "Connection error: icloud encountered an error while trying to connect to the server"

    I am unable to connect to icloud from my windows-based laptop and get the following error message: "icloud encountered an error while trying to connect to the server."

    I would remove the email account from mail and then set it up again.
    If your are able to long I via owa though without the auto fill, then we already know the user name and password are correct.
    Let me know if that works.

  • Icloud encountered and error while trying to connect to the server.

    Icloud encountered and error while trying to connect to the server.

    I'm having the same issue on Vista 64 bit. Any ideas, any body?

Maybe you are looking for