NameNotFoundException when looking up the Recource Adapter

          Hi,
          I am facing a problem when looking-up of the Resource Adapter from the Ejb.
          I am using a session bean to lookup the Resource adapter. I have no problem deploying
          the resource adapter and the ejb. But I am getting an exception when I run the
          client.
          The <resource-ref> tag in ejb-jar.xml is as follows.
          <enterprise-beans>
          <session>
          <ejb-name>connect</ejb-name>
          <home>connect.InsertHome</home>
          <remote>connect.Insert</remote>
          <ejb-class>connect.InsertBean</ejb-class>
          <session-type>Stateless</session-type>
          <transaction-type>Container</transaction-type>
          <resource-ref>
          <res-ref-name>eis/CciBlackBoxNoTx</res-ref-name>
          <res-type>com.sun.connector.cciblackbox.CciConnectionFactory</res-type>
          <res-auth>Container</res-auth>
          </resource-ref>
          </session>
          </enterprise-beans>
          I changed the res-ref-type from javax.sql.Datasource to the connection factory
          as I am using the CCI to connect to the database.
          My weblogic-ejb-jar file contains the following description
          <reference-descriptor>
          <resource-description>
          <res-ref-name>eis/CciBlackBoxNoTx</res-ref-name>
          <jndi-name>eis/CciBlackBoxNoTxConnectorJNDINAME</jndi-name>
          </resource-description>
          </reference-descriptor>
          <jndi-name>Insert</jndi-name>
          When I run my client I am getting the follwing Exception.
          javax.naming.NameNotFoundException: Unable to resolve 'app/ejb/connect.jar#conn
          ect/comp/env/user' Resolved: 'app/ejb/connect.jar#connect/comp/env' Unresolved:
          'user' ; remaining name 'user'
          at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Basi
          cNamingNode.java:858)
          at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.ja
          va:223)
          at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
          87)
          at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
          95)
          at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
          95)
          at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
          at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
          at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyC
          ontextWrapper.java:36)
          at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.
          java:124)
          at javax.naming.InitialContext.lookup(InitialContext.java:345)
          at connect.InsertBean.setSessionContext(InsertBean.java:64)
          at connect.InsertBean_fqerje_Impl.setSessionContext(InsertBean_fqerje_I
          mpl.java:93)
          at weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.
          java:273)
          at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSession
          Pool.java:148)
          at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPoo
          l.java:101)
          at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.j
          ava:148)
          at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:1
          27)
          at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObj
          ect.java:61)
          at connect.InsertBean_fqerje_EOImpl.insertName(InsertBean_fqerje_EOImpl
          .java:28)
          at connect.InsertBean_fqerje_EOImpl_WLSkel.invoke(Unknown Source)
          at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
          at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServer
          Ref.java:114)
          at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
          at weblogic.security.service.SecurityServiceManager.runAs(SecurityServi
          ceManager.java:785)
          at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.ja
          va:308)
          at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteReques
          t.java:30)
          at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
          where connect.jar is the name of my ejb.
          This is the session bean code I am using to looup the resource adpater.
          user = (String) initCtx.lookup("java:comp/env/user");
          password = (String) initCtx.lookup("java:comp/env/password");
          cxf =(ConnectionFactory)initCtx.lookup("java:comp/env/eis/CciBlackBoxNoTx");
          I am using the weblogic 7.0 as the application server and Sun's CciblackboxNoTx
          as the resource adpter.The weblogic-ra.xml file for the resource adpter contains
          the following connection factory and jndi name.
          <connection-factory-name>LogicalNameOfCciBlackBoxNoTx</connection-factory-name>
          <jndi-name>eis/CciBlackBoxNoTxConnectorJNDINAME</jndi-name>
          Can any one please let me know where I am going wrong. Any solution will be of
          great help.
          Thanks,
          Ramya.
          

