Thank you,there is a error in my FIRST EJB,can you help me?
This in a servlet:
public int getNo()
TestSessionEJB test = new TestSessionEJB();
return test.getNo();
This in a TestSessionEJB class�F
package test;
import javax.naming.*;
import javax.rmi.PortableRemoteObject;
public class TestSessionEJB {
private TestSessionHome testSessionHome = null;
public TestSessionEJB() {
try {
Context ctx = new InitialContext();
Object ref = ctx.lookup("TestSession");
testSessionHome = (TestSessionHome) PortableRemoteObject.narrow(ref, TestSessionHome.class);
catch(Exception e) {
e.printStackTrace();
public TestSessionHome getHome() {
return testSessionHome;
public int getNo()
TestSession test = null;
int li_rtn = 0;
try
this.getHome();
test = testSessionHome.create();
li_rtn = test.getNo();
catch(Exception e)
return li_rtn;
Not use bas4.5,is there any error?Thanks a lot.
I don't think you know the first thing about EJBs. I think you better go back and read a book or two first before attempting to write an EJB. Mastering EJBs or Professional EJB are both good books. You are not even close to writing your first EJB.
Similar Messages
-
I cannot open Keynote as I usually would. Apparently there is a error -600 ocurring. Please can someone help? Thank you..
Contact the BT Care Team. They are the moderators who oversee this forum and will be able to look into this for you. They may take a few days to respond but you will get an immediate online acknowledgement with a reference number to note in case you need to follow up.
You can click the white star next to this message if you think it was helpful. -
When downloading the new 10.7 update for itunes, an error message saying that there is an error writing to file, verify that you have access to this file comes up... what is this??
That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
XP instructions in the following document: How to perform disk error checking in Windows XP
Vista instructions in the following document: Check your hard disk for errors
Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards? -
I bought the APP Sasol Birds. 146MB of the 147,5MB downloaded without any problem. The download stopped and first the error code 3259 and later the error code 8012 appeared. Can someone help? I want the download to be completed. Thank you. Pieter Strobos
Maybe your firewall or security software are preventing the download from finishing. You could try disabling them until you finish the download
-
Hi i have a iPod 5th gen it ran out of charge so as you would i put it on charge however after 25 mins i went over to see it and it wont turn on what so ever. I have held in the lock button and theres no sign of it turning on. Can anyone help? Thanks
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try another cable
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar -
I currently use ibooks on my iphone 4s... I want to be able to send several documents at the same time in one email, I thought there was a way to do this? Can you please help?
Install ClamXav and run a scan with that. It should pick up any trojans.
17" 2.2GHz i7 Quad-Core MacBook Pro 8G RAM 750G HD + OCZ Vertex 3 SSD Boot HD
Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101 -
Lightroom doesn't recognize mine camera, the Nikon D800 E to shoot tethering. There is no problem with mine laptop. Can you help me with this issue?
Ronald ( the Netherlands)Sure the laptop know's that the Nikon D800E is connected, but lightroom doesn't recognise this camera. Two weeks a go it wasn't a problem at all.
-
I tried several times to download pages that I already pay for and it says that there was an error in the installation , what can I do
- Temporarily disable anti virus software if installed.
- Apps such as Little Snitch, Net Nanny, and Hands Off can prevent apps from downloading.
- Third party download managers can cause problems when downloading apps.
I see v10.7.4 in your profile but make absolutely sure that's correct because the minimum requirements for Pages is v10.7.4 according to the Pages Information panel at the App Store.
Click your Apple menu icon top left in your screen. From the drop down menu click About This Mac. -
I have purchased a new Mac power book 10.9.2. I cannot open adobe illustrator CS4 and get the error message 150:30. Can you help?
You are welcome, Sharon.
You should be aware that the newest version, CC, is only available as a subscription.
CS6 can be purchased at Adobe, or second hand, see below.
Older versions such as CS5 can only be bought second hand, with a licence transfer through Adobe, requiring that the licence has not been used as a basis for an upgrade. -
When I startup Itunes I get "An Unknown Error Occurred -42110" Message. Can you tell me what is wrong and how to resolve?
Try the following user tip:
iTunes for Windows 11.0.2.25 and 11.0.2.26: "Unknown error -42110" messages when launching iTunes -
Why I got this email if I didn't schedule any storage plan ? This is the email I got;
On 10/07/2013 you are scheduled to be charged $20.00 for your 10 GB iCloud storage plan, but there is a problem with your payment information, Can someone help me ? I don't want to be charge for something I don't want to buy.You may want to do couple things
1. cancel auto renewal for icloud - instructions here -under downgrade storage
http://support.apple.com/kb/HT4874
2. change your payment info in itunes, to either none or other payment method - instructions here
http://support.apple.com/kb/ht1918 -
If you continue to see error 4005, 4013, or 4014 when you restore your device
i continue to see error 4005, 4013, or 4014 when i restore my Iphone 5
If you get the same errors on different computer and with different computers then contact Apple : iOS: Restore errors 4005, 4013, and 4014 :
If you continue to see error 4005, 4013, or 4014 when you restore your device, contact Apple for support. -
I am trying to update to ios6, on my iPad 2 . I get a message saying "error occurred while downloading ios6" can anyone help.?
Sorry to hear your Adobe experience has been less than stellar. I'll try to help...
1. Photoshop 14.2.1 is now two releases out of date. You might want to go to your Creative Cloud application and ask it to install Photoshop CC (2014). Earlier this year Adobe released 2014.0 as a separate install that can live side by side with 14.2.1. Then just a few days ago they released 2014.1 as an in-place upgrade to 2014.0.
2. You may be able to update Camera Raw directly to version 8.6 by a link from this page:
Keeping Photoshop Up-To-Date
Best of luck to you. Please let us know here if these things help.
-Noel -
Do you have to down load Mountain Lion from the internet every time you need to do a clean install? or can you make a copy of Mt Lion onto a USB stick and install off that?
ThanksYes you can make a USB stick of Lion or Mt Lion. Use Lion Disk Maker after you download OS X from the internet.
For Lion you have to point the download to an external drive and watch when it completes and reboots the system to start the install disconnect the external. If you bought Mt Lion from the Mac App Store then you can download it from there and just cancel the install when it comes up on the desktop.
If you are downloading from the Recovery HD or from the Online Internet Recovery system, slightly different then the built in Recovery HD, then again you need to point it to an external drive and discoonect that drive when the system reboots to start the real install.
Then use Lion disk maker to create either a DVD disc or USB thumb of the install files. -
I noticed a couple of days ago that my url bar on my imac was no longer there,I am new to the apple community and I am not sure how to progress with my qustion. I have tried selecting :- view / customise toolbar but the dropdown box which has various options to drag and drop does not show the address bar I am stuck can you help
Thanks.... I too had this problem and didn't have a clue why it disappeared at times and how it reappeared as well. Got another bird with the same stone
Re: I have lost my Safari url bar ,tried view/customise toolbar but when box opens there is no address bar to drag back can anyone help please
Aug 15, 2012 10:09 PM (in response to jame5allen)
Go to: Safari>View Menu>Select 'Show Toolbar'.
BCV
Maybe you are looking for
-
Hi Experts, I have put a select statement in a function module which takes a lot of time to pick the data as it has got some complex selections in it. Here is the code: SELECT DOCNUM STATUS CREDAT CRETIM UPDDAT UPDTIM DIRECT IDOCTP MESTYP F
-
I just uploaded 764 photos from a SD card into Iphoto, I did not deleted from the SD card but left themm on the card, and the photosshow up on my last import and also in the librart under "Photos' however when I click on a event it say in the upper r
-
Use Control File to load data in BW7.0
Hi All, I have a requirement to load data in BW using control file. The development is done in in BW 7.0. In BW 3.5 there is an option of FILE IS ( Control File or Data File ). Please suggest how to simulate the same in BW 7.0 Regards, Vikram
-
I encountered this problem when trying to download a book from our public library on my new NOOK. It is our second one. Am wondering if having two active NOOKs, one with my husband as primary user and the new one with me as primary user is the caus
-
Enabling alerts for Seeburger Monitor
Hello, I would like to know if there is any way to enable alerts for errors in Seeburger Monitor? There is a checkbox "Enable alerts" in AS2 adapter communication channel,I tried to check it,but it doesn't seem to be working. Currently,we have to man