When I ran the sample code(WebLogicContextExample.java)

Hi:
when I ran the sample code(c:\weblogic\examples\jndi\WebLogicContextExample.java) occuring some errors.
Any Body can help me. Thx a lot!
Anny Chen
Here's error message:
C:\weblogic>java examples.jndi.WebLogicContextExample
WebGain Java! JustInTime Compiler Version 4.00.002(x) for JDK 1.2
Copyright (C) 2000 WebGain, Inc.
null
java.lang.NoSuchMethodError: java.lang.NoSuchMethodException: getNameInNamespace
at weblogic.jndi.toolkit.BasicWLContext_WLStub.ensureInitialized(BasicWL
Context_WLStub.java:127)
at weblogic.jndi.toolkit.BasicWLContext_WLStub.<init>(BasicWLContext_WLS
tub.java:146)
at java.lang.reflect.Constructor.newInstance(Native Method)
at weblogic.common.internal.ClassTableEntry.newInstance(ClassTableEntry.
java:86)
at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjec
tInputStreamBase.java:248)
at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObj
ectInputStreamBase.java:202)
at weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectI
nputStreamBase.java:949)
at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjec
tInputStreamBase.java:308)
at weblogic.jndi.toolkit.WLContextStub.readExternal(WLContextStub.java:7
9)
at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializab
le(WLObjectInputStreamBase.java:269)
at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjec
tInputStreamBase.java:254)
at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObj
ectInputStreamBase.java:202)
at weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectI
nputStreamBase.java:949)
at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjec
tInputStreamBase.java:308)
at weblogic.rmi.extensions.AbstractInputStream2.readObject(AbstractInput
Stream2.java:25)
at weblogic.jndi.internal.RemoteContextFactoryImpl_WLStub.getContext(Rem
oteContextFactoryImpl_WLStub.java:99)
at weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInit
ialContextFactoryDelegate.java:316)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialCon
textFactoryDelegate.java:242)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java, Compiled Code)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java:148)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
extFactory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:7
71)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:169
at javax.naming.InitialContext.<init>(InitialContext.java:146)
at examples.jndi.WebLogicContextExample.main(WebLogicContextExample.java
:107)
Initial context created
Subcontext 'example' created
Bound 'Example String created at 2000/1/3 &#19979;&#21320; 05:48:18' to 'example.one' for th
e first time.
Example finished successfully.

This is very likely a CLASSPATH issue. Make sure weblogicaux.jar is
at the head of your CLASSPATH.
Mike
"pamal" <[email protected]> wrote in message
news:[email protected]...
I just installed 5.1 with sp2 and have the same problem. Anyone know
about this one?
Anny Chen wrote:
Hi:
when I ran the sample
code(c:\weblogic\examples\jndi\WebLogicContextExample.java) occuring some
errors.
Any Body can help me. Thx a lot!
Anny Chen
Here's error message:
C:\weblogic>java examples.jndi.WebLogicContextExample
WebGain Java! JustInTime Compiler Version 4.00.002(x) for JDK 1.2
Copyright (C) 2000 WebGain, Inc.
null
java.lang.NoSuchMethodError: java.lang.NoSuchMethodException:getNameInNamespace
>>
atweblogic.jndi.toolkit.BasicWLContext_WLStub.ensureInitialized(BasicWL
Context_WLStub.java:127)
atweblogic.jndi.toolkit.BasicWLContext_WLStub.<init>(BasicWLContext_WLS
tub.java:146)
at java.lang.reflect.Constructor.newInstance(Native Method)
atweblogic.common.internal.ClassTableEntry.newInstance(ClassTableEntry.
java:86)
atweblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjec
tInputStreamBase.java:248)
atweblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObj
ectInputStreamBase.java:202)
atweblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectI
nputStreamBase.java:949)
atweblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjec
tInputStreamBase.java:308)
atweblogic.jndi.toolkit.WLContextStub.readExternal(WLContextStub.java:7
9)
atweblogic.common.internal.WLObjectInputStreamBase.readPublicSerializab
le(WLObjectInputStreamBase.java:269)
atweblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjec
tInputStreamBase.java:254)
atweblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObj
ectInputStreamBase.java:202)
atweblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectI
nputStreamBase.java:949)
atweblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjec
tInputStreamBase.java:308)
atweblogic.rmi.extensions.AbstractInputStream2.readObject(AbstractInput
Stream2.java:25)
atweblogic.jndi.internal.RemoteContextFactoryImpl_WLStub.getContext(Rem
oteContextFactoryImpl_WLStub.java:99)
atweblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInit
ialContextFactoryDelegate.java:316)
atweblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialCon
textFactoryDelegate.java:242)
atweblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java, Compiled Code)
atweblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java:148)
atweblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
extFactory.java:123)
atjavax.naming.spi.NamingManager.getInitialContext(NamingManager.java:7
71)
atjavax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:169
at javax.naming.InitialContext.<init>(InitialContext.java:146)
atexamples.jndi.WebLogicContextExample.main(WebLogicContextExample.java
:107)
Initial context created
Subcontext 'example' created
Bound 'Example String created at 2000/1/3 &#19979;&#21320; 05:48:18' to'example.one' for th
e first time.
Example finished successfully.

