Who can analyze this class ,does it will cause a problem?

package db;
import java.sql.*;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;
public class DbManager
private static Context jdbcContext;
public static Connection getConnect(String dataSource)
throws ClassNotFoundException, SQLException
String s;
Connection conn=null;
if (dataSource==null)
s= "jdbc/hoss";
else
s=dataSource;
if(jdbcContext == null)
try
jdbcContext = new InitialContext();
catch(Exception exception)
System.out.println(exception);
try
conn = ((DataSource)jdbcContext.lookup(s)).getConnection();
catch(Exception exception1)
System.out.println(exception1);
return conn;
public static ResultSet execQuery(String s,Connection conn)
throws SQLException
Statement statement = conn.createStatement();
ResultSet resultset = statement.executeQuery(s);
     //statement.close();
return resultset;
public static ResultSet execQuery(String s,Connection conn,Statement statement)
     throws SQLException
     ResultSet resultset = statement.executeQuery(s);
     return resultset;
public static int execUpdate(String s,Connection conn)
throws SQLException
Statement statement = conn.createStatement();
int i = statement.executeUpdate(s);
     statement.close();
return i;
this is a class writed by me ,but now i have some problem with it
all the problems is focus on the following method:
public static ResultSet execQuery(String s,Connection conn)
throws SQLException
Statement statement = conn.createStatement();
ResultSet resultset = statement.executeQuery(s);
     //statement.close();
return resultset;
if the statement is closed ,the resultset will automatically be close;
if you don't close statement here i have two wonder:
1)after the method return the statement is local variable,it will died
and the resultset will can also do thing?
2)whether it will lock the database after long run

If you don't close the ResultSet and the Statement, I think you may have an SQLException sooner or later, telling you there are no more cursors left.

