Hand Exceptions
Hi All ,
What are Hand exceptions ?
Please help me with some simple examples ..
Thanks in Advance
I've got this term from exam topics of 1Z0-146(Advanced PL/SQL)
I am also not sure in which context they used this term Hand Exception Ie.Hand off Exceptions or Handling exceptions?
Similar Messages
-
Is inDesign the best product for publishing an interactive training manual?
I am building an interactive training manual for a fire department and I need to find out the best way to publish this document for use on an iPad or other tablet. I will be embedding video, text, and photos, along with stacking photos for the 360 degree view. So far I have read that there is a 2GB size limitation for articles. I've also read that there is was way to publish privately if it becomes difficult to download from acrobat.com. I would like this training manual to be all inclusive without having to break it up into multiple articles. I would like to embed over 3 hours of video, over 200 photographs, over 260 pages of text, and have interactivity throughout. Is this out of inDesign's scope? Is there a way to publish this large of a document to multiple iPads without using the App Store or Android Market? I'm just starting out so I'm looking forward for any constructive help I can get.
HOW interactive are we talking here? Buttons with rollovers, menus, or the ability to fill in answers like a workbook?
A freelance client of mine wanted to prepare a workbook with "interactivity" and all looked well... until i was told what "interactive" meant. This example was a science workbook for schools which behaved as a facsimile of the normal book which would be filled in by hand, except that answers were not always checkboxes or text. Sometimes answers would be:
plot a graph
draw a picture of an amoeba (for example) and label the parts; or draw the diagram of isopropyl alcohol;
fill in a crossword
join the correct reducing agent to the correct oxidising agent
AFAIK this kind of interactivity isn't possible with the off-the-shelf indesign, and i don't know of any third party software which provides this kind of interactivity. Yes, the author could have been asked to rephrase the questions to fit the limitations of indesign's fill-in forms and interactivity, but the author did not want this.
Also, is tablet-specific software the right platform to use? Perhaps a website with a paywall may be a better form of distribution and construction, allowing a RIA (Rich Internet Application) to be made for the project. -
Hi all,
I'm trying to load dbws-callout-utility in a oracle9i Enterprise Edition Realease 9.2.0.5.0 data base.
To do that, I've follow these instructions "http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm" step by step:
- I've set shared_pool_size to 96M (then, even to 150M) in my spfile.
- I've set java_pool_size to 80M in my spfile.
- I've tested this changes were well done.
- Then, I've download oc4j_extended 10.1.2 version, as said the link.
- manual says that I must load this jar files:
jssl-1_2.jar, soap.jar, dms.jar, servlet.jar, ejb.jar, mail.jar
- I've could to load these jars without any error using these commands:
cd $ORACLE_HOME/lib
dropjava -u wsuser/pass mail.jar
dropjava -u wsuser/pass activation.jar
cd $ORACLE_HOME/oc4j_extended/j2ee/home/lib
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass ejb.jar
cd $ORACLE_HOME/lib
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass activation.jar
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass mail.jar
cd ${ORACLE_HOME}/oc4j_extended/j2ee/home/lib
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass servlet.jar
cd ${ORACLE_HOME}/jlib
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass jssl-1_2.jar
but when I try to load dms.jar with this command:
cd ${ORACLE_HOME}/oc4j_extended/lib
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass dms.jar
loadjava's process hangs just compiling (resolving) this class: "oracle/dms/address/Optic", so I've got to kill process.
Then, I try to load dms.jar with the same command but without "-resolve" option. This way, I've been able to load all class from
this jar including the named before "oracle/dms/address/Optic". Then I compile all java class by hand except "oracle/dms/address/Optic"
because everytime I try to compile (-resolve) this class, it hangs. So this is my first question: why?.
As I've could to load almost all java class, I said, I'm going to try to load last jar: soap.jar
cd ${ORACLE_HOME}/oc4j_extended/soap/lib
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass soap.jar
but when this command finish, it shows me these errors:
errors : class org/apache/soap/messaging/Message
ORA-29534: el objeto WSUSER.oracle/soap/transport/http/OracleSOAPHTTPConnection al que se hace referencia no se ha podido resolver
synonym : org/apache/soap/messaging/Message
The following operations failed
class oracle/soap/client/ProviderManagerClient: resolution
class oracle/soap/client/ServiceManagerClient: resolution
class oracle/soap/server/http/SOAPServlet: resolution
class oracle/soap/providers/JavaProvider: resolution
class oracle/soap/providers/ejbprov/EntityEJBProvider: resolution
class oracle/soap/providers/ejbprov/StatefulEJBProvider: resolution
class oracle/soap/providers/ejbprov/StatelessEJBProvider: resolution
class oracle/soap/providers/sp/SpProvider: resolution
class oracle/soap/transport/http/OracleSOAPHTTPConnection$1: resolution
class oracle/soap/transport/http/OracleSOAPHTTPConnection: resolution
class org/apache/soap/rpc/Call: resolution
class org/apache/soap/rpc/RPCMessage: resolution
class org/apache/soap/rpc/Response: resolution
class org/apache/soap/messaging/Message: resolution
exiting : Failures occurred during processing
but this has no sense, because this class oracle/soap/transport/http/OracleSOAPHTTPConnection do exists in the jar file and it can be loaded.
so I don't understand..... I try to load class by class to see dependencies or whatever using this command:
I choose this class to begin:
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass org/apache/soap/rpc/Call.class
it shows me:
creating : class org/apache/soap/rpc/Call
loading : class org/apache/soap/rpc/Call
granting : execute on class org/apache/soap/rpc/Call to PUBLIC
resolving: class org/apache/soap/rpc/Call
errors : class org/apache/soap/rpc/Call
ORA-29534: el objeto WSARR.oracle/soap/transport/http/OracleSOAPHTTPConnection al que se hace referencia no se ha podido resolver
synonym : org/apache/soap/rpc/Call
The following operations failed
class org/apache/soap/rpc/Call: resolution
exiting : Failures occurred during processing
so I try to load the class which it had could not find:
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsarr/wsarr oracle/soap/transport/http/OracleSOAPHTTPConnection.class
it shows me:
creating : class oracle/soap/transport/http/OracleSOAPHTTPConnection
loading : class oracle/soap/transport/http/OracleSOAPHTTPConnection
granting : execute on class oracle/soap/transport/http/OracleSOAPHTTPConnection to PUBLIC
resolving: class oracle/soap/transport/http/OracleSOAPHTTPConnection
errors : class oracle/soap/transport/http/OracleSOAPHTTPConnection
ORA-29545: clase especificada incorrectamente: at offset 445 of oracle.soap.transport.http.OracleSOAPHTTPConnection.getHTTPConnection expecting a class-oracle.security.ssl.OracleSSLCredential but encountered a class-oracle.security.ssl.OracleSSLCredential.
synonym : oracle/soap/transport/http/OracleSOAPHTTPConnection
The following operations failed
class oracle/soap/transport/http/OracleSOAPHTTPConnection: resolution
exiting : Failures occurred during processing
o_o ...... but this could be endless!!!!!
Is there someone in this planet who had could to load this jars files without errors?????? :´(
Please, I need help!!!! it's urgent!
Thanks in advance!
MaríaThe error messages you are getting means that the JAR you loaded into the database is invalid.
ORA-29534: referenced object string.string could not be resolved
Cause: Name resolution determined that the indicated object is referenced but could not be resolved.
Action: Correct name resolver or address resolution problems in the referenced class, or correct compilation problems in its source.
Oracle extracts all classes from the jar file by the time you load the jar file and processes each class individually. I suggest you to run this query against the user_objects or dba_objects view to determine the status of your classes
select DBMS_JAVA.LONGNAME(OBJECT_NAME) as OBJECT_NAME
,STATUS
from USER_OBJECTS
where OBJECT_TYPE like 'JAVA%'
On the other hand, I see you are at 9.2.0.5.0, in order for you to avoid hitting known bugs, I suggest you to apply, if possible, the latest 9.2.0.8.0 + July CPU patch
~ Madrid -
What does symbol can't be resolved mean?
Hi again.
I'm looking through another tutorial and have written in a test program. I keep going over the toot(tutorial) and I can't seem to find any syntactical errors, but according to DOS I'm getting a "cannot resolve symbol" and the arrow indicator is pointed underneath the dot of System.out.print(foo) I have had this indicator pointed before in the same place in a different program attempt.
I would like to note like I did from another posting is that I use System.out.print without the "In" If I use the In part the compiler throws a complaint so I leave it out, and it works.
Here's the code:
class test
public static void main (String[] args)
for (int i = 0; i < args.length; i++)
System.out.print( i == 0 ? args[i] : " " + args);
System.out.print();
This will not compile for some strange reason. The example is written the same as the toot except for the "In" after the System.out.printIn line. I had included the "In" back in the and had received two errors so I removed the "In" part.
If anyone knows what "cannot resolve symbol" means that would be great.
Thanks.
RJHi.
Thanks guys.
I just noticed the token page for formatting. What a coincidence :-)
Same as < i > and the closing tag, I see.
Can a url token be specified to a location to an image?
I'll check out the information on the printstream classes.
This java language is really extensive. I inflated the src file and looked over the java files and there looks like so much one can do with this language. It was something watching DOS rapidly extract and scroll, never thought it would stop, lol.
I'm learning about the parent and child relationships on Objects, containers, and components. I think I have somewhat of the idea how it works.
I'm happy that I'm continuing with this. I have tried in the past and have always dropped it because of being unmotivated or just not desiring to go on, both c++ and of Java. I like doing html, some javascripting, css and I feel that I can do java.
Here is a site I did through notepad by hand, except for some of the javascripts. This is my first real web site.
Banners will be removed. I even have a webtv version of my site. Banners seem to do a number on the formatting of pages and do not look good in frames I have noticed :-)
http://rjphotofromnoho.5u.com/lp2.htm
I will soon have chat. Someday I would like to make my own chat, but that will be later. I read some of the toots on sockets and networking and it is interesting.
One question I had for a while is that the tv's that have those channel guides switched on when you turn them on, is this a java orientation environment by any chance?
The look and feel of it looked just like a java gui, looked cool. A friend of mine showed me his guide and all I could think was Java when I witnessed it.
Again, thanks for the responses.
RJ -
Is my hard drive dead (zeroing out data)?
I tried installing Snow Leopard to no avail (it was progressing, but it was at ~70 percent or so after like 8 hours, so obviously something is wrong). So I put the SL disk back in and decided to format the drive and zero out the data. It's saying "Writing zeros to disk. Estimated time: 4 days, 16 hrs" This is an extremely long time for a 160GB hard drive! I don't hear the hard drive seeking or writing or anything. The progress bar doesn't seem to be moving (although I wouldn't expect to see progress on a 4 day estimated time).
Does anyone know how to fix this, or am I going to have to end up taking this iMac in to get it's drive replaced?Thanks for the reply.
I wasn't having any obvious problems with the hard drive before hand, except sometimes while downloading files and trying to play a movie off of the hard drive, the movie would lag. I don't know if that really means anything though.
I've already tried to partition the drive before. The partition went through, but it didn't seem to help the zero out data part.
Maybe this will help, from the installer log:
Looking for system packages
no system packages found
No or Invalid system receipts found on /Volumes/Macintosh HD
Attempting fallback using: /System/Library/PrivateFrameworks/SystemMigration.framework/Resources/FallbackS ystemFiles.plist
Finding system files...
Writing system path cache.
Error writing cache to /Volumes/Macintosh HD/Caches/com.apple.FindSystemFiles.plist
Failed to enumerate /Volumes/Macintosh HD/Library/Caches, cannot prune (
"com.apple.userpictureCache"
Thanks for the help. -
Manage Orchestration by Web Service
For handing exception of Orchestration in Biztalk, does it possible to correct the message content and resume the Orchestration by web service or sharepoint outside Biztalk Admin Console?
I am using Biztalk 2009 in my projectWhat you want to implement is repair and resubmit pattern. <o:p></o:p>
One options as discussed by the below blogpost (in reference) is using SharePoint and InfoPath. You can have a custom exception handler where BizTalk can
write out the failed message to a forms library, then users could click a link there and edit the failed message in InfoPath. When ready, the user clicks “re-submit”
which InfoPath could send to a web service which can resent the message to BizTalk.
http://www.brianloesgen.com/blog/2007/6/24/when-biztalk-meets-sharepoint-it-makes-sense.html
Other options is explore the how the Repairing and Resubmitting has been implemented in ESB portal. Its uses the combination of ESB web services and InfoPath, you can
either resuse this functionality in ESVB portal or you can create your similar to ESB portal.
ESB Portal: Collecting Exceptions and Routing Messages for Repair and Resubmit
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
What Audio Hardware Should I Use?
Intel Core i7-4930K, Asus GeForce GTX 780, Silverstone Temjin SST-TJ04B-E (Black) - My Video Editing Build - percoplus's…
I am building this rig at the moment. I have everything on hand except for the Quadro K4000 which should be here any time.
There is so much info online about system components for video editing, but I am not sure what to do about my audio setup. I am certain the motherboard's onboard audio is capable, but should I get an external box, mixer, etc.? What about speakers?
I have had a set of M-Audio BX5a Speakers connected to my current system's sound card, but one of them is defective and need replacement. So, I'm going shopping today. Not sure if I should go with a good set of computer speakers from Fry's or to Guitar Center for an elaborate audio interface with studio monitors. I am not a sound engineer, but I do film musical performances and other events and would like to deliver somewhat professional sounding video.Surround monitoring is different with Pro Audio interfaces. They have separate channels for audio output ie routing via analog and they don't come with a surround sound decoder for the SPDIF. Surround sound is monitored via separate wires and speakers for each channel in surround. This means the audio interface has to have atleast that many analog channels to use for 5.1 or 7.1. The UR22 only has stereo so that would not be enough. That would require the UR824 or something similar which would cost far more. Consumer speakers have decoding or routing through the audio device and sub often times versus separate channels for each. This is ok for just listening to surround but impossible to use really for mixing surround. You also have the cost difference in speakers since you have to buy a speaker for each channel in pro audio setup. If you need surround and don't have the budget for separate speakers then the onboard audio or a Asus Audio card are going to be the best options.
Eric
ADK -
Hi All,
I need to develop a model using RMI, in which 2 way communication is possible. For example, if there are 3 server running on 3 diff. machine(or on same), they all should be able communicate with each other.
one and two way communication is possible.......but confuesed with 3 way.
Can anybody give some tips....
Thanks...
Vaibhav GandhiThe final project includes the following 19 source files:
1. Chad Salinas Account.java - the account implementation class
2. Chad Salinas AccountInfo.java - the data class containing the pin and acctnum from the client request
3. Chad Salinas ATM.java - the interface to the ATMImpl.java
4. Chad Salinas ATMFactory.java - interface to the ATMFactoryImpl , returns remote reference to ATMImpl instance
5. Chad Salinas ATMFactoryImpl.java - implements the ATMFactory interface to the ATMImpl
6. Chad Salinas ATMImpl.java - implements interface to the ATM
7. Chad Salinas ATMServer.java - server creates an ATMFactoryImpl instance, registers it with the registry
8. Chad Salinas BankServer.java - hosts the remote bank and security service
9. Chad Salinas Client.java - drives the ATM system
10. Chad Salinas ATMListenerInf.java - interface to the Client, listens to the atm for transaction notifications
11. Chad Salinas TransactionNotification.java - create the TransactionNotification object
12. Chad Salinas Bank.java - implementation class where accounts are created and reside
13. Chad Salinas Security.java - implementation class authenticates and authorizes banking transactions
14. Chad Salinas BankInf.java - interface to the Bank
15. Chad Salinas SecurityInf.java - interface to the Security service, returns remote reference to Security instance
16. Chad Salinas AccountInf.java - interface front ends Account like ATM front ends ATMImpl
17. Chad Salinas AccountException.java - User defined exception class to throw insufficient funds exception
18.Chad Salinas ATMException.java - User defined exception class to throw insufficient cash-on-hand exception
19. Chad Salinas SecurityException.java - User defined exception class to throw authentication and authorization exceptions
The following 6 files comprise the implementation .class files
that need to rmic'd after comiling the source:
Chad Salinas ATMImpl.class
Chad Salinas ATMFactoryImpl.class
Chad Salinas Bank.class
Security.class
Account.class
Client.class
Test the program using the following steps:
Compile the source files with:
javac cscie160\project\*.java
rmic to get the client stubs and server skels with:
rmic cscie160.project.ATMImpl
rmic cscie160.project.ATMFactoryImpl
rmic cscie160.project.Bank
rmic cscie160.project.Security
rmic cscie160.project.Account
rmic cscie160.project.Client
start rmiregistry
start rmiregisty
start the BankServer with:
java cscie160.project.BankServer
start the ATM server in another cmd window with:
java cscie160.project.ATMServer
start the Client in another cmd window:
java cscie160.project.Client
Design Considerations:
Additional account attributes - I decided to make account number, PIN, and account permissions attributes of
an account. I could just have easily created a special security object to
contain these data members. However, the implemntation, with respect to data structure
and accessing an element would be equivalent to what I have already done with
accounts. I put the accounts in an ArrayList an iterate the list to get the element.
Authenticate, Authorize, and grab the account - I decided that since I grab an account in
ATMImpl, I may as well call the security service with the client-supplied AccountInfo instance
and the Bank-supplied account instance as opposed to grabbing the account and/or bank again in
the security instance.
Account constructors - I expanded the account constructors to create PIN and permissions when an
account is created.
Transfer - A transfer is not exactly a withdrawl and a deposit, because a withdrawl connotes taking cash from
ant ATM whereas a transfer transaction should not decrease an ATM's cash-on-hand.
Transaction Notification - I call tn.toString for all transactions including getBalances. The idea is to see the
transaction details even in the case of a failure.
What to expect:
Everything comiles, rmic's, and executes as it should! -
okay I purchased a mac mini server MC408LL/A Serial YM943035B9X off ebay
which is probably my first problem.
It says its new and its in the box and all. I turn it on, it needed a wired keyboard and mouse. well I've borrowed them. So then it cycles me through installation. Asked for a product serial number, so I input the osx 10.6 server unlimited client that is the only product code in the package. I put it in, it restarted and then put me to a screen that says mac osx server v10.6 and asks me for a name and password. I don't know what to do from this point at all. I never set an admin name and password. It asked me for my name and my company name and that isn't working for a name and password. helpwell, for a few mins I got confused on the raid set. I now see that I was seeing things wrong, or it was wrong and then was fixed by disk utility perhaps. it seems that disk utility helped a lot more in this situation than I've ever seen on older macs.
so, i did achieve a very very slow network boot. but the air drive seems to work well. too bad I'll only use it once in my life. i rarely use cds. the one issue that I have right now, after doing the wipe and reinstall, was the fear that I did something wrong to the raids. and fear of setting up the server aspect wrong. it looks like 200 different drives or folders on the network, and I have to keep my keychain handy. I don't think i could have done this without the macbookpro, especially for emergency advice in the forums. Thank you forum gawds
But JJ, you probably know more than me on the subject. I wasn't able to migrate. It kept giving me grief about accounts having the same name. So everything I'm doing by hand, except my acrobat won't work without the box serial. I certainly don't know where that is, and I use my acrobat every day. So now its all about updates for me. Hope your set up went well Hope you had a wired keyboard in the place where all unused equipment lives. -
The Macally Icekey driver has a serious problem.
It was evidently built with some debugging code, because it floods the console log with multiple lines of debug messages for every keystroke.
This not only makes it hard to find things in the console log, it makes it very difficult to use the console because of the messages. For example, booting to single user mode you cannot see the command line because of the spew.
The messages look like this:
5/1/09 03:47:43 kernel test handlereport
5/1/09 03:47:43 kernel the 0 position is 0, len = 8
5/1/09 03:47:43 kernel the 1 position is 0, len = 8
5/1/09 03:47:43 kernel the 2 position is 0, len = 8
5/1/09 03:47:43 kernel the 3 position is 0, len = 8
5/1/09 03:47:43 kernel the 4 position is 0, len = 8
5/1/09 03:47:43 kernel the 5 position is 0, len = 8
5/1/09 03:47:43 kernel the 6 position is 0, len = 8
5/1/09 03:47:43 kernel the 7 position is 0, len = 8
That's what a single keystroke generates in the console log.
It also makes the machine sluggish at times, or can cause missed keystrokes.
Macally seems to have no interest in fixing this and from what I have read tells users who email them "Sorry, we have no plans to fix this."
However, some users in a thread last year reported that the older Icekey drivers did not have this problem and worked much better.
Does anyone know how to get one of those old drivers or where they might be stored?
Again, Macally is no help, and this is a pretty serious issue. I paid $50 for this keyboard and I like it, but if I can solve this problem I'll end up having to toss it.
Thanks.
Message was edited by: cshappleI really don't like laptop keyboards as much as full travel mechanical anyway, and rubber-dome keyboards hurt my hands except for the very best of them.
I did try the new Apple keyboards, and I think they are far too light and small, and the key shapes and layout is pretty terrible. I realize a lot of people like them, but I don't like them.
Also, when I played with the new Apple keyboards, they did require drivers and the drivers were buggy, so I'm not sure what you mean about no driver issues.
I have heard that the Logitech Dinovo series has a little more key travel, but is otherwise a mechanical scissor setup, so I might try one of those eventually.
It's pretty silly for a keyboard to need a driver in 2009. All of the keys can be added to a standard decoded matrix without a driver.
I would like to see Apple make their aluminum keyboards heavier, larger, and with a more standard key shape and layout, and add another 1-2mm of key travel. That would sell me and a lot of other people.
Oh and please, no drivers... -
I would love an App for the iPad that would let me (us)...
Open, Read and Edit Keychains created on my iMac or at least work across i platforms. That way I would have all my information, passwords, etc in one place. There are lots of Apps that will let you store info securely on your iPad but I want cross platform ability.
How about it App Developers? I think their's a market untouched by anyone as yet.
Dave (to busy to write it myself)Dropbox & Evernote work as a place to store data fairly securley as does a locked sortable Excel Database file. The problem with non-resident native appsor files is they are more apt to be bridged or penetrated than those on a locked & protected file on a local protected computer like my iPad or iMac. Plus it would just be nice if Keychains worked on all of Apples platforms. You would only have to enter it in one place if we had a Resident Native Apple App like Keychains. I put all my data in it years ago and have over 200 entries to transfer. Just wishing for a better more secure accessible at anytime & place native app like Keychains to operate across the whole platform. I want my info on my iMac synced to all my info on my iPad. I have photos of my motorcycle, VIN number and license plate in my database. I do the same for my guns, car, TV, computer, iPad, front & back of credit cards, social security number, yahtta, yahtta.
That way if I need any information it is at my fingertips literally since I seldom let my iPad 2 out of my hand except when driving. LOL I don't even store or keep my personal keychain on my iMac instead I put it on a tiny encrypted flash-drive-type-of-device used by the FBI and CIA for transport sensitive data. It connects to my iPad via a special adaptor. I can lay it on my desk at work and people have no clue what is is and never even give it a second thought. -
import java.rmi.*;
import java.rmi.server.UnicastRemoteObject;
public class ATMFactoryImpl extends UnicastRemoteObject implements ATMFactory
private String name;
public ATMFactoryImpl(String s) throws RemoteException
super();
name = s;
* getATM() returns a remote reference to an ATM instance
public ATM getATM() throws RemoteException
System.out.println("Returning an ATM instance");
ATMImpl oneATM = new ATMImpl("anATM");
return oneATM;
Chad Salinas ' readme file for the Final Project in CS160
The final project includes the following 19 source files:
1. Chad Salinas Account.java - the account implementation class
2. Chad Salinas AccountInfo.java - the data class containing the pin and acctnum from the client request
3. Chad Salinas ATM.java - the interface to the ATMImpl.java
4. Chad Salinas ATMFactory.java - interface to the ATMFactoryImpl , returns remote reference to ATMImpl instance
5. Chad Salinas ATMFactoryImpl.java - implements the ATMFactory interface to the ATMImpl
6. Chad Salinas ATMImpl.java - implements interface to the ATM
7. Chad Salinas ATMServer.java - server creates an ATMFactoryImpl instance, registers it with the registry
8. Chad Salinas BankServer.java - hosts the remote bank and security service
9. Chad Salinas Client.java - drives the ATM system
10. Chad Salinas ATMListenerInf.java - interface to the Client, listens to the atm for transaction notifications
11. Chad Salinas TransactionNotification.java - create the TransactionNotification object
12. Chad Salinas Bank.java - implementation class where accounts are created and reside
13. Chad Salinas Security.java - implementation class authenticates and authorizes banking transactions
14. Chad Salinas BankInf.java - interface to the Bank
15. Chad Salinas SecurityInf.java - interface to the Security service, returns remote reference to Security instance
16. Chad Salinas AccountInf.java - interface front ends Account like ATM front ends ATMImpl
17. Chad Salinas AccountException.java - User defined exception class to throw insufficient funds exception
18. Chad Salinas ATMException.java - User defined exception class to throw insufficient cash-on-hand exception
19. Chad Salinas SecurityException.java - User defined exception class to throw authentication and authorization exceptions
The following 6 files comprise the implementation .class files
that need to rmic'd after comiling the source:
ATMImpl.class
ATMFactoryImpl.class
Bank.class
Security.class
Account.class
Client.class
Test the program using the following steps:
Compile the source files with:
javac cscie160\project\*.java
rmic to get the client stubs and server skels with:
rmic cscie160.project.ATMImpl
rmic cscie160.project.ATMFactoryImpl
rmic cscie160.project.Bank
rmic cscie160.project.Security
rmic cscie160.project.Account
rmic cscie160.project.Client
start rmiregistry
start rmiregisty
start the BankServer with:
java cscie160.project.BankServer
start the ATM server in another cmd window with:
java cscie160.project.ATMServer
start the Client in another cmd window:
java cscie160.project.Client
Design Considerations:
Additional account attributes - I decided to make account number, PIN, and account permissions attributes of
an account. I could just have easily created a special security object to
contain these data members. However, the implemntation, with respect to data structure
and accessing an element would be equivalent to what I have already done with
accounts. I put the accounts in an ArrayList an iterate the list to get the element.
Authenticate, Authorize, and grab the account - I decided that since I grab an account in
ATMImpl, I may as well call the security service with the client-supplied AccountInfo instance
and the Bank-supplied account instance as opposed to grabbing the account and/or bank again in
the security instance.
Account constructors - I expanded the account constructors to create PIN and permissions when an
account is created.
Transfer - A transfer is not exactly a withdrawl and a deposit, because a withdrawl connotes taking cash from
ant ATM whereas a transfer transaction should not decrease an ATM's cash-on-hand.
Transaction Notification - I call tn.toString for all transactions including getBalances. The idea is to see the
transaction details even in the case of a failure.
What to expect:
Everything comiles, rmic's, and executes as it should!
Chad SalinasIs there a question in there someplace?
-
Just bought brand new new iMac. When browsing in Safari, sometimes the text suddenly gets super large. I'm doing nothing except reading the screen, tho I usually have my hand resting lightly on the mouse. I can get back to normal size by clicking "actual size" in View. But then it does it again a minute or two later. What gives? Something seems defective--but what?
From System Preferences, Mouse, Point & Click, Secondary click. Go to it hover over Secondary click and watch the short video sequence change it left right, left right, you will see exactly what is does. No I do not think your Mouse is defective, you simply need to take control of your Mouse finger.
-
I can hear caller but he can't hear me except on hands free and speaker phone
I can hear caller but he can't hear me except on hands free and speaker phone, hoew to fix this problem
Hi Shirley,
Long shot, but...
Open Audio Midi Setup in Applications>Utilities, see the input & output options & KHz setting there, some things will change it for their own use, then not set it back. -
Exception when readObj() - please give me a hand!
I am writing a Client/Server application where Server simply sends object to the client. The first object goes well but when the client side reads the second object, the exception caught was "Type code out of range, is -84". Can anybody kindly give me a hand? Thanks very much in advance!
Result on Client:
C:\thesisTest>java TestCli
@Line 1: Get ready!!!
Type code out of range, is -84
receive error.
Source for Server :
import java.net.*;
import java.io.*;
import java.util.*;
import sendNode;
public class TestSer {
static sendNode sendNodeObj = new sendNode();
static String inputLine;
public static void main(String[] args) throws IOException {
ServerSocket serverSocket = null;
try {
serverSocket = new ServerSocket(4444);
} catch (IOException e) {
System.err.println("Could not listen on port: 4444.");
System.exit(1);
Socket clientSocket = null;
try {
clientSocket = serverSocket.accept();
} catch (IOException e) {
System.err.println("Accept failed.");
System.exit(1);
OutputStream o = clientSocket.getOutputStream();
ObjectOutput out=new ObjectOutputStream(o);
BufferedReader in = new BufferedReader(
new InputStreamReader(
clientSocket.getInputStream()));
sendNodeObj.sendMsg="@Line 1: Get ready!!!";
sendNodeObj.typeNode=-1;
out.writeObject(sendNodeObj);
out.flush();
out=new ObjectOutputStream(o);
sendNodeObj.sendMsg="@Line 2: Please input Start";
sendNodeObj.typeNode=-1;
out.writeObject(sendNodeObj);
out.flush();
inputLine = in.readLine();
while (!inputLine.equalsIgnoreCase("Start")) {
sendNodeObj.sendMsg="@Error, Please input Start";
sendNodeObj.typeNode=-1;
out.writeObject(sendNodeObj);
out.flush();
inputLine = in.readLine();
out.close();
in.close();
clientSocket.close();
serverSocket.close();
Source for Client:
import java.io.*;
import java.net.*;
import java.util.*;
import java.applet.Applet;
import sendNode;
public class TestCli extends Applet {
static sendNode recNodeObj=null;
public static void main(String[] args) throws IOException {
BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
Socket kkSocket = null;
PrintWriter out = null;
try {
kkSocket = new Socket("127.0.0.1", 4444);
out = new PrintWriter(kkSocket.getOutputStream(), true);
} catch (UnknownHostException e) {
System.err.println("Don't know about host.");
System.exit(1);
} catch (IOException e) {
System.err.println("Couldn't get I/O for the connection to: taranis.");
System.exit(1);
InputStream i= kkSocket.getInputStream();
ObjectInput in= new ObjectInputStream(i);
try {
recNodeObj = (sendNode)in.readObject();
System.out.println(recNodeObj.sendMsg);
recNodeObj = (sendNode)in.readObject();
System.out.println(recNodeObj.sendMsg);
if (recNodeObj.sendMsg.equalsIgnoreCase("@Line 2: Please input Start")) {
out.println("Start");
} catch (Exception e) {
System.out.println(e.getMessage());
System.out.println("receive error.");
System.exit(1);
out.close();
in.close();
stdIn.close();
kkSocket.close();You are not being consistent in the way you use ObjectOutputStream and ObjectInputStream.
For every new ObjectOutputStream you create you need a corresponding new ObjectInputStream, because ObjectOutputStream writes a header that ObjectInputStream reads.
In general, you probably don't want to use multiple OutputOutputStream objects on a given underlying socket, because it is ineffecient in the way class names etc are encoded.
Sylvia.
Maybe you are looking for
-
Is there a way to move files from one folder to another without copying and pasting and then going back to delete the original? The cut and paste function is not available and there's no "move to" function. Am I missing something? It was so easy w
-
Giving error message when saving the Query
Hello, I have added a new calculated key figure to the structure in a Query but when I try to save the Query it is giving error message is below. Error Message: u201CThis internal error is an intended termination resulting from a program state that i
-
What is the use of properites file
what is the use of properites file
-
User Defined Fields & Tables Problem
After the upgrade to B1 2007 and converting our database to 2005 compatibility as per the upgrade directions, were having some weird issues with our user defined fields and tables. Our user defined fields that used to be alpha-numeric when se
-
Event handler for disclosureopenicon in tree in flex 4
hi all, Is it possible to write event handler to disclosureopenicon for tree control in flex? if its possible means, h w can i write?