Similar Messages

  • Exception in running the sample code for XA

    Hi,
    I'm trying out sample code for XA with Two-phase commit operation - X4.java provided in "Oracle8i JDBC Developer's Guide and Reference"
    http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/a83724/samapp9.htm#1012235
    I'm getting the following exception.
    java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00201: identifier 'JAVA_XA.XA_START' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:822)
         at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:1446)
         at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1371)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1900)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:363)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:407)
         at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:156)
         at orajta.XA4.main(XA4.java:126)
    oracle.jdbc.xa.OracleXAException
         at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:498)
         at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:190)
         at orajta.XA4.main(XA4.java:126)
    What's the reason for the above exception and can someone help me with a possible fix for the same? Your help is greatly appreciated.
    Thanks,
    Haja

    Hi,
    I dont have access to a 8i db, but i ran the sample between two oracle9i db and it ran successfully.
    Regards
    Elango.

  • Where can I get the sample code of gantt chart?

    hi, all
    I want to use gantt chart component.I find this video http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/DVT_Gantt_Chart/ADFDVTGanttChartDemo.html.
    where can I get the sample code in this video?
    I have got the demo <strong>dvt-faces-demo.ear</strong>.but in this demo, the code of events process is too simple.I want more detail code of date change, denpendency change and so on.
    this is my mail [email protected]
    Thanks
    Best Regards
    kenshin
    Edited by: Himura Kenshin on 2010-8-20 上午4:57
    Edited by: Himura Kenshin on 2010-8-20 上午9:03

    Hi Katia,
    Essentially the same sample app which was referenced above (http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/DVT_Gantt_Chart/ADFDVTGanttChartDemo.html). There are many features implemented in this sample which I'll be "reinventing the wheel" with. Its been a bit since I worked with the gantt component as I had to abandon for other development but will be getting back into it here shortly.
    Namely as I remember, I had difficult time getting the gantt to load quickly with large amount of tasks, difficulty getting the selected item when using context menus or buttons defined within the control, and a few other minor issues which could be fixed as I was using the first release of 11g and cannot remember specifics. I'll let you know as I get back into it if I see similar problems.
    For example, if you go to the ADF Demo Site (http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/index.jspx) and click on "Project Gantt Custom Menu and Toolbar - add menus and buttons on the Project Gantt Menu and Toolbar". The buttons work, however if you first select a row in the left and then click the button, you have to click twice for it to work (in my findings the action listener never "fires"). So in my case I want to select a row and then have a custom event for that selected row when I click the button. There were other similar findings I had when I tried to go off of the examples.
    Hope this helps.
    Thank you,
    Kris

  • How can I install the sample code in my pc?

    I have installed Oracle 8.17 on my pc, my operating system is Win2000. But now I cannot install the sample code on OTN. the requirement is winNT, is that the problem? I think Win2000 should be okay. Who can give me some advice, thank you in advance!!!

    Do what Ethmoid mentioned:  publish your site to a folder on your hard drive and open the html file with a text or html editor like the free TextWrangler.   That's the only way to view or edit the code created by iWeb when it publishes the website.
    However, there is a website design application, Flux, that can open a published iWeb site and view the code and webpage simultaneously.
    OT

  • HELP!how to show lines in the sample code 'docsig'

    I want to show my handwritten in the pdf and my code is based on the sample code 'docsig',
    can anyone read the following code, and tell me the reason why it not show the line. Thanks!
    //from the project 'docsig' in the acrobat sdk 9.0 sample code
    CosObj DSHandler::CreateN2XObject( CosDoc cosDoc, const CosObj sigField, const CosObj sigAnnot, const ASFixedRect* const pBBoxRec )
    //Define a stream to draw a line
    char buf [500];
    sprintf(buf,"150 250 m 150 350 l S");
    //Get the stream length
    ASUns32 streamLength = (ASUns32)strlen(buf);
    //Create a CosObj object that represents the stream length
    CosObj LengthEntry = CosNewInteger(cosDoc, false,streamLength);
    //Create a CosObj that represents a stream dictionary
    //and sets its key-value pairs
    CosObj AttrDict = CosNewDict(cosDoc, false, 5);
    char *Length_KStr = "Length";
    CosDictPutKeyString(AttrDict, Length_KStr, LengthEntry);
                    CosObj  cosStm =  CosNewStream64(
                                   cosDoc,                                                  // cos document to use the newly created stream
                                    true ,                                                                      // cos stream is indirect object?
                                   0,                                                    // input stream
                                   0,                                                                                             // start reading from stream position
                                    false ,                                                    // stream is decoded?
                                   AttrDict,                                                // attributes dictionary
                                    CosNewNull(),      // encode params
                                   -1,                                                                                           // decode length
                                    false                                                                       // allowing delayed reading of input stream
        return cosStm;
    Why I just get a blank signature ? It should draw a line, but not showed in the pdf file.

    you need to change the following piece of code
    case 10:   // * pressed
    case 11:   // # pressed
    clearText = true;
    if (first) // first operand
    if(lcdField.getText().length()==0)
    result = 0.0;
    else
    result = Double.parseDouble(lcdField.getText());
    first = false;
    prevOperator = i;
    else //second operand already entered, so calculate total
    switch(prevOperator)
    case 10: //divide button
    result /= Double.parseDouble(lcdField.getText());
    break;
    case 11: //multiply button
    result *= Double.parseDouble(lcdField.getText());
    break;
    lcdField.setText(Double.toString(result));
    if(i==14) //equal button
    first = true;
    else
    prevOperator = i; //save last operator
    break;
    }its gets excuted when you press the * or # buuton

  • How can I get the sample code for crawler plugins?

    Hi,
    One SES document mentioned that there are three sample crawler plugins, which reside in $ORACLE_HOME/search/sample/agent. However, I couldn't find them. Did I miss installing something? Can anyone share with me the sample code?
    Thanks.
    Jun Gao

    The original 10.1.6 sample plugins are no longer distributed in 10.1.8.1 as there were a few problems with them. I would suggest you take a look at
    Simple File Crawler
    http://www.oracle.com/technology/products/oses/pdf/Buidling_Custom_CrawlersJan12_07.doc
    Sourcecode here:
    http://www.oracle.com/technology/products/oses/files/simplefilecrawlerpluginmanager.java
    and here
    http://www.oracle.com/technology/products/oses/files/simplefilecrawlerplugin.java
    And the two crawlers under "Sample Code" on the OTN page:
    http://www.oracle.com/technology/products/oses/index.html

  • Sample code - webdynpro java Handheld.

    Dear all,
    I am new to webdynpro java handheld.
    I need sample code for
    1. how to get a value from context element.
    2. how set a value in a context element.
    3. how to create a context and bind.
    and any sample tutorial available with create,update,retrieval, delete operations.
    I have modeled a data object in DOE with all operation (c,u,r.d).
    present i am trying develop a handheld application for the object.
    I have created query,and costume operations in services component.
    But i am unable use the service component (becuse lake of coding knowledge)
    please help me
    lakshman balanagu

    Hi,
    Please go thorugh the following document for the sample code you had asked for.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40fcc34f-af0e-2e10-41b3-f1f60bcb5a7f?quicklink=index&overridelayout=true
    There are code snippets mentioned here.
    You will get answers for your queries there in the documents.
    Hope this helps.
    Thanks,
    Lakshmi

  • How can i get the source code from java concurrent program in R12

    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    Zulqarnain

    user570667 wrote:
    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    ZulqarnainDid you see old threads for similar topic/discussion? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Source+AND+Code&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to get the source code of Java Concurrent Program?

    Hi,
    How to get the source code of Java Concurrent Program?
    Example
    Programe Name:Format Payment Instructions
    Executable:Format Payment Instructions
    Execution File Name:FDExtractAndFormatting
    Execution File Path:oracle.apps.iby.scheduler
    Thanks in advance,
    Senthil

    Go on Unix box at $JAVA_TOP/oracle/apps/iby/scheduler
    You will get class file FDExtractAndFormatting.
    Decompile it to get source code.
    Thanks, Avaneesh

  • I own acrobat 9 pro and had to re-download the program from a computer issue but when i get the serial code from the adobe website it give me serial code invalid error.  i am using copy and paste to prevent miss typing the code.

    i own acrobat 9 pro and had to re-download the program from a computer issue but when i get the serial code from the adobe website it give me serial code invalid error.  i am using copy and paste to prevent miss typing the code.

    Hi Lawrence,
    Please try the steps mentioned in the KB: https://helpx.adobe.com/creative-suite/kb/error-invalid-serial-number-acrobat.html
    Regards,
    Rave

  • When I ran the bootcamp assistance for software update I get an error that it can't download from the server

    Install Mac OS X lion fine without any issue
    I'm trying to dual boot Lion and Wind 7 on different HD but when I ran the bootcamp assistance for software update I get an error that it can't download from the server.
    I also try without downloading the software and do the installation but it fail. It seem that this bootcamp is giving problem so I revert back to SN leopard and it does the same. Why can't the bootcamp assistance update the software, is it something that I did wrong or my system is not supporting dual booting.
    Here is my spec
    Apple Mac Pro "Quad Core" 2.66
    Identifiers: Mac Pro - MA356LL/A - MacPro1,1* - A1186

    MacPro1,1 has EFI32 and does not support Windows 7 very well, can't boot 64-bit, can't use all your RAM.
    There have always been trouble and issues, ways around those, but a big PITA too.
    Select CD-ROM Boot
    Select CD-ROM Boot Error Apple
    Nothing to do with Lion actually. Other than downloading drivers from Apple servers has been mostly hit or miss, with miss being 90%.
    I have rebuned the DVD (make a new ISO image using Imgburn etc) but now I just install Windows on PC then move the drive to the Mac. A lot easier.
    Without 64-bit you can't use more than 1.9GB RAM. And you need Windows 7 Pro to use both processors.

  • Where Can the Sample Code for That Balloon Game Demoed on WWDC for Swift Be Downloaded

    Hi. I can't find the balloon game sample code used in the WWDC in the Sample Code for iOS or OS X (assuming it's available for download). If it is available for download by Apple, where can it be downloaded?
    Thank you in advance.
    God bless, Cor. 13

    The assets are in the .playground file's file package. Select the .playground file in the Finder, right-click, and choose Show Package Contents to browse the file package. The graphics files are in the Resources folder inside the file package.

  • I'm trying to add a printer to my account, however when I enter the printer code, the website errors

    I'm trying to add a printer to my account for the first time.  However, when I enter the printer code, the website popup screen errors out and doesn't advance to the next function.  Any idea what's going on with this?

    Hi Dav_gigem,
    When did you print the ePrint info page?
    If it is ok with you please print another info page, and as soon as you print it please enter the code in the ePrint center.
    The reason i m asking you to do this is because the code expires within 24hrs.
    Thanks
    Josh.C
    Click on the BLUE KUDOS button on the left to say "Thanks"
    Although I am an HP employee, I am speaking for myself and not for HP.

  • HT2240 Why do I receive an invalid code when I input the correct code?

    I have purchased QuickTime 7 Pro for Windows and when I place the Registration Code in the registration box, I get an Invalid Code message.  I verified that I am running QuickTime 7.7 and I have made sure that I was putting the code in correctly.  What is the problem?

    I have purchased QuickTime 7 Pro for Windows and when I place the Registration Code in the registration box, I get an Invalid Code message.  I verified that I am running QuickTime 7.7 and I have made sure that I was putting the code in correctly.  What is the problem?
    Assuming the key was generated properly, it must
    1) be for the proper platform (Mac keys do not work on PCs and PC keys do not work on Macs and
    2) the name entered must be the sames as the one used to putchase the key to include prefix (Mr., Miss, Dr., etc) and/or suffix (Sr., Jr., DDS, etc.) if used.
    In some rare cases, the key sent in your email may be incomplete or incorrect. In most such cases, the key is not posted to you account in the recent purchases area, so it may be a good idea to compare your emailed key with what may or may not be on file in your account area. If just purchased and not posted to your online account, you may have to contact Apple with your purchase information regarding this matter. Also remember that Apple now only keeps a record of your key for a maximum of 18 months, so it is usually a good idea to back this information up to multiple locations such as your hard drive, USB thumb drive, online storage area, etc.

  • I have photoshop elements 10 recently bought via e bay. When I enter the redemption code, it tells me it is not active. What can I do please?

    As above, when I enter the redemption code on the box containing my copy of photoshop elemets 10, I am informed it is "not active". I have contacted the vendor who says he has not had the problem before but so far has not helped me. How do I get a serial number so that I can download the programme from my CDs? The plastic over the redemption code on the box looked Ok and not touched. Help.  Ian              <Removed by Moderator>

    Redemption Code Help
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

Maybe you are looking for

  • Final Cut Pro to DVD

    Hi folks, I have a stack of MiniDV tapes which I have imported into FCP, these were a series of films made by a hospital. I have joined the footage together in FCP where necessary, giving me a series of films ranging from 40 minutes to an hour and 40

  • ADF Faces: How to position define table navigation in custom skin?

    Hi, I played a bit with custom skins. I'am just wondering how you can choose the location of the navigation button ( << Previous | 1-10 of 32 | Next >> ) For example, if I use the oracle skin, it appears both at the top and at the bottom. In an other

  • Lightroom 2.1 Auto Import problem

    Everything works fine with Auto Import except when an image arrives in LR so does the Import Dialog Window and I have to click it away with every shot. I am in the Library Loup View in the Fit mode. This happens weather the Import preferences has "Sh

  • SOD User Violation report by Business Role

    All, Is there a current method for generating a User violation report that shows all SOD's via the technical role and which Business role that, the Technical role is associated to in GRC? Currently the reports that I am seeing do provide the transact

  • Emulator for HDInsights 3.2?

    Does anyone know when the emulator for HDInsights 3.2 will be released? It would be nice to have HBase and Storm in the emulator. Required in fact for many customer demos.     - SteveN