Hi Ramya,
          Where you have defined user and password, is you have included those in the
          bean descriptor? Or rar descriptrs?. Server unable to findout the user and
          password.
          The following tags could not able to undestand what for?
          > </reference-descriptor>
          > <jndi-name>Insert</jndi-name>
          >
          Thanks
          Kumar
          "Ramya" <[email protected]> wrote in message
          news:[email protected]...
          >
          > Hi,
          > I am facing a problem when looking-up of the Resource Adapter from the
          Ejb.
          > I am using a session bean to lookup the Resource adapter. I have no
          problem deploying
          > the resource adapter and the ejb. But I am getting an exception when I run
          the
          > client.
          >
          > The <resource-ref> tag in ejb-jar.xml is as follows.
          >
          > <enterprise-beans>
          > <session>
          > <ejb-name>connect</ejb-name>
          > <home>connect.InsertHome</home>
          > <remote>connect.Insert</remote>
          > <ejb-class>connect.InsertBean</ejb-class>
          > <session-type>Stateless</session-type>
          > <transaction-type>Container</transaction-type>
          > <resource-ref>
          > <res-ref-name>eis/CciBlackBoxNoTx</res-ref-name>
          >
          <res-type>com.sun.connector.cciblackbox.CciConnectionFactory</res-type>
          > <res-auth>Container</res-auth>
          > </resource-ref>
          > </session>
          > </enterprise-beans>
          >
          > I changed the res-ref-type from javax.sql.Datasource to the connection
          factory
          > as I am using the CCI to connect to the database.
          >
          > My weblogic-ejb-jar file contains the following description
          >
          > <reference-descriptor>
          >
          > <resource-description>
          > <res-ref-name>eis/CciBlackBoxNoTx</res-ref-name>
          > <jndi-name>eis/CciBlackBoxNoTxConnectorJNDINAME</jndi-name>
          > </resource-description>
          >
          > </reference-descriptor>
          > <jndi-name>Insert</jndi-name>
          >
          > When I run my client I am getting the follwing Exception.
          >
          >
          > javax.naming.NameNotFoundException: Unable to resolve
          'app/ejb/connect.jar#conn
          > ect/comp/env/user' Resolved: 'app/ejb/connect.jar#connect/comp/env'
          Unresolved:
          > 'user' ; remaining name 'user'
          > at
          weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Basi
          > cNamingNode.java:858)
          > at
          weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.ja
          > va:223)
          > at
          weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
          > 87)
          > at
          weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
          > 95)
          > at
          weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
          > 95)
          > at
          weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
          > at
          weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
          > at
          weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyC
          > ontextWrapper.java:36)
          > at
          weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.
          > java:124)
          > at javax.naming.InitialContext.lookup(InitialContext.java:345)
          > at connect.InsertBean.setSessionContext(InsertBean.java:64)
          > at
          connect.InsertBean_fqerje_Impl.setSessionContext(InsertBean_fqerje_I
          > mpl.java:93)
          > at
          weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.
          > java:273)
          > at
          weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSession
          > Pool.java:148)
          > at
          weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPoo
          > l.java:101)
          > at
          weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.j
          > ava:148)
          > at
          weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:1
          > 27)
          > at
          weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObj
          > ect.java:61)
          > at
          connect.InsertBean_fqerje_EOImpl.insertName(InsertBean_fqerje_EOImpl
          > java:28)
          > at connect.InsertBean_fqerje_EOImpl_WLSkel.invoke(Unknown Source)
          > at
          weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
          >
          > at
          weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServer
          > Ref.java:114)
          > at
          weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
          > at
          weblogic.security.service.SecurityServiceManager.runAs(SecurityServi
          > ceManager.java:785)
          > at
          weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.ja
          > va:308)
          > at
          weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteReques
          > t.java:30)
          > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
          > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
          >
          > where connect.jar is the name of my ejb.
          >
          > This is the session bean code I am using to looup the resource adpater.
          >
          > user = (String) initCtx.lookup("java:comp/env/user");
          > password = (String) initCtx.lookup("java:comp/env/password");
          > cxf
          =(ConnectionFactory)initCtx.lookup("java:comp/env/eis/CciBlackBoxNoTx");
          >
          >
          >
          > I am using the weblogic 7.0 as the application server and Sun's
          CciblackboxNoTx
          > as the resource adpter.The weblogic-ra.xml file for the resource adpter
          contains
          > the following connection factory and jndi name.
          >
          >
          <connection-factory-name>LogicalNameOfCciBlackBoxNoTx</connection-factory-na
          me>
          > <jndi-name>eis/CciBlackBoxNoTxConnectorJNDINAME</jndi-name>
          >
          >
          > Can any one please let me know where I am going wrong. Any solution will
          be of
          > great help.
          >
          > Thanks,
          > Ramya.
          >
          

