JNDI NIS object access problem: urgent help

Hi all,
After long fight, i'm now able to connect to my NIS server on my network. the initial context factory is 'com.sun.jndi.nis.NISCtxFactory' and provider url are given and i obtain namingennumeration of items in the NIS directory.
purpose of my project:
using ypcat command we can view the services,passwd,host... objects in unix.
my project requirement is that i shd open this 'services' object in java (using JNDI probably) and shd access its content.
i'm able to obtain the object and the type of this object is 'NISCtxServices' defined in 'com.sun.jndi.nis.NISCtxFactory' package, but all the classes and methods except some are not public and so im not able to use almost all the methods in this class 'NISCtxServices' .
Can any one help me in accessing the information inside this object.
Thanks in advance! and i'm waiting!

It's because JFrame does not have a public progessbar variable, only your subclass has that.
//change this
JFrame frame = new ProgressBarDemo();
//to this
ProgressBarDemo frame = new ProgressBarDemo();

Similar Messages

  • JNDI NIS object access problem

    JNDI NIS object access problem:
    Hi all,
    After long fight, i'm now able to connect to my NIS server on my network. the initial context factory is 'com.sun.jndi.nis.NISCtxFactory' and provider url are given and i obtain namingennumeration of items in the NIS directory.
    purpose of my project:
    using ypcat command we can view the services,passwd,host... objects in unix.
    my project requirement is that i shd open this 'services' object in java (using JNDI probably) and shd access its content.
    i'm able to obtain the object and the type of this object is 'NISCtxServices' defined in 'com.sun.jndi.nis.NISCtxFactory' package, but all the classes and methods except some are not public and so im not able to use almost all the methods in this class 'NISCtxServices' .
    Can any one help me in accessing the information inside this object.
    Thanks in advance! and i'm waiting!

    It's because JFrame does not have a public progessbar variable, only your subclass has that.
    //change this
    JFrame frame = new ProgressBarDemo();
    //to this
    ProgressBarDemo frame = new ProgressBarDemo();

  • N95 8gb One access problem:( plz help

    Hello there
    I got N95 8gb , i tried using the one touch access problem using both bluetooth and usb cable. Both didn't work.
    I also tried the older pc suite which i used to use with my N80, but it ididn't work.(it worked perfectly when i had N80) .
    Any suggestions?

    What version of PC SUITE are you using? Upgrade to the last one 6.86.9.0
    Información sobre Symbian / NSERIES en Español en http://symbianespanol.wordpress.com

  • D:\oracle\product\10.2.0-Console access problem-please help urgent.

    I have installed D:\oracle\product\10.2.0, each times i create a db on it the console work fine, but when I close my computer then restarts it I can get in to the console again.
    some people said that one shouldn't be on net while installing it, so I wasn't on net.
    Then I tried to start the service as windows service it can not start.
    where can I look in the oracle config ? to deal with the problem ?
    Thanks.

    Is your computer configured with DHCP? If so, did you configure the loopback adapter?
    http://download-east.oracle.com/docs/cd/B19306_01/install.102/b14316/reqs.htm#BABGCEAI
    Logs are written to ORACLE_HOME/<machine_name>.<dbsid>/sysman/log

  • Recall for my problem urgent help needed

    Hi friends,
    I am a new DB administrator and I have faced a problem in our database.
    Here i will explain our architecture and i will state the problem.
    In my org. we have database server responsible for keeping the DB itself. Another server which is the main server is responible to control the access to the network and making and storing DB backups using a third party software (Net Backup Software). The backups are kept in tapes accessed by main server using tapes robot.
    Our backup policies is that the software makes full backup every week and a incremental dialy backups of the DB. The retention of each backup is two weeks. All servers have been shutted down during vacations.
    The problem is that when we came from two weeks vacation, users found that the DB is in old state and we lost the most recent valid state. I tried all my best since month ago to do recovery. I decided the point of time to restore and I also use the SCNs but I could'nt reach a solution. I used Net backup, Rman, EM but without a result.
    When i check NetBackup console I find a backup available since 28 of July 2010. Actually the changes are made after this date and now the DB state is older thatn this date. the question is: WHER HAVE THE CONSEQUENT CHANGES GONE? around one mounth of work has been lost..
    the oracle shows me the following message:
    The RMAN script for the recovey is:
    Run {
    allocate channel t1 type 'sbt_tape';
    set until time to_date('28-Jul-2010 00:00:00', 'DD-MON-YYYY HH24:MI:SS');;
    restore database;
    recover database;
    release channel t1;
    RMAN-00571: ========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ============
    RMAN-00571: ========================================================
    RMAN-03002: failure of restore command at 21/09/2010 11:01:26
    RMAN-06100: no channel to restore a backup or copy of datafile 20
    RMAN-06100: no channel to restore a backup or copy of datafile 19
    RMAN-06100: no channel to restore a backup or copy of datafile 18
    RMAN-06100: no channel to restore a backup or copy of datafile 17
    RMAN-06100: no channel to restore a backup or copy of datafile 16
    RMAN-06100: no channel to restore a backup or copy of datafile 15
    RMAN-06100: no channel to restore a backup or copy of datafile 14
    RMAN-06100: no channel to restore a backup or copy of datafile 13
    RMAN-06100: no channel to restore a backup or copy of datafile 12
    RMAN-06100: no channel to restore a backup or copy of datafile 11
    RMAN-06100: no channel to restore a backup or copy of datafile 10
    RMAN-06100: no channel to restore a backup or copy of datafile 8
    RMAN-06100: no channel to restore a backup or copy of datafile 6
    RMAN-06100: no channel to restore a backup or copy of datafile 5
    RMAN-06100: no channel to restore a backup or copy of datafile 4
    RMAN-06100: no channel to restore a backup or copy of datafile 3
    RMAN-06100: no channel to restore a backup or copy of datafile 2
    RMAN-06100: no channel to restore a backup or copy of datafile 1
    the backup script is as follows:
    DB server = jewcsrv3.
    Main server = jewcsrv1.
    RUN {
    echo ALLOCATE CHANNEL ch00
    echo TYPE 'SBT_TAPE';
    echo SEND 'NB_ORA_CLIENT=jewcsrv3,NB_ORA_SERV=jewcsrv1';
    echo BACKUP
    echo %BACKUP_TYPE%
    echo FORMAT 'bk_u%%u_s%%s_p%%p_t%%t'
    echo DATABASE;
    echo RELEASE CHANNEL ch00;
    echo # Backup Archived Logs
    echo # For an offline backup, remove the following sql statement
    echo sql 'alter system archive log current';
    echo ALLOCATE CHANNEL ch00
    echo TYPE 'SBT_TAPE';
    echo SEND 'NB_ORA_CLIENT=jewcsrv3,NB_ORA_SERV=jewcsrv1';
    echo BACKUP
    echo FORMAT 'arch-s%%s-p%%p-t%%t'
    echo ARCHIVELOG
    echo ALL
    echo DELETE INPUT;
    echo RELEASE CHANNEL ch00;
    echo # Control file backup
    echo ALLOCATE CHANNEL ch00
    echo TYPE 'SBT_TAPE';
    echo SEND 'NB_ORA_CLIENT=jewcsrv3,NB_ORA_SERV=jewcsrv1';
    echo BACKUP
    echo FORMAT 'bk_u%%u_s%%s_p%%p_t%%t'
    echo CURRENT CONTROLFILE;
    echo RELEASE CHANNEL ch00;
    echo }
    Could any one please help me to solve this problem. If there is no solution what could he suggest to do now to have a valid state and for future to avoid this problem.
    Thanks alot..
    PLEASE REPLY AS SOON AS POSSIBLE
    Edited by: 799539 on Oct 4, 2010 12:35 AM

    Your BACKUP script does set the NetBackup parameters for the Tape Channels.
    However, your RESTORE script does not specify the NetBackup parameters -- so Oracle doesn't know which channel to use for the Restore.
    You need to add the NetBackup parameters in the RESTORE.
    However, this is suprising :
    The problem is that when we came from two weeks vacation, users found that the DB is in old state and we lost the most recent valid stateA database will NOT EVER "go back to an old state" until and unless someone has restored an old backup. If the servers were shutdown for two weeks, who would have restored the database. If the servers were shutdown, how would Oracle have automatically gone back to an old stats ? There must have been some manual actions.
    Hemant K Chitale

  • XML Document object access problem?

    Hi,
    I have created a servlet,which will call .sh file, which will call java application.........
    this java application is working as a search engine,which will do search in the XML document object...........This is working fine when only one user run this servlet...........But when more than servlet do the same it is not working......... But once first servlet create the Document object,which is main source for serching..........then second servlet will work fine.......same thing with third servlet and so on...... I used the thread.sleep()/synchronize but it is not working...bcoz i am accessing the same application.....Then instead of servlet i tried to run the java application from the Dos prompt..........But i am facing the same problem......So pl guide me bcoz everything is working excluding this..........Becoz this document object creation is taking some time........ i am creating the object shown below
    Document doc =parseXmlFile("Article.xml", false);
    Element docElem = doc.getDocumentElement();
    public static org.w3c.dom.Document parseXmlFile(String filename, boolean validating)
                   try {
         // Create a builder factory
         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         factory.setValidating(validating);
         // Create the builder and parse the file
         // org.w3c.dom.Document doc = factory.newDocumentBuilder().parse(filename);
         org.w3c.dom.Document doc = factory.newDocumentBuilder().parse(new File(filename));
         return doc;
    } catch (SAXException e) {
    // A parsing error occurred; the xml input is not valid
    } catch (ParserConfigurationException e) {
    } catch (IOException e) {
    return null;
    }

    Hi,
    This is my Servlet code..............
    package PW.Feed;
    import java.io.*;
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.StreamResult;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class PrintDom extends HttpServlet
         Document doc;
         Element docElem;
         Connection Conn=null;
         Statement stmt=null,stmt1=null;
         ResultSet rs1=null,rs=null;
         PrintWriter out;
         Vector myVector1=new Vector();
         Vector myVector2=new Vector();
         String strSql="";
         public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
              res.setContentType("text/html");
              out=res.getWriter();
              try
                   String pubtype=req.getParameter("PubType");
                   String pubDate=req.getParameter("PubDate");
                   String toDate=req.getParameter("ToDate");
                   String fromDate=req.getParameter("FromDate");
                   if(pubDate==null)pubDate="2";
                   if(toDate==null)toDate="02/09/2005";
                   if(fromDate==null)fromDate="02/08/2005";
                   Class.forName("org.firebirdsql.jdbc.FBDriver");
                   Conn = DriverManager.getConnection("jdbc:firebirdsql:192.168.0.15/3050:D:/FBDatabases/PW1.GDB","SYSDBA","cohezia");
                   //Conn = DriverManager.getConnection("jdbc:firebirdsql:192.168.0.99/3050:/share/pw1.gdb","SYSDBA","cohezia");
                   stmt = Conn.createStatement( );
                   if(pubDate.equals("2"))
                        strSql="Select sh.ARTICLEID,sh.cuttingsdate,sh.READDATE,sh.headline,sh.SUMMARY,sh.AUTHOR,sh.PAGEFROM,sh.PUB_NAME,sh.READER_NAME,sh.PARENTTITLE,sh.CANMAIL,sh.PUBLICATION_ID,sh.JOURNALIST_ID,sh.ISPDF FROM SCANSHEADER sh,PUBLICATIONS p where sh.publication_id=p.publication_id and sh.readdate>'"+fromDate+"' and sh.readdate<'"+toDate+"' and p.pubtype='"+ pubtype +"' order by sh.ARTICLEID";
                   else
                        strSql="Select sh.ARTICLEID,sh.cuttingsdate,sh.READDATE,sh.headline,sh.SUMMARY,sh.AUTHOR,sh.PAGEFROM,sh.PUB_NAME,sh.READER_NAME,sh.PARENTTITLE,sh.CANMAIL,sh.PUBLICATION_ID,sh.JOURNALIST_ID,sh.ISPDF FROM SCANSHEADER sh,PUBLICATIONS p where sh.publication_id=p.publication_id and sh.cuttingsdate>'"+fromDate+"' and sh.cuttingsdate<'"+toDate+"' and p.pubtype='"+ pubtype +"' order by sh.ARTICLEID";
                   rs=stmt.executeQuery(strSql);
                   DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                   doc = builder.newDocument();
                   docElem = doc.createElement("RECORDLIST");
                   doc.appendChild(docElem);
                   Element rootElem = doc.createElement("RECORDS");
                   docElem.appendChild(rootElem);
                   String artid="";
                   while(rs.next())
                             Element artElem = doc.createElement("RECORD");
                             if((rs.getString("ARTICLEID")).length()>0)artElem.setAttribute("id",rs.getString("ARTICLEID"));
                             rootElem.appendChild(artElem);
                             Element rootFieldElem = doc.createElement("FIELDS");
                             artElem.appendChild(rootFieldElem);
                             Element eleCuttingDate = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleCuttingDate);
                             eleCuttingDate.setAttribute("fieldName","CUTTINGSDATE");
                             if((rs.getString("CUTTINGSDATE")).length()>0) eleCuttingDate.appendChild(doc.createTextNode(rs.getString("CUTTINGSDATE")));
                             Element eleReadDate = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleReadDate);
                             eleReadDate.setAttribute("fieldName","READDATE");
                             if((rs.getString("READDATE")).length()>0) eleReadDate.appendChild(doc.createTextNode(rs.getString("READDATE")));
                             Element eleHeadLine = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleHeadLine);
                             eleHeadLine.setAttribute("fieldName","HEADLINE");
                             if((rs.getString("HEADLINE")).length()>0) eleHeadLine.appendChild(doc.createTextNode(rs.getString("HEADLINE")));
                             Element eleSummary = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleSummary);
                             eleSummary.setAttribute("fieldName","SUMMARY");
                             if(rs.getString("SUMMARY")==null){
                                  //out.println("String is null");
                                  else
                                  {eleSummary.appendChild(doc.createTextNode(rs.getString("SUMMARY")));}
                             Element eleAuthor = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleAuthor);
                             eleAuthor.setAttribute("fieldName","AUTHOR");
                             if((rs.getString("AUTHOR")).length()>0) eleAuthor.appendChild(doc.createTextNode(rs.getString("AUTHOR")));
                             Element elePageFrom = doc.createElement("FIELD");
                             rootFieldElem.appendChild(elePageFrom);
                             elePageFrom.setAttribute("fieldName","PAGEFROM");
                             if((rs.getString("PAGEFROM")).length()>0) elePageFrom.appendChild(doc.createTextNode(rs.getString("PAGEFROM")));
                             Element elePubName = doc.createElement("FIELD");
                             rootFieldElem.appendChild(elePubName);
                             elePubName.setAttribute("fieldName","PUBNAME");
                             if((rs.getString("PUB_NAME")).length()>0) elePubName.appendChild(doc.createTextNode(rs.getString("PUB_NAME")));
                             Element eleReaderName = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleReaderName);
                             eleReaderName.setAttribute("fieldName","READER NAME");
                             if((rs.getString("READER_NAME")).length()>0) eleReaderName.appendChild(doc.createTextNode(rs.getString("READER_NAME")));
                             Element eleParentTitle = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleParentTitle);
                             eleParentTitle.setAttribute("fieldName","PARENTTITLE");
                             if((rs.getString("PARENTTITLE")).length()>0)eleParentTitle.appendChild(doc.createTextNode(rs.getString("PARENTTITLE")));
                             Element eleCanMail = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleCanMail);
                             eleCanMail.setAttribute("fieldName","CANMAIL");
                             if((rs.getString("CANMAIL")).length()>0) eleCanMail.appendChild(doc.createTextNode(rs.getString("CANMAIL")));
                             Element elePublicationID = doc.createElement("FIELD");
                             rootFieldElem.appendChild(elePublicationID);
                             elePublicationID.setAttribute("fieldName","PUBLICATION_ID");
                             if((rs.getString("PUBLICATION_ID")).length()>0) elePublicationID.appendChild(doc.createTextNode(rs.getString("PUBLICATION_ID")));
                             Element eleJournlistID = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleJournlistID);
                             eleJournlistID.setAttribute("fieldName","JOURNALIST_ID");
                             if((rs.getString("JOURNALIST_ID")).length()>0) eleJournlistID.appendChild(doc.createTextNode(rs.getString("JOURNALIST_ID")));
                             Element eleIspdf = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleIspdf);
                             eleIspdf.setAttribute("fieldName","ISPDF");
                             if((rs.getString("ISPDF")).length()>0) eleIspdf.appendChild(doc.createTextNode(rs.getString("ISPDF")));
                             Element rootKeyElem=doc.createElement("KEYWORDS_CODES");
                        String[] arrCodes=getKeyCodes(rs.getString("ARTICLEID"));
                        int count1 = myVector1.size();
                        String[] myArray1=new String[count1];
                        myVector1.copyInto(myArray1);
                        int count2 = myVector2.size();
                        String[] myArray2=new String[count2];
                        myVector2.copyInto(myArray2);
                        for(int j=0;j<arrCodes.length;j++)
                             Element eleKeyword= doc.createElement("KEYWORD_CODE");
                             eleKeyword.setAttribute("CodeId",arrCodes[j]);
                             eleKeyword.setAttribute("LongName",myArray1[j]);
                             eleKeyword.setAttribute("CodeType",myArray2[j]);
                             rootKeyElem.appendChild(eleKeyword);
                        artElem.appendChild(rootKeyElem);
                   Source source = new DOMSource(docElem);
                   //File file = new File("/share/PrintDom.xml");
                   StringWriter rw=new StringWriter();
                   Result result = new StreamResult(rw);
                   //Result result = new DOMResult();
                   // Write the DOM document to the file
                   Transformer xformer = TransformerFactory.newInstance().newTransformer();
                   xformer.transform(source, result);
                   out.println(rw);
              catch (ClassNotFoundException e)
                        out.println("Unable to load Driver Class" + e);
                        return;
                        //fileLog.log(e,"PressWatchFrame1.PressWatchFrame1()");
              catch (SQLException se)
                   out.println(se);
              catch (Exception e)
                   out.println(e);
    finally{
                        try{
                             if(Conn!=null) Conn.close();
                        catch(SQLException ignored){}
         public String[] getKeyCodes(String strArticleId)
              Vector myVector=new Vector();
              myVector1.removeAllElements();
              myVector2.removeAllElements();
         try{
              stmt1=Conn.createStatement( );
              //String strSql1="Select codeid FROM SCANSSUBJECT where articleid='"+ strArticleId +"'";
              String strSql1="Select ss.codeid,c.longname,c.codetype FROM SCANSSUBJECT ss,CODES c where ss.codeid=c.codeid and articleid='"+ strArticleId +"'";
              rs1=stmt1.executeQuery(strSql1);
              String strCodes="";
              while(rs1.next())
                   myVector.add(rs1.getString("codeid"));
                   myVector1.add(rs1.getString("longname"));
                   myVector2.add(rs1.getString("codetype"));
              }catch (SQLException se)
                                       out.println(se);
              int count = myVector.size();
              String[] myArray = new String[count];
              myVector.copyInto(myArray);
              return myArray;
    ..................Thanx

  • Income Tax Calculation problem: Urgent Help Needed

    Dear Gurus,
    I am facing a unique problem. Our client has two incentives –
    1) Product Incentive
    2) Sales Incentive
    Every month incentive figures get changed. These two are Monthly Regular Income (Cumulations Class 24) i.e. included in annual tax calculation.
    Now for tax calculation, my client wants "Actual Earning" and "Estimated Earning for the rest of the year" to be different. But Income tax calculation in SAP (for the month of April 2007) takes Actual Earning and multiplied it by 12( i.e. 11+1) to calculate Estimated Earning. But my client wants this Estimated Earning to be different. 
    Now please let me know is this possible in SAP system and how to calculate this?
    Your help will be highly appreciated
    Waiting for an early reply.
    Thanking You,
    With Best Regards,
    Pratik

    Hi,
    I am not understand your problem give your mb then i talk to you
    mhpo

  • Home directories loosing access rights - Urgent help required

    We have just migrated around 2000 user accounts onto a new xserve server and we have just set up these user accounts so that there home directory is stored on the server as opposed to locally on each machine. To get past a serious performance issue we changed the rights for the group so that only the owner could see there own directory and they had full read right access. Now there is one group and around 2000 user folders in that group, with each folder having the specific owner. Now after we made this change to the rights for the group to be none, and the owner as read/write access to the folder. We pushed this out using Workgroup manager and applied the changes to all child folders and files. Now in theory, when a user logged on they would only be able to see there own home directory and no one else’s on the server - and this is what happened, for the first 5 minutes... and then without making any changes to their server or the client machine, the user then lost access to their own home directory. The only way we have been able to get around this is to allow the group read access to the parent folder, so if a user navigates through to the volume on the server where these home directories are stored then they will be able to see all 2000 folders (but not access any data in them) Now this would not be such a big deal for us to fix ASAP, however it does cause the client machines to go very very very slow when browsing to open files through various programs. E.g. when you click file and then open in Photoshop or whatever the pinwheel will come up and start to spin for at least a min or so before it brings up the finder. I am assuming that this is because the machine is trying to look in all 2000 odd folders. Does anyone have any idea or suggestions on how we can get around this issue or what we are doing wrong?
    We are about to split the users up into groups of around 200, which should have been done from the start (BTW we did test this on a test server before implementing it, however it is murphies law that new bugs had to come up)
    Any help would be greatly appreciated.
    :S

    Thanks for you suggestions; we only used workstation manager to change the preferences. We were trying to change the rights so that the students would not even see the other student’s folders. We ended up setting up the rights similar to how you suggested, but there was still slow performance issues browsing to folders in the finder, because machine would get to the directory /Volume/server.address/mac_students and then search through 2000 folders (And maybe try to index) before going to the next level being the students home directory. So we split the 2000 users into 10 groups (Which really should have been done from the start) This enabled the finder to load a lot faster, but students could still see the top level folder of the other students in the group, but hey at least we were not faced with a "ohhhh boy, it is Monday morning and no students can log in" situation... We will be tweaking the image that is on all the clients to have the default locations in Photoshop and Quark etc to point locally, but that will be a bit of a longer term thing.
    I guess my real initial question was if we made a mistake with the rights on how we set them up, why did it work on the test server the whole time, and even on the live server for a few minutes, I would have thought that if the rights were wrong, then it would not have worked from the start?
    Never mind it is working now, which is the main thing.
    Another question though, for anyone that is reading, is how to you change the preferences of spotlight and where it saves its data.. Basically when a student logs onto a new computer, spotlight indexes and saves results in each folder and we would like to prevent it from indexing and saving to the home directory (Because this is on the server) We can actually see the CPU of the server go up when a student logs onto a machine that they have never logged into before and spotlight starts indexing the new machine. And preferably we would like to not disable spotlight on all the client machines - as students will no doubt like to search. Also should we disable spotlight on the server end? I guess this would improve performance a bit as well.
    Thanks in advance for any suggestions

  • Object access problem...

    I am reading the demo code of the sun hp.. about the progressbar..
    I use
    JFrame frame = new ProgressBarDemo();
    frame.pack();
    frame.setVisible(true);
    to construct the ProgressBarDemo object... however when i use the code
    frame.progressBar.setvalue(0);
    the complier scold me, can't resolve symbol
    progressBar
    can any expert help me .. why?
    public class ProgressBarDemo extends JFrame {
    public final static int ONE_SECOND = 1000;
    public JProgressBar progressBar;
    private Timer timer;
    private JButton startButton;
    private LongTask task;
    private JTextArea taskOutput;
    private String newline = "\n";
    public ProgressBarDemo() {
    super("ProgressBarDemo");
    task = new LongTask();
    //Create the demo's UI.
    startButton = new JButton("Start");
    startButton.setActionCommand("start");
    startButton.addActionListener(new ButtonListener());
    progressBar = new JProgressBar(0, task.getLengthOfTask());
    progressBar.setValue(0);
    progressBar.setStringPainted(true);
    etc

    It's because JFrame does not have a public progessbar variable, only your subclass has that.
    //change this
    JFrame frame = new ProgressBarDemo();
    //to this
    ProgressBarDemo frame = new ProgressBarDemo();

  • DVD@ACCESS PROBLEM URGENT!!!

    I'm putting together a multimedia DVD and I have all of the menus and video assests set up and ready to run in any dvd player. I just can't seem to get the DVD@ACCESS feature to work so that I can link a PDF file. I set it all up like it says in the manual but when I click Build, it doesn't copy the pdf file into the build folder. This project could mean about $15,000 worth of scholarship money for college.
    Message was edited by: loganbest

    If you've run through all the steps correctly (and included the proper amount of "/"s) then you should be good. It's been a little while since I did the DVD@ccess thing, but it may be that the build doesn't actually put the PDFs in the folder. It may take you burning a test disk to see it.
    There was something odd about needing to burn the disk to check it... I just don't recall what it was exactly. Try burning the disk and see if that helps.
    Hope that helps!
    ~Luke

  • Ajax problem urgently help please?

    Hi all,
    Can you tell me that is it possible using for when we selected a data from a select list to show the selected item results in a multiselect list.I tried but did not success.For example we select a dept name from a select list and in the multiselect list we will show the empnames for this deptno but more than ona rows.can you tell me how can ı success this?
    ı am waiting your helps!

    Hi,
    You can replace a select list's item by doing something like the following in javascript:
    function fillState(country)
         var statelist = document.getElementById("StateList");
         statelist.length=0;
         var opt = new Option;
         var statenames = getStateNames(country);
         var optioncount = 0;
         var isSelected = false;
         for (var n = 0; n < statenames.length; n++)
              opt = new Option;
              opt.value = statenames[n][0];
              opt.text = statenames[n][1];
              statelist.options[optioncount] = opt;
              optioncount++;
    Without knowing more about the data you get back, I couldn't tell you how to adjust the above to suit your needs.
    In this example, I have an array populated with state codes and names which I then loop through to add into the select list. The "statelist.length=0" line at the beginning clears out any previous data.
    Hopefully this should give you an idea of what's needed.
    Regards
    Andy

  • RMI object passing problem(Urgent)

    hi
    I am trying to pass a reference of a 'Socket' defined in the client to the server.
    It is giving the following error:
    java.rmi.MarshalException: error marshalling arguments; nested exception is:
         java.io.NotSerializableException: java.net.Socket
    any solutions?

    Read a good book on the TCP/IP protocols.
    Then you should see why it is not possible to transfer a socket endpoint to a different machine (network address). Since this transfer is not possible, it makes no sense to have Socket be Serializable.
    What you should do (IMHO) is pass the address of a listening socket (which is Serializable) and open a new Socket with it on the desired client.

  • Serious iPod problem urgent help!

    I have a 40gig ipod with click wheel it is about 2-3 years old, out of the blue i went to use it and it came up with an error (folder with that stick thingo telling me to go to the apple site and trouble shoot) now i went though all that stuff and it says i need to restore it, but when i try to do this it comes up with an error 'requested software not avaliable etc.' what do i do?
    I just want my ipod back
    Cheers, Chris

    http://discussions.apple.com/message.jspa?messageID=2369954#2369954

  • SQL problem URGENT help PLEASE

    SQL> select period_number, sum(gross_amt)
    2 from mpy_payslip_headers
    3 where payroll_year = 2001
    4 and business_group_id = 'E4'
    5 and employee_number = '366'
    6 and period_number between 12 and 13
    7 group_by period_number;
    group_by period_number
    ERROR at line 7:
    ORA-00933: SQL command not properly ended
    WHY THIS ERROR? As far as I know it is possible.
    Thanks in advance,
    Marija

    Sometimes, the most obvious things are the harder to see...
    The correct is 'order by', not 'order_by'!

  • E1 Problem - Urgent Help required!!!

    Hi,
    I`m getting the following error on my router when i do a sh controller - the card in the PBX is showing out of service - could this be cisco or pbx related???Thanks
    E1 5/0 is down.
    Applique type is Channelized E1 - balanced
    Description: **** Meridian PRI-loop 31 DCH33 Acod 1622 ****
    Far End Block Errors Detected
    Receiver has loss of signal.
    alarm-trigger is not set
    Version info Firmware: 20020306, FPGA: 11
    Framing is CRC4, Line Code is HDB3, Clock Source is Line Primary.

    yuk...see if there is a crash file in flash or bootflash. If reboting it did not fix the issue, suspect bad memory first - if you are back up, setup to dump a crashfile.
    Field notice:
    http://www.cisco.com/en/US/products/hw/univgate/ps501/products_field_notice09186a0080094c9a.shtml

Maybe you are looking for