Java activation framework problem

Hi there,
I'm almost running mad. Here's the story, I have implemented a Textviewer.class to test if i can write a bean to be used as a plugin.
I want an application to be able to lookup the class using the mailcap Commandmap implementation. My TextViewer class implements the Commandobject interface, and when I lookup the CommandClass associated with the current Datahandler it shows:
TextViewer
my mailcap looks like this:
text/plain;; x-java-view=TextViewer
But when I want to instantiate the bean using:
dh[index].getBean(ci);
it doesnot instantiate the bean but it returns null.
Am I leaving something out, should the bean be in a Jar file, in a Package? The bean is in the current package and in the current directory, and the directory is included in the CLASSPATH.
If I try to retrieve the bean using the getCommandObject method in CommandInfo class like this:
try {
Object my_secbean = cmds[verb_choice.getSelectedIndex()].getCommandObject(dh[index],cmds[verb_choice.getSelectedIndex()].getClass().getClassLoader());
} catch (IOException e) {             
System.err.println("Message: " + e.getMessage());
System.exit(-1);
} catch (ClassNotFoundException e) {
System.err.println("Class not found");
System.err.println("Message: " + e.getMessage());
System.exit(-1);
it prints the following statement:
Class not found
Message: TextViewer
So it seems the classloader is unable to find the class, the class resides in the directory where the application is started and the current directory "." is in the CLASSPATH variable.
But where does the classloader look for the class?
cheeerrrrs jan

Hi there,
I'm almost running mad. Here's the story, I have implemented a Textviewer.class to test if i can write a bean to be used as a plugin.
I want an application to be able to lookup the class using the mailcap Commandmap implementation. My TextViewer class implements the Commandobject interface, and when I lookup the CommandClass associated with the current Datahandler it shows:
TextViewer
my mailcap looks like this:
text/plain;; x-java-view=TextViewer
But when I want to instantiate the bean using:
dh[index].getBean(ci);
it doesnot instantiate the bean but it returns null.
Am I leaving something out, should the bean be in a Jar file, in a Package? The bean is in the current package and in the current directory, and the directory is included in the CLASSPATH.
If I try to retrieve the bean using the getCommandObject method in CommandInfo class like this:
try {
Object my_secbean = cmds[verb_choice.getSelectedIndex()].getCommandObject(dh[index],cmds[verb_choice.getSelectedIndex()].getClass().getClassLoader());
} catch (IOException e) {             
System.err.println("Message: " + e.getMessage());
System.exit(-1);
} catch (ClassNotFoundException e) {
System.err.println("Class not found");
System.err.println("Message: " + e.getMessage());
System.exit(-1);
it prints the following statement:
Class not found
Message: TextViewer
So it seems the classloader is unable to find the class, the class resides in the directory where the application is started and the current directory "." is in the CLASSPATH variable.
But where does the classloader look for the class?
cheeerrrrs jan

Similar Messages

  • Support for Java Activation Framework?

    Hi,
    Can anyone quickly tell me which version of JAF (java activation framework)in
    WLS 7.0 ?
    thanks a lot in advance
    manoj

    Hello Kumar,
    Yes, these are part of HTTP 1.1 extensions. In case this is not currently supported, would really appreciate if you could let me know if it is planned in the future releases.
    Regards,
    Prasad Shetty
    Kumar Allamraju <[email protected]> wrote in message news:[email protected]..
    Are these extensions part of HTTP 1.1?
    Prasad Shetty wrote:
    Hi,
    I need to use some headers defined in HTTP Extension Framework
    (RFC 2274). Does Weblogic provide support for this extension
    framework ? If so which version of Weblogic should i be using ?
    Thanks & Regards,
    Prasad Shetty
    [att1.html]

  • Java/Active Directory problem

    I have a strange problem. We have an application that we login to through a website. The application requires Java 1.42_9 to run properly. These workstations came from Dell with java 1.50_6 preloaded which I removed infavor of the required 1,42_9. Everything works normally when a user logs into the the workstation (WinXP SP2) as the local adminstrator. The problem arises when a user logs into the machine with an Active Directory account. We trying to run the website to login to our application and all we get is the Red X in the upper left hand corner of the screen. There is nothing in the Java console, it seems like java does not even attempt to start. I am not sure what Active Directory has to do with this but as long as we log in as a local admin everything works great. If I load Java 1.50_6 back on the workstation it works but it takes over two minutes for Java to load which is unacceptable. I have also tried 1.50_7 but it too take too long to load.
    Sorry for the long winded post, but Im hoping someone has suggestions on why logging into Active directory causes 1.42_9 to fail.

    Your problem is your use of these two combinations
    constrains.setSearchScope(SearchControls.SUBTREE_SCOPE);
    ctx.search("", "(objectclass=*)", constrains); Many LDAP servers, including Active Directory, do not permit subtree searches from the root.

  • Where to download Activation Framework

    Hi,
    Sorry for a really dumb question, maybe I am blind, but I can't find the download for the JAF (Java Activation Framework), every search leads to http://java.sun.com/javase/technologies/desktop/javabeans/index.jsp, but I can't find a download option for it there.
    Is this part of some other package that I need to download?
    Thanks... Dominik.

    JavaBeans Activation Framework 1.1.1 release is here :
    http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=jaf-1.1.1-fcs-oth-JPR&SiteId=JSC&TransactionId=noreg
    or same spec GNU JAF :
    http://www.gnu.org/software/classpathx/jaf/jaf.html#download
    regards,
    http://www.jservlet.com/

  • Problem calling a EJB Java Client from Java Activity Agent

    Hi,
    We have a wrapper java class that calls to an EJB through a JNDI lookup. The wrapper class is called from a workflow. The problem is that the call fail with the following message error:
    Error : getRemoteHome Lugar: ServiceLocator NamingException Mensaje Error: Receive timed out
    Mon Jan 09 15:32:13 EST 2006 Enqueuing VIC/97513 com.tallion.tax.workflow.assessment.Update
    F_FN_ERROR (MODULE=com.tallion.tax.workflow.assessment.Update) (ITEMTYPE=VIC) (ITEMKEY=97513) (ACTID=10617) (FUNCMODE=RUN) (ERRMESSAGE=getRemoteHome Lugar: ServiceLocator NamingException Mensaje Erro
    The wrapper class has in their classpath a jndi.properties as follows:
    java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
    java.naming.provider.url=69.0.137.120:1099
    java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
    The call just works fine when we restart the Java Activity Agent and then, after a while it fails again with the same error.
    Any ideas/workaround?
    Thanks.

    I have a situation that is a bit similar. I have successfully used beans for storing methods used in JSPs and used by other methods in the same class as was suggested above. Now I would like to break some methods into another (utility) class since they are lower level and can be used by lots of things. They are for database operations (given a String query and String dbname, it queries and returns ResultSet for example). I want to have them in a separate class for reusability and OOP.
    I am having problems calling those public static methods in the public class from my bean that communicates with the JSP. I can't compile the class that calls the method in the database ops class. I get an error like :
    loginHelper.java:45: cannot find symbol
    symbol : variable sqlHelper
    location: class dbHelperBean.loginHelper
    and when I include the package name in the call I get
    loginHelper.java:45: cannot find symbol
    symbol : class sqlHelper
    location: package dbHelperBean
    That's strange since the package of both classes is dbHelperBean and the class is indeed called sqlHelper. I tried to compile it in the same directory as sqlHelper as well. What am I doing wrong?
    Thanks for any help.

  • Java Mail and Java Activator

    I have problems to deploy the API's Java Mail and Java Activator
    into Oracle 8.1.5 on a NT4 server.
    When deploying the classes in the API's that has names beginning
    with "com/sun/java..." everything works fine, but when trying to
    deploy the classes starting with "javax..." I get error:
    "ORA-01031 Unsufficient privileges."
    The error occurs during the creation of the classes.
    Does someone know why?
    I have tried to unjar the jar-files, and rejar them again with
    no compression, but this does not help.
    /Lars-Eric
    null

    Hi Mark
    I wish to send email messages from stored procedure. I looked at
    the "Java Stored Procedures Developer's Guide" but I am still
    confused. I wrote a Java program (importing "javax.mail" package)
    and then I called "loadjava": it did not work
    I read this reply, but I do not understand exactly what you mean.
    I am quite new to Oracle, and there are "tons" of things which I
    do not understand.
    Would you please explain me what I have to do to send email from
    a stored procedure?
    Thanks in advance, Carlo
    email: [email protected]
    PS: Sorry for my bad English
    mark tomlinson (guest) wrote:
    : In addition to loading JavaMail as sys in the database. You
    also
    : need to load the "invocation framework" that JavaMail depends
    on
    : (there is a link on the Javasoft JavaMail site to download the
    : code).
    : When you load java code as SYS you can pass the -s and -g
    public
    : options to loadjava to make sure that public synonyms are
    created
    : and that the loaded classes are runnable by all schemas:
    null

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Java blocking related problem

    This question is related to other questions in this discussion thread, but about a different aspect.
    The program on my QNAP NAS uses Java to bring up the dialog for the selection of files to upload. Each time Java is updated this code has the problem that it doesn't find Java activated. Some other programs seem to do this themselves, but alas the QNAP code does not. A workaround is usually not to use Safari but Firefox. However, today even that didn't do the trick. Only after accessing a site whose code does activate Java itself, is the QNAP code satisfied. As I have no control over QNAP's code (and content with the current version of its system) I would like to know if there is another way to do the Java activation. Once done, I guess it will stay that way until the next Java update. Perhaps something in Terminal? I am not afraid to use that.
    By the way: I have the Safari Preferences Security tab checked on "Enable JavaScript" (change and change back doesn't solve the problem, not even after quit and reopen). In the Internet plug-ins tab checkbox "Allow Java" under the button "Manage Website Settings ..." the website of the NAS is listed as having full allowances. More settings relevant to the problem I cannot find. Using the latest MacOSX.
    A side note: In "Manage Website Settings ... there are four possibilities, under which "Allow Always". The strange thing here is that in contrast always an alert comes up, asking if I want to block or not. But that is the behaviour I should expect instead from selecting "Ask before Using". Is there an explanation for this? Allthough it is not so much a hindrance, I find it strange behaviour given the label.
    Thanks in advance for your contributions on the solution of this problem.

    You could try installing the Phony extension and set it to Desktop Firefox. If that allows you to connect to the server then your company's server is doing a bad job of detecting Firefox browsers.
    https://addons.mozilla.org/en-US/android/addon/phony/
    If that does not work then I don't know of anything else we can do to assist as this is a privately controlled server.

  • Java technology/framework suggestions required for solution.

    Hi,
    I'm a C/PRO*C developer (for the past 12 years) and have been asked to do some Java ( which I haven't touched for 13 years).
    I would like you input on the 'correct' solution (kind of like an architectural overview) of the technologies I should be looking at.
    There are two parts to this.
    I need to write a web browser/Application that picks up a file locally on windows PC and reads the contents of the file to populate some url parameters which go to a specific web sevice via HTTPS.
    I then need a web service or some kind of servlet (I guess) that on receipt of the request by the client then stores (to a database) the request for auditing and then creates a soap message (using the data receieved) to an external third party( WSDL provided by thirdpparty). Once the thirdparty responds the web server then generates a web page for the client which includes a number of options and details retrieved from the thirdparty are displayed and on the client selecting them the result is sent to the server and the selected option is stored.
    Part of this must be that the server must be capable of running as a number of instances. It must be highly secure.
    What java technologies/frameworks should be looked out? Is my very rough design fundamentally floored?
    Thanks in advance.
    OFN

    OldFashionedNewbie wrote:
    So should I use servlets as opposed to JSP? or JCF?Servlets are not opposed to JSP. (JCF? Do you mean JSF?) You can and would use both Servlets and JSP, however, I have grown to believe that JSPs are awful and you should use Velocity instead. From what I've heard of JSF, I'd avoid that too.
    Essentially then create a servlet that accepts HTTP request and manipulates a call to the thirdparty, audits data to database, and returns a page back to client which then accepts the option.The server accepts the HTTP request and deals with that lower-level stuff for you, then it invokes your servlet.
    The servlet shouldn't call the third party, etc.; it should invoke other code (that you'd write) to do all that. You need a layer of abstraction between your business logic and the web tier. Among other things this will make it much easier to test.
    If I were wanting to run this as a in multiple instances then I create a connection pool to the database. But could multiple app instances be able to use one network connection to the ThirdParty?I suppose they could but it seems like more trouble than it's worth and a whole layer of infrastructure that I wouldn't bother with unless (a) you've demonstrated that it's a problem during profiling, and (b) you find that there's some preferably open-source library that handles this for you.

  • Oracle Workflow Java Activity Agent not starting up

    Hi,
    I am trying to start the Java Activity agent of Oracle workflow.
    As specified in the installation and setup guid I am running the following script (for NT):
    wfjvlsnr user/password@connectString
    The activiy agent does start up but then I get a NullPointerException in the main thread of the Java Activity Agent class.
    Appreciate you help.
    thanks.
    Here is the dump.
    E:\Ora9idb\wf\admin>rem ******************************************************
    E:\Ora9idb\wf\admin>rem $Header: wfjvlsnr.bat 26.5 2001/07/02 09:13:06 smayze
    ship $
    E:\Ora9idb\wf\admin>rem USAGE:
    E:\Ora9idb\wf\admin>rem 1) Workflow Schema User/Password@Database
    E:\Ora9idb\wf\admin>rem 2> "Workflow Schema User Password Database [protocol
    [charset]
    E:\Ora9idb\wf\admin>rem To disable output, use the jrew command instead of jre
    E:\Ora9idb\wf\admin>rem ******************************************************
    E:\Ora9idb\wf\admin>set WF_UN=workflow/workflow@workflow
    E:\Ora9idb\wf\admin>set WF_CHARSET=
    E:\Ora9idb\wf\admin>IF "" NEQ "" set WF_CHARSET=-DCHARSET=
    E:\Ora9idb\wf\admin>set WF_CLASSPATH=;e:\Ora9idb\wf\java;C:\PROGRA~1\Oracle\jr
    1.1.8\lib\rt.jar;e:\Ora9idb\wf\java;e:\Ora9idb\jlib\wfjava.jar;e:\Ora9idb\wf\x
    \java\lib\xmlparserv2.jar;e:\Ora9idb\jlib\wfapi.jar;e:\Ora9idb\jdbc\lib\classe
    11.zip;e:\Ora9idb\jlib\share.jar;e:\Ora9idb\jlib\ewt3.jar;e:\Ora9idb\jlib\ewt3
    ls.jar;e:\Ora9idb\jlib\swingall-1_1_1.jar;
    E:\Ora9idb\wf\admin>"C:\PROGRA~1\Oracle\jre\1.1.8\bin\jre" -classpath ";e:\Ora
    db\wf\java;C:\PROGRA~1\Oracle\jre\1.1.8\lib\rt.jar;e:\Ora9idb\wf\java;e:\Ora9i
    \jlib\wfjava.jar;e:\Ora9idb\wf\xml\java\lib\xmlparserv2.jar;e:\Ora9idb\jlib\wf
    i.jar;e:\Ora9idb\jdbc\lib\classes111.zip;e:\Ora9idb\jlib\share.jar;e:\Ora9idb\
    ib\ewt3.jar;e:\Ora9idb\jlib\ewt3-nls.jar;e:\Ora9idb\jlib\swingall-1_1_1.jar;"
    nojit oracle.apps.fnd.wf.WFFALsnr workflow/workflow@workflow
    Oracle Workflow 2.6.0 JAVA Function Activity Agent
    Connected to workflow@workflow with character set UTF8
    Listening...
    Wed Aug 28 12:14:11 GMT+05:30 2002 Executing TEST_REQ/9996 test.SelectApprover
    PUT APPROVER_NAME=CDOUGLAS
    Wed Aug 28 12:14:11 GMT+05:30 2002 Enqueuing TEST_REQ/9996 test.SelectApprover
    Wed Aug 28 12:14:11 GMT+05:30 2002 Executing TEST_REQ/9997 test.SelectApprover
    PUT APPROVER_NAME=CDOUGLAS
    Wed Aug 28 12:14:11 GMT+05:30 2002 Enqueuing TEST_REQ/9997 test.SelectApprover
    Wed Aug 28 12:14:11 GMT+05:30 2002 Executing TEST_REQ/9998 test.SelectApprover
    PUT APPROVER_NAME=CDOUGLAS
    Wed Aug 28 12:14:11 GMT+05:30 2002 Enqueuing TEST_REQ/9998 test.SelectApprover
    Wed Aug 28 12:14:11 GMT+05:30 2002 Executing TEST_REQ/9999 test.SelectApprover
    PUT APPROVER_NAME=CDOUGLAS
    Wed Aug 28 12:14:11 GMT+05:30 2002 Enqueuing TEST_REQ/9999 test.SelectApprover
    Wed Aug 28 12:14:11 GMT+05:30 2002 Executing TEST_REQ/99910 test.SelectApprove
    PUT APPROVER_NAME=CDOUGLAS
    Wed Aug 28 12:14:12 GMT+05:30 2002 Enqueuing TEST_REQ/99910 test.SelectApprove
    T
    Wed Aug 28 12:14:12 GMT+05:30 2002 Executing WFEVDEME/PO3435 oracle.apps.fnd.w
    XMLGetTagValue
    GET ATTR=REQUESTOR
    GET EVENT=EVENTMESSAGE
    GET TAG=/ORDER/REQUESTOR
    PUT REQUESTOR=BLEWIS
    Wed Aug 28 12:14:12 GMT+05:30 2002 Enqueuing WFEVDEME/PO3435 oracle.apps.fnd.w
    XMLGetTagValue
    Wed Aug 28 12:14:12 GMT+05:30 2002 Executing TEAC_IT1/SYSADMIN JayTestFunction
    PUT TEST_RESULT=JAVA
    Wed Aug 28 12:14:12 GMT+05:30 2002 Enqueuing TEAC_IT1/SYSADMIN JayTestFunction
    Wed Aug 28 12:14:12 GMT+05:30 2002 Executing TEST_REQ/9996 test.ApproveRequisi
    on
    PUT TEST_ATTRIBUTE=This value was set in the Approve Requisition Activity
    Wed Aug 28 12:14:12 GMT+05:30 2002 Enqueuing TEST_REQ/9996 test.ApproveRequisi
    on
    Exception in thread "main" java.lang.NullPointerException:
    at oracle.apps.fnd.wf.WFFALsnr.listen(WFFALsnr.java)
    at oracle.apps.fnd.wf.WFFALsnr.main(WFFALsnr.java)
    E:\Ora9idb\wf\admin>

    Hi,
    I tried to run the same without entering password,but still i am getting error.
    The error description is:
    Oracle Workflow 2.6.3 JAVA Function Activity Agent
    Please Enter Database Password :
    ORA-06401: NETCMN: invalid driver designator
    Unable to connect to nn0734.nucleussoftware.com:1521:asdb
    Accepted arguments:
    java <program> <user> <conStr> [oci8]
    java <program> <user> <conStr> thin
    Where <conStr> is in the form of <host>:<port>:<sid> for thin
    and DB Service name for oci8
    Please Help. Is there any problem with my tnsnames.ora or something else.
    Thanx in advance,
    Sarab

  • Activity Box problem

    I am working on an Activity Box problem. I got some errors, Please Help and Thanks in advance!!!
    My program likes:
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    /*ActivityBox Applet */
        public class ActivityBox extends Applet {
    //Declarations
        String panelString = new String("News from the field.");
        String southString = new String("South Button");
        String infoString = new String("Type here.");
        String kbString = new String("East ");
        MousePanel cp = new MousePanel(100,100,panelString);
        MousePanel ep = new MousePanel(100,100, kbString);
        MousePanel np = new MousePanel(50,50);
        MousePanel sp = new MousePanel(100,100);
        MousePanel wp = new MousePanel(100,100,"West - Type here");
        TextField myText = new TextField(infoString);
        Button southButton = new colorChanger(southString);
        colorChanger Blues = new colorChanger(Color.blue);
        buttonListener Zap = new buttonListener(cp, myText, ep);
        kbListener Tap = new kbListener(ep, kbString);
    //init
        public void init() {
         setLayout(new BorderLayout(5,5));
             np.addMouseListener(Blues);
         add("North",np);
             np.add(myText);
         np.setBackground(Color.Cyan);
             sp.addMouseListener(Blues);
             southButton.addActionListener(Zap);
         sp.add(southButton);
         add("South", sp);
         sp.setBackground(Color.Cyan);
             ep.addMouseListener(Blues);
         add("East",ep);
         ep.setBackground(Color.Cyan);
             wp.addMouseListener(Blues);
             wp.addKeyListener(Tap);
            add("West",wp);
         wp.setBackground(Color.Cyan);
             cp.addMouseListener(Blues);
         add("Center",cp);
         cp.setBackground(Color.Cyan);
    /* MousePanel */
    class MousePanel extends Panel {
        public String nameTag = "";
        Dimension myDimension = new Dimension(15,15);
    //Constructor 1 - no name tag
        MousePanel(int h, int w) {
         myDimension.height = h;
         myDimension.width = w;
    //Constructor2 - with name tag
        MousePanel(int h, int w, String nt) {
         myDimension.height = h;
         myDimension.width = w;
         nameTag = nt;
    //paint
        public void paint(Graphics g) {
         g.drawString(nameTag,5,10);
    //change text
        public void changeText(String s){
         nameTag = s;
         repaint();
        public Dimension getPreferredSize(){
         retrun myDimension;
    //getMinimumSize
        public Dimension getMinimumSize(){
         return myDimension;
    class colorChanger implements MouseListener {
        private Color oldColor = new Color(0,0,0);
        private Color changeColor = new Color(0,0,0);
        //constructor
        colorChanger(Color it){
         changeColor = it;
        //Methods required to implement MouseListener interface
        public void mouseEntered(MouseEvent e) {
         oldColor = e.getComponent().getBackground();
         e.getComponent().requestFocus();
        public void mouseExited(MouseEvent e) {
         e.getComponent().setBackground(oldColor);
         e.getComponent().transferFocus();
        public void mousePressed(MouseEvent e) {
        public void mouseReleased(MouseEvent e) {
        public void mouseClicked(MouseEvent e) {
    class buttonListener implements ActionListener {
        private MousePanel it1 = new MousePanel(0,0,"");
        private MousePanel it2 = new MousePanel(0,0,"");
        private TextField from = new TextField("");
        private String words = new String("");
        //constructor
        buttonListener(MousePanel target1, TextField source, MousePanel target2){
         it1 = target1;
         from = source;
         it2 = target2;
        //Methods required to implement ActionLIstener interface
        public void actionPerformed(ActionEvent e) {
         words = from.getText();
         it1.changeText(words);
         from.setText("");
         it2.changeText("");
    }//end buttonListener
    class kbListener implements KeyListener {
        private MousePanel it = new MousePanel(0,0,"");
        private String putString = new String("");
        //constructor
        kbListener(MousePanel target, String display){
            it = target;
         putString = display;
        //Methods required to implement KeyListener interface
        public void keyPressed(KeyEvent e) {
        public void keyReleased(KeyEvent e){
        public void keyTyped(KeyEvent e){
         putString = putString + e.getKeyChar();
         it.changeText(putString);
    }When I compiled it, I got:
    ActivityBox.java:18: cannot resolve symbol
    symbol  : constructor colorChanger (java.lang.String)
    location: class colorChanger
        Button southButton = new colorChanger(southString);
                             ^
    ActivityBox.java:24: cannot resolve symbol
    symbol  : constructor BorderLayout (int,int)
    location: class BorderLayout
            setLayout(new BorderLayout(5,5));
                      ^
    ActivityBox.java:28: cannot resolve symbol
    symbol  : variable Cyan
    location: class java.awt.Color
            np.setBackground(Color.Cyan);
                                  ^
    ActivityBox.java:33: cannot resolve symbol
    symbol  : variable Cyan
    location: class java.awt.Color
            sp.setBackground(Color.Cyan);
                                  ^
    ActivityBox.java:36: cannot resolve symbol
    symbol  : variable Cyan
    location: class java.awt.Color
            ep.setBackground(Color.Cyan);
                                  ^
    ActivityBox.java:40: cannot resolve symbol
    symbol  : variable Cyan
    location: class java.awt.Color
            wp.setBackground(Color.Cyan);
                                  ^
    ActivityBox.java:43: cannot resolve symbol
    symbol  : variable Cyan
    location: class java.awt.Color
            cp.setBackground(Color.Cyan);
                                  ^
    ActivityBox.java:72: cannot resolve symbol
    symbol  : class retrun
    location: class MousePanel
            retrun myDimension;
            ^
    .\BorderLayout.java:8: setLayout(java.awt.LayoutManager) in java.awt.Container c
    annot be applied to (BorderLayout)
            p.setLayout(new BorderLayout ());
             ^
    .\BorderLayout.java:9: cannot resolve symbol
    symbol  : variable NORTH
    location: class BorderLayout
            p.add("North", BorderLayout.NORTH);
                                       ^
    .\BorderLayout.java:10: cannot resolve symbol
    symbol  : variable SOUTH
    location: class BorderLayout
            p.add("SOUTH", BorderLayout.SOUTH);
                                       ^
    .\BorderLayout.java:11: cannot resolve symbol
    symbol  : variable EAST
    location: class BorderLayout
            p.add("EAST", BorderLayout.EAST);
                                      ^
    .\BorderLayout.java:12: cannot resolve symbol
    symbol  : variable WEST
    location: class BorderLayout
            p.add("WEST", BorderLayout.WEST);
                                      ^
    .\BorderLayout.java:13: cannot resolve symbol
    symbol  : variable CENTER
    location: class BorderLayout
            p.add("CENTER", BorderLayout.CENTER);
                                        ^
    14 errors

    Again compile ur code .... I don't seem to get all those errors

  • Java Media Framework fails on Windows 7

    I wrote a Java program to manage and play my MP3 files. This program works fine on Windows XT and Windows Vista but does not work on the new laptop I just purchased with Windows 7. The Java Media Framework cannot play my MP3 files running on Windows 7. Does anyone know of a fix? I saw some very old forum posts where the poster asked if anyone knew how to obtain the source code for the Java Media Framework. If I could get my hands on the source, I would debug the problem and provide the fix to the Java community. So does anyone know of a fix to Windows 7 problems or know how to get the Java Media Framework source code????

    I believe you are right. I didn't know how much native support the JMF code requires but that must be the problem because it doesn't work on Windows 7. I think I would get some other error if the native libraries needed by JMF were not available on Windows 7. Appears that the native code is invoked but fails for some reason resulting in the JMF ControllerEventError that I get when attempting to play my MP3 files. I always had an error on a very few MP3 files that I have downloaded using LimeWire but the songs were playable by Windows Media. So whatever native support JMF uses, it is not the same as Windows Media or JMF is just not using the native MP3 support correctly. I guess I will just have to keep my Music Library on one of my older computers and not use my Java program on Windows 7 to play my MP3 files. Do you have any idea if the programmers who wrote the JMF code are still maintaining it? Perhaps they would be interested in fixing the Windows 7 problem in a new release??

  • Re   Java Stored Procedure Problem

    Ben
    There appear to be some problem with the forum. It doesn't want to show my response to your post with the subject "Java Stored Procedure Problem". See the answer to this thread for an example of how to do this...
    Is there a SAX parser with PL/SQL??

    Ben
    There appear to be some problem with the forum. It doesn't want to show my response to your post with the subject "Java Stored Procedure Problem". See the answer to this thread for an example of how to do this...
    Is there a SAX parser with PL/SQL??

  • Unable to call Java class method within Embedding Java Activity in BPEL

    Hi ,
    I have written Java Class named 'Class3' .
    When I am creating and trying to call these classes whithin Embedding Java Activity , compile time error is coming. Compiler is not finding class . Error message is like this one.
    uildfile: C:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml
    scac:
    [scac] Validating composite : 'C:\JDeveloper\mywork\Application7\Embedded15\composite.xml'
    [scac] C:\JDeveloper\mywork\Application7\Embedded15\SCA-INF\bpel\BPELEmbedded15\src\orabpel\bpelembedded15\ExecLetBxExe0.java:73: cannot find symbol
    [scac] symbol : class Class3
    [scac] location: class orabpel.bpelembedded15.ExecLetBxExe0
    [scac] C:\JDeveloper\mywork\Application7\Embedded15\SCA-INF\bpel\BPELEmbedded15\src\orabpel\bpelembedded15\ExecLetBxExe0.java:73: cannot find symbol
    [scac] symbol : class Class3
    [scac] location: class orabpel.bpelembedded15.ExecLetBxExe0
    [scac] Note: C:\JDeveloper\mywork\Application7\Embedded15\SCA-INF\bpel\BPELEmbedded15\src\orabpel\bpelembedded15\BPEL_BIN.java uses unchecked or unsafe operations.
    [scac] Note: Recompile with -Xlint:unchecked for details.
    [scac] FATAL_ERROR: location {ns:composite/ns:component[@name='BPELEmbedded15']}(20,36): Failed to compile bpel generated classes.
    [scac] failure to compile the generated BPEL classes for BPEL process "BPELEmbedded15" of composite "default/Embedded15!1.0"
    [scac] The class path setting is incorrect.
    [scac] Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    [scac]
    BUILD FAILED
    C:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml:264: Java returned: 1 Check log file : C:\JDeveloper\mywork\Application7\Embedded15\SCA-INF\classes\scac.log for errors
    Total time: 8 seconds
    I am creating Class3 directly in Application Resources folder indide Project Folder in Jdeveloper without creating any package. Code of the class is .......
    public class Class3 {
    public Class3() {
    super();
    public String getValue(){
    return "BBBBBBB";
    Can any one help?
    Regards
    Yogendra Rishishwar
    9867927087

    Hi ,
    In your java project frm jdev..right click and choose general and then choose deployment profiles and then choose Jar ..and then give some appropriate name(abc) and then click ok.
    Then under resources file u get a abc.deploy file right click and say deploy to jar ..u will find the jar in that director.Now include this jar in your prjct libraries.
    have a look at the link http://niallcblogs.blogspot.com/search/label/embedded%20Java

  • "How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7"

    I'm in the process of publishing the following note (134280.1), titled "How to Resolve ORA-29532 Java 2
    Permission Problems in RDBMS 8.1.6 and 8.1.7".
    It will be accessible from Oracle Support's "Metalink" site.
    "How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7".
    Problem Description
    Periodically an application running in the Enterprise Java Engine
    (EJE) formerly known as the "Oracle 8i JVM", "the JSERVER component", or
    the "Aurora JVM" will fail with a "java 2" permissions error having the
    following format :
    Note : Message shown below have been reformatted for easier readability.
    java.sql.SQLException: ORA-29532: Java call terminated by uncaught Java exception:
    usually followed by a detailed error message similar to one of the following
    messages :
    Example # 1
    java.security.AccessControlException: the Permission
    (java.net.SocketPermission hostname resolve)
    has not been granted by dbms_java.grant_permission to
    SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
    Example # 2
    java.security.AccessControlException: the Permission
    (java.util.PropertyPermission * read,write)
    has not been granted by dbms_java.grant_permission to
    SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
    Example # 3
    java.security.AccessControlException: the Permission
    (java.io.FilePermission \matt1.gif read)
    has not been granted by dbms_java.grant_permission to
    SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
    Explanation
    The java 2 permission stated in line # 2 of each of the above "Examples"
    has not been granted to the user specified in line 4 of the above "Examples".
    Solution Description
    The methodology to solve this issue is identical for all java 2 permissions
    cases.
    1) Format a call "dbms_java.grant_permission" procedure as described below.
    2) Logon as SYS or SYSTEM
    3) Issue the TWO commands shown below
    4) Logoff as SYS or SYSTEM
    5) Retry your application
    For Example # 1
    1) Logon as SYS or SYSTEM
    2) Issue the following commands :
    a) call dbms_java.grant_permission('SCOTT',
    'java.net.SocketPermission',
    'hostname',
    'resolve');
    b) commit;
    Note: Commit is mandatory !!
    3) Logoff as SYS or SYSTEM
    4) Retry your application
    For Example # 2
    1) Logon as SYS or SYSTEM
    2) Issue the following commands :
    a) call dbms_java.grant_permission('SCOTT',
    'java.util.PropertyPermission',
    'read,write');
    b) commit;
    Note: Commit is mandatory !!
    3) Logoff as SYS or SYSTEM
    4) Retry your application
    For Example # 3
    1) Logon as SYS or SYSTEM
    2) Issue the following commands :
    a) call dbms_java.grant_permission('SCOTT',
    'java.io.FilePermission',
    '\matt1.gif',
    'read');
    b) commit;
    Note: Commit is mandatory !!
    3) Logoff as SYS or SYSTEM
    4) Retry your application
    References
    For more details on java 2 permissions and security within the EJE, review
    Chapter 5, in the Java Developer's Guide. entitled,
    "Security For Oracle8i Java Applications"
    The RDBMS 8.1.7 version can be found at :
    http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/index.htm

    Hi, Don,
    I solved the problem of security exception I mentioned at java procedure topic as following:
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.SecurityException
    I tried to use your solution as following:
    call dbms_java.grant_permission('SDE', 'java.net.SocketPermission', 'ORCL.COHPA.UCF.EDU','resolve');
    but SQL*plus gave me a error message:
    invalid collumn.
    What's the problem?
    However, I call a grant command as following:
    SQL> grant JAVASYSPRIV to sde;
    and then that exception is gone. What's the difference between dbms_java.grant_permission and grant command?
    Thanks
    Bing
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by don -- oracle support:
    I'm in the process of publishing the following note (134280.1), titled "How to Resolve ORA-29532 Java 2
    Permission Problems in RDBMS 8.1.6 and 8.1.7".
    It will be accessible from Oracle Support's "Metalink" site.
    "How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7".
    Problem Description
    <HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • A list of supported Android Phones for Cisco Jabber Client.

    Hi there, I opened a discussion before about the Cisco Jabber Client for Android phones. This product from Cisco is only official support bij a several mobile Android telephones. (very poor) As everyone knows is that the mobile market is continious i

  • Sudden increase in Acrobat X quits working altogether

    In the past 2 weeks I have had 5 PCs with Acrobat X installed just quit working.By quit working I mean the user calls and says Acrobat wont do anything.  Click the desktop icon, Acrobat wont launch.  Try to pritn to PDF, nothing happens.  Uninstall /

  • RSS Feeds and older Safari

    I was wondering if you can get RSS feeds on older versions of Safari. I am running 1.3 right now. If this is not possible, than is their a way to load Safari 2.0 onto Mac OSX 10.3.9? Thanks for your help. GH

  • My iTunes won't open..no matter what!

    I've had iTunes for forever, and one day iTunes just wouldn't open. I've tried everything!!! Still nothing will open .. Reinstalled Restarted my computer Deleting all iTunes files and resinstalling Tried to use an older version of iTunes Tryed it all

  • Regarding removing all previous versions of the Mocrosoft Server Speech Platform Runtime

    While I was trying to install Kinect SDK Ver. 1.8, I was asked to remove all previous versions of the Mocrosoft Server Speech Platform Runtime.  Regarding this, I tried to find the program but I couldn't.  I am working on Windows Vista.  Any comments