Similar Messages

  • Download connections doesn't close after I cancel the download, it keep like I am download and only close when I disable the network adapter or reset the router or the firewall

    download connections doesn't close after I cancel the download, it keep like I am downloading and only close when I disable the network adapter or reset the router or the firewall.
    I use pfsense as my firewall and see the traffic not reseting to zero when I cancel download.
    Also, IE doesn't have this problem. When I cancel the download the traffic drops to zero.

    And this problem seems to be systemwide. Since I created a new user and under which problem still exists.
    Hope apple will look into it

  • When i upload my site via ftp to 3rd party hosting i only get 'index of/' when looking at the webpag

    I have exported my site and even tested on adobe and everything looks ok.  For some reason when I export and uplaod via ftp to my 3rd party hosting and look at the site I just get the index of/  and a list of the pages and directories underneath

    Thanks for that.  Now sorted.  It was a problem on my hosting
    Ian
    cid:[email protected]
    cid:[email protected]<http://twitter.com/dieselthefrog>[cid:[email protected]][cid:[email protected]]<http://www.facebook.com/dieselfrog>[cid:[email protected]][cid:[email protected]]<http://uk.linkedin.com/pub/ian-royle/30/a20/928>
    From: Abhishek Maurya [email protected]
    Sent: 04 July 2012 23:02
    To: Ian
    Subject: when i upload my site via ftp to 3rd party hosting i only get 'index of/' when looking at the webpag
    Re: when i upload my site via ftp to 3rd party hosting i only get 'index of/' when looking at the webpag
    created by Abhishek Maurya<http://forums.adobe.com/people/Abhishek+Maurya> in Help with using Adobe Muse - View the full discussion<http://forums.adobe.com/message/4538835#4538835

  • HT1386 My Music and Apps downloaded but not my audiobooks? Its says 7 when looking to the left. But tab up top says 0??

    When looking on the left in Itunes says I have 7 books (audio book). When looking on the top tab says I have 0 books. They will not download to my Iphone. All my music and apps did however..

    Hey Sierra, You can do just what you have stated. My question, what is your "other"? If it is over 1.5 GB you most likely have corrupt files. Doing a Restore to New, Factory restore should correct it. Just make sure you make a full backup of all information on your iPod to your computer before you restore, so you don't lose your stuff, contacts, videos, pictures, non-iTunes music, etc, use the cable and connect with your computer. Then, via cable, connect to your computer, run the Restore to new, don't use your backup. Treat this iPod as if it was your first one ever. When restore is done, set up and add what info you wish to install on this iPod. The music apps etc you purchased should be on your computer, if not you should be able to retrieve purchased apps and music from iTunes. Any music, videos, apps not purchased from iTunes will be lost to you if you do not save them to your computer or the cloud first. When your done, make a current Backup and you should good to go. Hope this helps. Good luck. Cheers.

  • NameNotFoundException when looking up datasource jndi from standalone clien

    Hi,
    I'm trying to lookup datasource jndi from standalone client, but always get exceptions.
    I configured an oralce datasource with jndi name "oracleDataSource". When looking it up in servlet, I can get connection.
    In order to test it from standalone client, I created following code:
    public class DataSourceTest
    * Attempt to authenticate the user.
    public static void main(String[] args)
    String datasource = null;
    if (args.length == 1 ) {
    datasource = args[0];
    System.out.println("datasource = "+datasource);
    if(datasource == null)
    datasource = "oracleDataSource";
    try{
    Connection conn = null;
    Properties env = new Properties();
    env.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
    env.put("java.naming.provider.url", "iiop://localhost:3700");
    Context initial = new InitialContext(env);
    if(datasource != null){
    DataSource ds = (DataSource)initial.lookup(datasource);
    conn = ds.getConnection();
    if(conn != null){
    System.out.println("datasource is gotten.");
    conn.close();
    else
    System.out.println("datasource is error.");
    System.exit(0);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    When running, I get following exception:
    [java] datasource = oracleDataSource
    [java] Caught an unexpected exception!
    [java] javax.naming.NameNotFoundException. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
    [java] at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:34)
    [java] at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:402)
    [java] at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:368)
    [java] at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:417)
    [java] at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:395)
    [java] at javax.naming.InitialContext.lookup(InitialContext.java:350)
    [java] at com.tbcn.ceap.test.cilent.DataSourceTest.main(DataSourceTest.java:42)
    I also tried many other methods but always got exceptions. What's wrong with it? How can I lookup the datasource jndi from standalone client?
    Thanks in advance!

    Thank Tuan!
    I tried. When running, the server will read security.properties and ejb.properties. But I didn't use ejb and I didn't know how to configure ejb.properties, so I let ejb.properties empty. The security.properties is as following:
    client.sendpassword=true
    server.trustedhosts=*
    interop.ssl.required=false
    interop.authRequired.enabled=false
    interop.nameservice.ssl.required=false
    The result is:
    [java] javax.naming.CommunicationException: Can't find SerialContextProvider
    [java] at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:63)
    [java] at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
    [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
    [java] at com.tbcn.ceap.test.cilent.DataSourceTest.main(DataSourceTest.java:42)
    Also, I tried it with ACC. In sun sample ConverterClient.java under rmi-iiop/simple, I added following code under with ACC and without ACC. With ACC, I can get connection. But without ACC, I can't get it.
    try{
              DataSource ds = (DataSource)initial.lookup("oracleDataSource");
              Connection conn = ds.getConnection();
              if(conn != null){
              System.out.println("datasource oracleDataSource gotten.");
              conn.close();
              else
              System.out.println("oracleDataSource is error.");
    Does it means that we must lookup datasource jndi with ACC?

  • Powerbook turns off when I unplugged the Power Adapter

    I month or so ago I noticed that when I unplug my power adapter it turns off instead of running off the battery. I've tried resetting the PMU but I didn't work. Does anyone have any advice or does anyone know what could be the problem.

    I am experiencing a similar problem to Blaise. I have owned my 15-inch Dual-Layer SuperDrive for a total of 4 days. Last night I went to move my computer from the living room (where it was plugged into the wall for approx. 5hrs) to my bedroom. So I simply pulled out the power cable and the screen went blank. At first I thought it went to sleep (which was weird even if that was true), but then I tried to wake it up. Nothing worked. So I moved it into the bedroom, plugged it in, then I basically had to power it up as if it was off. Although, since it is the new PowerBook it was still able to write the contents of RAM to the hard drive (which is a really cool new feature). So the dimmed screen had the progress bar on the bottom as the previous settings were loaded.
    Anyway, my long story aside. The battery level monitor in the menu bar, now says 0%, when I unplugged it, it said 99%. The green indicators on the battery itself all light up as if it is fully charged. I also looked in system profiler, where it says the capacity is 0mAh and the total charge is 0mAh. Then I ran apple hardware test, where it told me that no battery was present but it was still able to say it experienced "10 cycles".
    I have tried to reset the PMU and the PRAM, no help. I've restarted to see if it would luckily rerecognize it. But nothing has worked.
    I will be venturing to the Apple Store this afternoon. I hope it is an easy fix, i.e. just a new battery. Basically the current condition of my computer, is that I need to be plugged in to use it at all.
    It must be reiterated that this is a brand new machine. And the battery capacity just hours before this incident was 3639mAh (I've been checking it periodically since I got the machine to see how the battery was doing on the first couple of cycles). And it had only experienced 10 charge-drain cycles.
    If anyone has any ideas to fix this, I would greatly appreciate the help.

  • My Macbook Pro goes to sleep when I connect the magsafe adapter.

    Hi, if I am using my MBP on battery and then 1) close the lid to put it to sleep, 2) later connect it to the magsafe and then 3) try to wake it up (in that order only, and more frequently if in the login screen), it powers up for a second then goes back to sleep. Not always but frequently. It takes about 10 seconds to power down, and then once asleep, it takes about 5 seconds before it will wake up again. After that, everything is fine. My only workaround seems to be to wake the computer first, wait about 10 seconds and then connect the magsafe. Has anyone else experienced this? I never noticed this before I upgraded to Mountain Lion.

    This very well could be the same issue as below.  Please read the full copy of the post and see if the behavior matches.  What's happeing is that if you have this update installed, whenever you plug or unplug the power adapter to the laptop, the system will wake from sleep and then go back to sleep if the lid is closed.  What you're doing is plugging it in which causes it to wake up, then when you finally open it a couple of seconds later, you're catching it as it's going back to sleep and once it does that it then sees that you opened it and wakes back up again.  Either plug it in and wait for that wake/sleep and then open it or open it and then plug it in.
    Post about the problem in detail:
    This is a problem with all 2012 MacBook Pros that have applied the update DL1609 via Software Update.  This update is called MacBook Air and MacBook Pro Update 2.0.  The only fix that exists for this is to reinstall OSX and just not install this update when it shows in the available updates list in the AppStore.  Just hide it until this issue is fixed by Apple.
    If your OSX 10.8.2 version is anything after version (12C60) then you will have this problem.  The problem is as follows.  With the system asleep with clamshell closed, plugging and unplugging the power cable causes the system to wake up and go back to sleep.  Additionally, leaving the system plugged into power for over 4 hours will cause the system to go into hibernation, but only when plugged in.  If it's not connected to AC power while sleeping for that long, it will not enter hibernation.
    Please call Apple and complain about this problem.  I have been working with them for over a month and a half trying to get them to fix this and it's a major hand-holding process because they didn't initially understand the issue.  Add to that the fact that they insisted that this problem doesn't exist and it just made it that much harder to get them to see the issue.
    You need to call them AppleCare and let them know you're having this problem.  Along with that, email the rep you're working with links to every Apple Support Forum thread you can find on this.  Trust me, there are several with this same exact problem.

  • Why can't I use Column Browser when looking at the music that is on my iPhone.

    I have upated to iTunes 11 and I am running Windows 7.  I have the Manage Music Manually checked on the settings for my iPhone.  When I look at the music that is on my phone in iTunes 11, I get the list view with no other options and no column browser. I have checked several forums and all of them deal with the Music that is in the Library.  I may be wrong, but wasn't column broswer there in earlier versions for the connected devices?  If so, why take it away?  I guess what I want to know is, is this going to be permanent?

    The column browser doesn't make as much sense in your playlists as it does in your library and does seem to be gone. It does still work in your library. While you're in the Music tab, choose Songs to see everything. Cmd-B will still bring up the column browser.

  • I have a Mac book pro with 750 gigs of space but when I check the memory available it's telling me that I have 1.5 gigs of available space and that my scratch hard drive is full. When looking in the color code of storage it's all other consuming the space

    Ok so I have a MacBook Pro that has 750 gigs of space but I keep getting an error message that my scratch hard drive us full. When I look at the storage it's saying that I have 1.5 available gigs of space and when I dig deeper it shows that it's not video, audio or document but it's other. What can it be and what can I do about it?

    See here for answer about the OTHER which is taking up space:
    http://pondini.org/TM/30.html
    and here:
    http://pondini.org/OSX/DiskSpace.html
    See Kappys excellent note on the rest of “other” files taking up your space:
    What is "Other" and What Can I Do About It?

  • Solved yet it does not appear to be so, when looking at the Category

    Hello : )
    This topic "Missing content - what's happening here?" in Safari.
    http://discussions.apple.com/thread.jspa?threadID=652524&tstart=0
    Is indeed Solved yet it does not appear to be so when looking at it in the Safari category. Little software bug ?
    http://discussions.apple.com/category.jspa?categoryID=169
    Thank you.
    Eme

    Hello Ali,
    Many thanks for the reply. The OP speaks of marking it solved first and making the helpful stars disappear, but the helpful are there. so I just wondered.
    http://discussions.apple.com/message.jspa?messageID=3164852#3164852
    Yes, I realize the helpful & the solved stars will remain if then marked
    not answered.
    Thank you.
    Eme;~[)

  • PB shuts itself down when connect/disconnect the AC Adapter plug!

    Have a difficult problem with my powerbook these days.
    The machine works perfectly fine with the AC Adapter or on the battery alone.
    But strange thing happens when I plug in the Ac Adapter to the machine, or unplug the connect from the machine, the Powerbook just shut itself down without any warning.
    Some might say that it has something to do with the battery, which means I have to replace the battery. I will be more than happy to do that, because this Powerbook was built in 2004, the battery is showing some signs of aging.
    According to my experiment, when I plug the connector to the machine, at a certain point, there is a electrical noise comes out from the machine, which I assume that the connector is "short-circuited". Which means I have to replace the whole DC board that will cost me £50.... -_-#
    Any ideas are very appreciated!! Thanks.
    null

    Which means I have to replace the whole DC board that will cost me £50...
    Yes, it may well mean that. Or it may mean you need to replace your AC adapter, which would cost less. But first, can you borrow an adapter that's known to be good, just to test with?

  • HT3964 My Macbook air charges intermittently. At times when I connect the power adapter it shows that power is coming in but  says "not charging" and the led light on the power adapter does not light. At other times it charges normally. Any ideas?

    Hey guys,
    I am having problems with charging my mac Air.  Sometimes it charges perfectly but then at times much as it shows that it's getting the power from the charger, it says "not charging" and the led light on the charger does not light up. Any help?
    Rgds,
    Kido-Vj

    That can happen when you are Taxing the system. No Apple supplied AC adapter supplies enough power to both power the system and charge the battery at the same time when the system is under Heavy Load, when you are Taxing the system heavily. At those times it will draw power from both the AC adapter and the battery at the same time. So if it is drawing power from both it can't charge the battery while it is drawing power from it.

  • NameNotFoundException when looking up DataSource in new Thread

    I am trying to run a db procedure in a new Thread within a J2EE app. The actual code to run the procedure is in a class that is called from a JSP page, a controller if you will (not a servlet). When I start the new Thread and try to get a connection from my DataSource, I get a NameNotFoundException. We are using iPlanet and Oracle. Is it a bad idea to start a new Thread from within iPlanet? Is there another way to run the db procedure and not make the user wait for it to finish?
    Any help/suggestions would be greatly appreciated.

    Okay, here is my Runnable class.
    <code>
    public class ExtractRunner implements Runnable, Serializable
    Extract m_extract;
    String m_propfile;
    String m_modName;
    LogManager m_log;
    public void run()
    DBConnectionManager conMan = null;
    try
    conMan = new DBConnectionManager(m_log.getElectronicServicesLog(),
    m_propfile, m_modName, "");
    int result = m_extract.doExtract(conMan, m_log);
    catch (Exception e)
    e.printStackTrace();
    finally
    m_extract = null;
    if (conMan != null)
    conMan.release();
    conMan = null;
    m_log = null;
    ExtractRunner(Extract extract, String propfile, String modName, LogManager log)
    m_extract = extract;
    m_propfile = propfile;
    m_modName = modName;
    m_log = log;
    </code>
    Here is the code that starts the thread. It is in another class that is called from the JSP.
    <code>
    public int doExtract(Extract extract)
    ExtractRunner er = new ExtractRunner(extract, PROP_FILE, MOD_CODE, m_log);
    Thread t = new Thread(er);
    t.setName("ExtractRunner");
    t.start();
    return 0;
    </code>
    And here is the code that calls the db procedure. It is in the Extract class.
    <code>
    public int doExtract(DBConnectionManager dbConnMgr, LogManager log)
    DBProcedureStatement dbStmnt = null;
    DBQuery dbQuery = null;
    Vector rs = null;
    int sqlResultCode = 0;
    dbStmnt = new DBProcedureStatement(this.getExtractProcedure());
    dbStmnt.addParameter(this.getParameters());
    try
    dbQuery = new DBQuery(dbConnMgr);
    long start = System.currentTimeMillis();
    log.logDebug("ExtractRunner::run()", "debug",
    "Starting extract at " + start);
    rs = dbQuery.doProcedure(dbStmnt);
    long elapsed = System.currentTimeMillis() - start;
    log.logDebug("Extract::doExtract()", "debug",
    "Done with extract." +
    " Elapsed time(ms): " + elapsed);
    if (rs != null && !rs.isEmpty())
    sqlResultCode = ((BigDecimal)rs.elementAt(0)).intValue();
    log.logDebug("Extract::doExtract()", "debug",
    "Result = " + sqlResultCode);
    //System.out.println("REsult code: " + sqlResultCode);
    else
    sqlResultCode = GEN_ERROR; //Procedure error
    sqlResultCode = 0; // The extract is no longer returning a result code
    // so if there's no Exception return SUCCESS
    catch (Exception e)
    log.logError("Extract::doExtract", "FDE_LOGGING",
    "Error doing extract. Exception: " + e);
    e.printStackTrace();
    sqlResultCode = GEN_ERROR;
    finally
    DBUtil.releaseResults(rs);
    //sql = null;
    rs = null;
    dbStmnt.finalize();
    dbStmnt = null;
    dbQuery = null;
    log.logDebug("Extract::doExtract", "FDE_LOGGING",
    "END: Results: sqlResultCode=" + sqlResultCode);
    return sqlResultCode;
    </code>

  • NameNotFoundException when looking up JNDI

    Hi,
    I'm getting the same naming exception you can see @ http://www.coderanch.com/t/51509/Struts/Calling-EJB-action-class when looking up an ejb object.
    How should I lookup the object?
    Thank you in advance,
        Michael Jones

    Hello
    Please try the following.
    Do annotate the EJB with the corresponding name in order to identify it later on:
    @Stateful(name = "MyLostEJB")
    public MyLostEJB implements LostEJBRemoteHome, LostEJBLocalHome
          public String sayHello(){ return "Hello"; }
    And then:
    LostEJBRemoteHome myEjb= null;
    myEjb= (LostEJBRemoteHome ) new InitialContext().lookup("MyLostEJB/remote");
        myEjb.sayHello();
    I hope it helps
    Alejandro

  • Trying to sync ipad and it is telling me i have 10.6 gb of  video. when looking on the left column under my ipad I see it is coming from previous rentals that are no longer available on my ipad. how can I delete this to free up the space on my ipad?

    Hi,
    When trying to sync my ipad i see that I have 10.6 gb of video on my device. When i looked at my itunes under rentals i see that is where all the video space is coming from. These videos are no longer available to watch and I didn't know  how i can delete them to free up the space on my ipad??

    Did you try to set it up as new device, as explained in this article?
    How to erase your iOS device and then set it up as a new device or restore it from backups
    If this does not work, use iTunes to set it back to factory settings, which would also install the latest software:
    Use iTunes to restore your iOS device to factory settings - Apple Support

Maybe you are looking for