Similar Messages

  • Who can explain inner class to me?

    //InheritInner.java
    //Inheriting an inner class
    class WithInner
         class Inner{
              Inner()
              {System.out.println("Inner class");
         WithInner()
         {System.out.println("WithInner");}
    public class InheritInner extends WithInner.Inner
         //!InheritInner(){}//Won't compile
         InheritInner(WithInner wi)
              wi.super();
         public static void main(String[] args)
              WithInner wi=new WithInner();
              InheritInner ii=new InheritInner(wi);
    Who can explain this subclass constructor to me?
    I appreciate your help!

    Here's the class that in 'Thinking in Java'. For some reason, yours is completely different.
    //: InheritInner.java
    // Inheriting an inner class
    class WithInner {
      class Inner {}
    public class InheritInner
        extends WithInner.Inner {
      //! InheritInner() {} // Won't compile
      InheritInner(WithInner wi) {
        wi.super();
      public static void main(String[] args) {
        WithInner wi = new WithInner();
        InheritInner ii = new InheritInner(wi);

  • Error "This class does not support SAAJ 1.3" in oim 11g

    hai all,
    i have error "This class does not support SAAJ 1.3" when i running create user.
    i already tried added in startWeblogic.cmd and in setDomainEnv.cmd :
    -Djavax.xml.soap.MessageFactory=weblogic.xml.saaj.MessageFactoryImpl and -Djavax.xml.soap.MessageFactory=com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
    step like this site (http://blog.xebia.com/2009/07/14/jax-ws-cxf-and-saaj-on-oracle-weblogic-103/)
    i already too set path for = saaj-impl-1.3.jar but the error still same "This class does not support SAAJ 1.3"
    i used weblogic 10.3.5, i'm generate soap message used rt.jar (import javax.xml.namespace.QName; etc)
    any idea to solving this error ?
    thank's
    darvesth
    Edited by: darvesth on Mar 19, 2013 4:08 AM

    thank you darvest, i follow your step before.
    but i added any steps after that.
    1. include saaj-impl-1.13.jar and saaj-api.jar in project adapter
    2. add parameter "SOAPConstants.SOAP_1_2_PROTOCOL" in line code, MessageFactory mf= MessageFactory.newInstance()
    -> MessageFactory mf= MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
    so, my problem already resolve..
    i hope this solution usefull to resolve our problem, darvest.
    thanks,
    Tim BENGA

  • Don't know if this went through the first time. Cannon printer would not print black. bought a new Epson-800. Same problem. Can it be something in my Mac causing the problem. It's only the black that is not working.

    Don't know if this went through the first time. Cannon printer would not print black. bought a new Epson-800. Same problem. Can it be something in my Mac causing the problem. It's only the black that is not working.

    Bill ...
    Believe it or not, might be a font issue > Computer won't print black text in...: Apple Support Communities

  • There is a problem with the phone app. When I want to call somebody the phone screen come too late. This will cause a problem if I call the wrong number

    There is a problem with the phone app. When I want to call somebody the phone screen come too late. This will cause a problem if I call the wrong number.  Apple please please please fix it as soon as possible and also check why the phone is always restart. I prefer to let us use the iOS 7 until you finished from the IOS 8 because Ios 8 still under construction  there is a tones problems in the system.  And this Will cause undirect problem for the iPhone 6

    There is no apple here in this user to user technical forum.
    Do this Use iTunes to restore your iOS device to factory settings

  • I have duplicate pictures in "my catalog" that I believe come from two Adobe folders found under "my pictures/adobe/ one is Revel and the other is Photoshop express which preceded revel. Can I delete those two folder without causing a problem with my cata

    I have duplicate pictures in "my catalog" that I believe come from two Adobe folders found under "my pictures/adobe/ one is Revel and the other is Photoshop express which preceded revel. Can I delete those two folder without causing a problem with my catalog?

    Thanks for the links, Limnos.
    If you are willing to continue helping, here's what I found.
    Just to clarify the two iTunes folders I am refering to are:
    username-->Music-->iTunes
    HD-->iTunes
    I am presuming each location has a full set of files as outlined in the above links?
    Not all the files are in both locations. Most are.
    - The Itunes folder in my home folder does not have itunes library.xml.
    - The Itunes folder in my home folder has a subfolder called Mobile Applications (username-->Music-->iTunes--> Mobile application). The Itunes folder at the HD level also has a Mobile Application folder but it is a subfolder of Itunes Media folder (HD-->iTunes--> iTunes Media-->Mobile applications) and has no files in it.
    - I do not have an iTunes Media in the iTunes folder in my home folder.
    - also the Itunes media folder (HD-->iTunes--> iTunes Media) has subfolders by type (books, movies, itunes u, music etc...) but the iTunes Media-->Music also has some of the same subfolders ( iTunes Media-->Music-->books, iTunes Media-->Music-->Movies, iTunes Media-->Music-->iTunes U). Is this normal repetition?
    You say:
    /itunes/itunes media/ music
    but it is important to note what comes before all that.
    There is nothing as far as I can tell before that first forward slash. Since the only iTunes Media folder I have is in the iTunes folder that resides at the HD level (HD-->iTunes--> iTunes Media folder) not the iTunes folder in my home folder (username-->Music-->iTunes) , I assume that's the one that holds the music.
    Keep iTunes media folder organized and Copy files to iTunes Media folder when adding to library are both checked on
    Does that give more clarity into my problem?

  • Zombie email message won't die! $1 bounty to anyone who can solve this.

    I have a message that absolutely will not die. I've tried everything I can think of to delete it, but it keeps coming back. I've tried moving it from one mailbox to another, killing it with the delete key, killing it by cutting it (Command-X), but it lingers on. At this point, it only shows up in the index with a subject and date, but the content of the message is gone. I've tried rebuilding the mailboxes a number of times, but it always reappears. I've tried logging into my various accounts through the web interface, but it doesn't exist on the servers anywhere, it's only local as far as I can see.
    In my last attempt to get rid of it, I scanned my ENTIRE HARD DRIVE for the string of text containing the subject line using grep, and narrowed it down to a few files in the ~/Library/Mail folder, which I deleted through the Terminal using rm. I then re-opened Mail and rebuilt the mailboxes, and the email STILL appears. It will no longer let me move the message to another mailbox, however, but I can't get the damned thing to disappear.
    I will PayPal $1 to anyone who can come up with a solution that doesn't involve recreating my Mail accounts. May the game begin!

    Hello,
    Are you using an IMAP or POP account?
    Anything you do in the Terminal, Finder or some third party Mail app enhancers will very often mess up the index, which appears to be a symptom of.
    I think you should force a reindexing by deleting the Envelope Index. With IMAP or Exchange account, forcing reindexing requires removing the account folder. See:
    http://docs.info.apple.com/article.html?path=Mail/4.0/en/14019.html
    Ask any questions needed to get comfortable with doing this.
    Ernie

  • My $20 to the person who can write this simple script for Fission

    Here is what I need to automate. I don't care if it's an Apple Script, or an Automator work flow - whatever - just so it will work with my present setup. Once I test it and it works, I'll send $20 to the first person who can help me.
    Script needs to apply to each (and every) MP3 file in a selected folder:
    Open the first file with Fission v1.6.6 (from: www.rogueamoeba.com)
    Select all
    Normalize
    Save audio (in same folder)
    A warning dialog pops up: "File already exists..." -- answer with "Replace"
    Close file
    Repeat for next file in the folder, until every file has been Normalized
    End script when the last file in folder has been Normalized
    I don't mind finding the folder (which will be in my iTunes Library), and then starting the set of actions on the folder but I definitely don't want to be required to take any additional action on each and every file.
    I'm presently running Fission v1.6.6 under MacOS 10.4.11 on a PPC desktop, so it needs to work in that environment.
    Note that the latest version of Fission requires MacOS 10.5 - I can't use any script that requires that version. Rogue Amoeba's Legacy software page (http://www.rogueamoeba.com/legacy/) shows Fission v1.6.8 as working with 10.4, but that contradicts the Version History for Fission which shows 1.6.6 as the last one for 10.4 - still investigating.

    Pierre L.
    Thanks for the effort!
    First, I can clarify this: Rogue Amoeba confirms that I can use the version 1.6.8 of Fission located on their Legacy page with my OS version 10.4.11, so I've upgraded from 1.6.6 to 1.6.8. Seems to be working OK.
    Next, let me apologize for being mostly ignorant about all things AppleScript. I'm really in over my head, here, because I've not used the ScriptEditor for more than a few minutes before today.
    What I've done so far:
    I checked the box in the Universal Access preferences pane to enable access for assistive devices.
    I copied your script from this forum and pasted it into Script Editor.
    I've Compiled your script, then "Saved As" an "Application" on my Desktop.
    When I double click the icon for the saved script (which ends in xyz.app), a navigation window appears, which I used to select a test folder on my desktop.
    When I Choose the test folder, Fission launched, and selected the whole file, as expected. Then I get an error:
    "NSReceiverEvaluationScriptError: 4" - with buttons to "Edit" or "OK"
    Thinking it might be a timing error, I edited the delays:
    set theFolder to choose folder
    tell application "Fission" to activate
    tell application "Finder"
    set theApp to POSIX path of (get file of process "Fission")
    set theFiles to document files of theFolder
    repeat with thisFile in theFiles
    open thisFile using POSIX file theApp
    tell application "System Events" to tell process "Fission"
    delay 18 -- adjust if necessary
    keystroke "a" using command down -- Select All
    delay 2 -- adjust if necessary
    click menu item "Normalize Selection" of menu 1 of menu bar item 7 of menu bar 1
    delay 4 -- adjust if necessary
    keystroke "s" using {shift down, command down} -- Save Audio…
    delay 3 -- adjust if necessary
    keystroke return -- Save
    delay 2 -- adjust if necessary
    click button "Replace" of sheet 1 of window "Save Audio"
    end tell
    end repeat
    end tell
    tell application "Fission" to quit -- optional
    ... Compiled, and Saved again.
    Now, the script runs up to the point where it should answer the Save pop-up window: "File already exists..." with the keystroke to "Replace" - but the script stops there, with the same error: "NSReceiverEvaluationScriptError: 4"
    Bottom line: so far, I've been able to get the first mp3 file in my test folder Normalized, but not Saved. Any suggestions?

  • Who can slove this avitek demo problem

    I have download avitek version 2 from inweb,
    and I establish the enviroment on my Wls portal sp1
    for win2000,wls61sp1 and oracle 817,but when I
    finish all of steps of setup, I start the
    /config/acitekDomainOracle/startAvitekOracle.bat
    but I find the error and could not solve it.
    <2002-4-19 ÏÂÎç05ʱ07·Ö56Ãë> <Error> <Data Synchronization> <Application: avitek;
    Master Data Repository construction failed. Application data will not be available
    to services; please see the following exception and restart the server.
    Exception[com.bea.p13n.management.data.repository.PersistenceException: An error
    ocurred refreshing a Data Repositorys PersistenceManager: {0}] - with embedded exception:
    [Exception[com.bea.p13n.management.data.repository.PersistenceException: Failed to
    refresh JDBC Persistence Manager.] - with embedded exception: [java.sql.SQLException:
    IOException during readClobData: Error in getLobStringValue java.sql.SQLException:
    ORA-24334: no descriptor for this position]]
         at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.<init>(AbstractDataRepository.java:198)
         at com.bea.p13n.management.data.repository.internal.MasterDataRepository.<init>(MasterDataRepository.java:46)
         at com.bea.p13n.management.data.repository.DataRepositoryFactory.getMasterDataRepository(DataRepositoryFactory.java:255)
         at com.bea.portal.manager.internal.DeploymentManager.initializePortlet(DeploymentManager.java:174)
         at com.bea.portal.manager.internal.DeploymentManager.initialize(DeploymentManager.java:90)
         at com.bea.portal.manager.internal.PortalManagerDelegateImpl.<init>(PortalManagerDelegateImpl.java:94)
         at com.bea.portal.manager.PortalFactory.createPortalManagerDelegate(PortalFactory.java:69)
         at com.bea.portal.manager.ejb.internal.PortalManagerBean.ejbCreate(PortalManagerBean.java:147)
         at com.bea.portal.manager.ejb.internal.PortalManagerBean_w6xny9_Impl.ejbCreate(PortalManagerBean_w6xny9_Impl.java:112)
         at java.lang.reflect.Method.invoke(Native Method)
    and
    Caused by: Exception[com.bea.p13n.management.data.repository.PersistenceException:
    Failed to refresh JDBC Persistence Manager.] - with embedded exception: [java.sql.SQLException:
    IOException during readClobData: Error in getLobStringValue java.sql.SQLException:
    ORA-24334: no descriptor for this position]
         at com.bea.p13n.management.data.repository.persistence.JdbcDataSource.refresh(JdbcDataSource.java:453)
         at com.bea.p13n.management.data.repository.persistence.JdbcPersistenceManager.refresh(JdbcPersistenceManager.java:106)
         at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.<init>(AbstractDataRepository.java:193)
         at com.bea.p13n.management.data.repository.internal.MasterDataRepository.<init>(MasterDataRepository.java:46)
         at com.bea.p13n.management.data.repository.DataRepositoryFactory.getMasterDataRepository(DataRepositoryFactory.java:255)
         at com.bea.portal.manager.internal.DeploymentManager.initializePortlet(DeploymentManager.java:174)
         at com.bea.portal.manager.internal.DeploymentManager.initialize(DeploymentManager.java:90)
         at com.bea.portal.manager.internal.PortalManagerDelegateImpl.<init>(PortalManagerDelegateImpl.java:94)
         at com.bea.portal.manager.PortalFactory.createPortalManagerDelegate(PortalFactory.java:69)
         at com.bea.portal.manager.ejb.internal.PortalManagerBean.ejbCreate(PortalManagerBean.java:147)
    I have not change the sample code, so I want to ask anyone who
    have install this demo. What can I do?

    Eric,
    You can download Oracle patches from their website. Open an account on
    http://metalink.oracle.com for detailed patch information etc.
    Sincerely,
    Daniel Selman
    "eric" <[email protected]> wrote in message
    news:[email protected]...
    >
    I have checked,Really have the JDBC Helper,but still
    can not work, I want to ask where can I find the patch
    of Oracle 817 and How can I do?
    "Daniel Selman" <[email protected]> wrote:
    Eric,
    Did you make the change to use the Oracle DB delegate for reading CLOBs
    (see
    instructions)? If so, please double check the patch level on your Oracle
    client and server installation.
    Sincerely,
    Daniel Selman
    "Eric" <[email protected]> wrote in message
    news:[email protected]...
    I have download avitek version 2 from inweb,
    and I establish the enviroment on my Wls portal sp1
    for win2000,wls61sp1 and oracle 817,but when I
    finish all of steps of setup, I start the
    /config/acitekDomainOracle/startAvitekOracle.bat
    but I find the error and could not solve it.
    <2002-4-19 ÏÂÎç05ʱ07·Ö56Ãë> <Error> <Data Synchronization>
    <Application:
    avitek;
    Master Data Repository construction failed. Application data will notbe
    available
    to services; please see the following exception and restart the server.
    Exception[com.bea.p13n.management.data.repository.PersistenceException:An
    error
    ocurred refreshing a Data Repositorys PersistenceManager: {0}] - withembedded exception:
    >[Exception[com.bea.p13n.management.data.repository.PersistenceException:
    Failed to
    refresh JDBC Persistence Manager.] - with embedded exception:[java.sql.SQLException:
    IOException during readClobData: Error in getLobStringValuejava.sql.SQLException:
    ORA-24334: no descriptor for this position]]
    at
    com.bea.p13n.management.data.repository.internal.AbstractDataRepository.<ini
    t>(AbstractDataRepository.java:198)
    at
    com.bea.p13n.management.data.repository.internal.MasterDataRepository.<init
    (MasterDataRepository.java:46)
    at
    com.bea.p13n.management.data.repository.DataRepositoryFactory.getMasterDataR
    epository(DataRepositoryFactory.java:255)
    at
    com.bea.portal.manager.internal.DeploymentManager.initializePortlet(Deployme
    ntManager.java:174)
    at
    com.bea.portal.manager.internal.DeploymentManager.initialize(DeploymentManag
    er.java:90)
    at
    com.bea.portal.manager.internal.PortalManagerDelegateImpl.<init>(PortalManag
    erDelegateImpl.java:94)
    at
    com.bea.portal.manager.PortalFactory.createPortalManagerDelegate(PortalFacto
    ry.java:69)
    at
    com.bea.portal.manager.ejb.internal.PortalManagerBean.ejbCreate(PortalManage
    rBean.java:147)
    at
    com.bea.portal.manager.ejb.internal.PortalManagerBean_w6xny9_Impl.ejbCreate(
    PortalManagerBean_w6xny9_Impl.java:112)
    at java.lang.reflect.Method.invoke(Native Method)
    and
    Caused by:Exception[com.bea.p13n.management.data.repository.PersistenceException:
    Failed to refresh JDBC Persistence Manager.] - with embedded exception:[java.sql.SQLException:
    IOException during readClobData: Error in getLobStringValuejava.sql.SQLException:
    ORA-24334: no descriptor for this position]
    at
    com.bea.p13n.management.data.repository.persistence.JdbcDataSource.refresh(J
    dbcDataSource.java:453)
    at
    com.bea.p13n.management.data.repository.persistence.JdbcPersistenceManager.r
    efresh(JdbcPersistenceManager.java:106)
    at
    com.bea.p13n.management.data.repository.internal.AbstractDataRepository.<ini
    t>(AbstractDataRepository.java:193)
    at
    com.bea.p13n.management.data.repository.internal.MasterDataRepository.<init
    (MasterDataRepository.java:46)
    at
    com.bea.p13n.management.data.repository.DataRepositoryFactory.getMasterDataR
    epository(DataRepositoryFactory.java:255)
    at
    com.bea.portal.manager.internal.DeploymentManager.initializePortlet(Deployme
    ntManager.java:174)
    at
    com.bea.portal.manager.internal.DeploymentManager.initialize(DeploymentManag
    er.java:90)
    at
    com.bea.portal.manager.internal.PortalManagerDelegateImpl.<init>(PortalManag
    erDelegateImpl.java:94)
    at
    com.bea.portal.manager.PortalFactory.createPortalManagerDelegate(PortalFacto
    ry.java:69)
    at
    com.bea.portal.manager.ejb.internal.PortalManagerBean.ejbCreate(PortalManage
    rBean.java:147)
    I have not change the sample code, so I want to ask anyone who
    have install this demo. What can I do?

  • $100 Reward for anyone who can fix this issue

    I will give $100 to the first person who can fix the false empty cartridge issue described here:
    http://h30434.www3.hp.com/t5/Other-printing-questions/Ink-cartridge-empty-but-it-s-not/m-p/176836
    The fix must eliminate the false error message that a cartridge is empty and enable the printer to resume printing. 
    As you can see in the link, people have struggled with this problem for years and no consistent fix has been discovered.  I am hoping that a smart person out there can find the cause of this problem and a solution for it. 
    I suspect that a file or registry entry must be set that indicates a false empty cartridge.  This false entry is retained even when a new cartridge is installed, or the printer software is removed and reinstalled.
    Even though many people have worked on this issue over the years, there still may be a creative solution out there.  Let's hear it and if it works you get the money.

    Hi,
    Reward not required nor needed...
    But... I didn't see a post in your link about using a newly created utility by hp.  I don't know if there is a fix in the utility although it has fixed some other printer issues... something that could be tried.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=mp-82717-1&lc=en&dlc=en&cc=us&...=
    Say Thanks by clicking the Kudos Star in the post that helped you. Please mark the post that solves your problem as Accepted Solution.
    I am employed by HP

  • Who can do this?

    Hi
    The code below prints this out
    [goods out, firstname, lastname]
    [id, adress1]
    [country, phone]
    [goods in]
    Now how can i get my code to print out the same, but instead of using the strings Values and keys,
    use hashtables?
    Also how can i do it without using the (public static void getval)
    Hope You can solve this
    thanks
    loftty
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    public class has3{
            public static void main(String[] args)    {
            String keys[] = {
                "firstname", "lastname", "id", "adress1",  "phone",
                "county",  "post code", "country", "goods in", "goods out"
            };//System.out.println(keys);
            String values[] = {
                "ben", "ben", "alex", "alex", "matt",
                "matt", "mum", "mum", "dad", "ben"
            // First, map keys to values in a hashtable
            Hashtable hash = new Hashtable();
            // the code matches values one by one for each of the keys
            for(int i = 0; i < keys.length; i++)
                hash.put(keys, values[i]);
    // Then we find each value and remove it from the hashtable
    for(int j = 0; j < values.length; j++)
              getval(values[j],hash);
    // This will also print it to the screen
         private static void getval(Object value, Hashtable ht ){
              ArrayList arr = new ArrayList();
    if( ht.containsValue( value ))
    Enumeration e = ht.keys();
    while (e.hasMoreElements())
    String tempkey = (String)e.nextElement();
    String tempvalue = (String)ht.get(tempkey);
    if (tempvalue.equals(value))
                   arr.add(tempkey);
    ht.remove(tempkey);
    }System.out.println(arr);

    lol
    i like your answers
    could you please be so kind and show me please?
    loftty

  • Who can resolve this problem? I'm urgent.

    My programe is running ,
    When I used the "CTRL+C" to stop the client and restart the client ,the server throw the following Exception:
    2004-2-10 13:59:25 com.hanwei.update.rmiservice.ServiceImpl send
    &#20005;&#37325;: RemoteException
    java.rmi.MarshalException: CORBA COMM_FAILURE 1398079689 No; nested exception is:
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:89)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    at com.hanwei.update.rmiservice._CallbackInterface_Stub.receive(_CallbackInterface_Stub.java:54)
    at com.hanwei.update.rmiservice.ServiceImpl.send(ServiceImpl.java:195)
    at com.hanwei.update.rmiservice._ServiceImpl_Tie._invoke(_ServiceImpl_Tie.java:68)
    at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:353)
    at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:252)
    at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
    at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
    Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:148)
    at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:65)
    at com.sun.corba.se.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:67)
    at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:652)
    at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:594)
    at com.sun.corba.se.internal.corba.ClientDelegate.request(ClientDelegate.java:886)
    at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)
    at com.hanwei.update.rmiservice._CallbackInterface_Stub.receive(_CallbackInterface_Stub.java:39)
    ... 6 more
    who can tell me why?
    Please help, I'm urgent.

    I couldnt say for certain, but I'm guessing that the CTRL-C command is being passed to your Server, which is interpreting it as an attempt to shut down the server.
    But you might what to try the RMI-IIOP forum for question about CORBA

  • Whose the smartest can figure this brain teaser of AS 3.0 problem?

    Spent all afternoon trying to figure out the following AS 3.0 problem in Flash CS4.  I can load an image using a custom class (called "BitmapExample") inside a unnamed package by placing the class name in Class field in the Properties panel inside of Flash, everything works fine.  The image and the .as file are in the same folder as Flash file.
    The following is the code that reside in the "BitmapExample.as" file:
    package {
           import flash.display.Loader;
           import flash.display.Sprite;
           import flash.net.URLRequest;
           public class BitmapExample extends Sprite {
                      private var url:String = "Image.gif";
                      public function BitmapExample() {
                            var loader:Loader = new Loader();
                            var request:URLRequest = new URLRequest(url);
                            loader.load(request);
                            addChild(loader);
    BUT!!  If I try to access the class file by 1) removing the name from the Class field in the Properties panel 2) Using the main Actions panel (F9) in Flash instead (in frame 1) and use the command:
    var testLoad:BitmapExample = new BitmapExample();
    I can access the class (I placed trace statements to double-check), but I CANNOT get the image to load using this method.  Trust me, it's not a typing error (even if above is mistyped), I played around with it all afternoon.  I could even take the applicable code from the *.as class and place inside the Flash ActionScript panel and get it to work.   Anyone should be able to take the above code and rename a gif file to duplicate the problem.
    So bottomline: Why is that I can run an AS 3.0 class (that loads a picture) using the classname in the Properties - Document field, but NOT be able to load the same picture(though I can access the class) by creating an instance of the class in the Flash Actionst panel (F9) (you have to remove the class name in Properties - Document field for this method).
    Trust me on this one, you'll have to run the code to probably know what I'm talking about.

    Turns out you were right!  Thanks so much......
    So for those viewing this question, it is actually quite helpful, the point is:
    When you enter a class name via the Properties panel - Class field in Flash CS4, it turns out Flash will not only access the class but will instantiate an instance of the object of that class AND add that object to the Stage as a display object.    On the other hand, if you use the Actions Panel (F9) you must manually 1) create an instance of that class 2) and add it to the Stage as a display object if you are going to use code and see any visible results on the Stage
    var testbat:BitmapExample = new BitmapExample();
    addChild(testbat);

  • Can switching from CRT to LCD monitors cause system problems?

    My 9.1 locks up periodically (but the cursor still moves) since I replaced two 20" CRT monitors with two Samsung 19" LCD monitors. Could this affect the performance of my machine? I've tried everything else to address the freeze problem but recall the issue started when I installed the LCD monitors. Anything I can do?

    Studedot,
    You may have issues with the amount of video memory depending on the resolutions of the new LCD screens.
    I find LCD screens go up to insane resolutions, way more than the corresponding size CRT monitor, ie. a 17in Dell LCD monitor with higher resolution than a 21in CRT.
    It shouldn't cause crashes or freezes, but may cause -redraw problems when closing / moving windows in 2D and playing 3D games.

  • I will give $100 to the person who can solve this problem once and for all.

    I'm not even kidding, dude. We can do PayPay, I'll mail you a check, whatever you want. That is how frustrating this is, that is how badly I want it fixed, and that is how much overtime I've worked lately thanks to being shorthanded at my place of biz-nass. I'm an hombre of my word, so if you actually come up with a solution that works, the cheddar will be yours. Okay let's hit it.
    It's the skipping thing. First 10-12 seconds of a song - every song - will play fine, then iTunes skips, stutters, and basically does the god **** hokey pokey and shakes it all about. It happens most notably with songs that I double-click to play, but I'm pretty much noticing it on any song now after a transition is made. I've been using iTunes for ages and this didn't happen until the upgrade to 7.3. I have poured over these forums for nearly a week, tried every solution offered (even offered one of my own that actually worked for maybe four days before the whole thing started up again) and NOTHING. To save us all some time, here's what I've tried:
    - Downgrading. I'll admit I didn't do this correctly at first. I didn't remove everything according to the support guidelines, but I went down to version 6.05 and that did nothing to quell the skipping. I upgraded back up to 7.3 because hey, why not, and attempted the remaining trial fixes. I have since removed both iTunes and Quicktime, step my step according the the guidelines, and not only have I downgraded to my current running version of 7.2, I put both of the programs on my F drive (as opposed to the default C drive), my gigantic bonus internal drive where I typically keep nothing but my giganto music library. I thought putting the app on the same drive as the music might fix things. I thought wrong. Dead wrong. Dead diddly dum iddly wrong.
    - Quicktime settings. My settings for Quicktime have always been in safe mode with the output size at 16 bits. So when I saw this "fix" I just rolled my eyes. I used to have that dealio back in the dizzle when iTunes would just get all static-y and skip when I'd open other programs or even just minimize it, so that fix worked for that, but it's nothing compared to this. In simpler terms, that fix is like Superman, and this skipping? The kryptonite. Actually that's probably not a great metaphor, but we've got a ways to go and this is going to get mucho boring if I don't throw some chuckles out there. Ready for fix three? Giddy up!
    - Turn off cross-fade? It's never been on. I never really got the appeal of that, and also I think it resulted in some minor skipping back in the d. I also attempted similar fixes like turning off the equalizer, messing with the volume, closing last.fm, REMOVING an old album art retrieval program from back before iTunes got its **** together with album art, ANYTHING that might interfere with playback was turned off, removed, b-slapped, and sent crying home to its moms. Nada.
    - Recreating my library. This was the fix I offered someone else, because it actually did the trick for a few days. After an entire night spent reimporting 73 gigs worth of music, it played fine, but I did lose a ton of album art, playcounts, etc, so you can imagine how ****** I was when this wound up not being a permanent fix. I was beyond ******. I was livid. But I was taught in the dojos of my youth to channel my anger into productivity, and instead of sculpting a lovely bonsai tree, I set out to fix this pup once and for all.
    - That darn anti-virus! This was the final fix I tried, even though I wasn't using any of the culprit programs listed in the forums as causes of the skipping, and even those offering this as a solution confessed it was pretty hit or miss. But having tried everything else, having resorted to playing my music on MediaMonkey of all things, I figured I'd give it a shot. I used (reason for the past-tense forthcoming) AVG Anti-Virus, Lavasoft AdAware and something called Spyware Doctor that I think just came bundled with XP. I removed all of them. I had just done a virus scan recently to see if that's what was causing this, so I figured I'd be okay until I could redownload them after this fix wound up not working. And it didn't work, so there's that.
    There may be a couple of fixes I've tried that I'm forgetting now, since I'm delirious after spending practically every night for the past week trying to fix this problem, while my girlf, Heather, sits and laughs at me while watching Clark and Michael on her MacBook. In fact, she's laughing at the $100 offer as I type this, but I assure you, if you offer a solution that works, the money is as good as yours. If you come up with a workable solution, I'll have to test and make sure it isn't temporary like the recreating my library thing, but I won't leave you hanging once I'm satisfied that it's fixed for good. I know it's unorthodox, perhaps illegal in some states, but I'm desperate here, peeps. The ball is in your court, and I beg you not to give up the rock.
    Gateway E-2000 Windows XP

    I think the problem lays with Last.fm. I had the same exact problem as you. In your processes screen, end the task "lastfmhelper.exe" Last.fm still scrobbles. The tracks don't skip, although I notice there is still a bit of a lag in the first part of the song - but if you can deal with that, no skipping. I think you will have to end that task everytime you boot up your computer, or uninstall last.fm completely until they fix it; it is a bug in their software, as opposed to iTunes.

Maybe you are looking for