Iphone 5s error 2009,9,17,3 plz help me
help me plz im using iphone 5s while updating iphone stucked on apple i got error 3,9,17,2009.
Deepak
This forum is for sap and oracle.
Any way have a look on 687866 note.SQL Server does not exist or access denied.
means u are not able to establish connection to Server.Check this.
Vinod
Similar Messages
-
Error while deployiong bpel process plz help
i am geting an error while deployiong bpel process plz help
BUILD FAILED
E:\jdevstudio10132\jdev\mywork\Application4\vinayread\build.xml:79: A problem occured while connecting to server "chdsez116553d" using port "8888": bpel_vinayread_1.0.jar failed to deploy. Exception message is: ORABPEL-05215
Error while loading process.
The process domain encountered the following errors while loading the process "vinayread" (revision "1.0"): BPEL validation failed.
BPEL source validation failed, the errors are:
[Error ORABPEL-10902]: compilation failed
[Description]: in "bpel.xml", XML parsing failed because "undefined part element.
In WSDL at "file:/D:/product/10.1.3.1/OracleAS_8/bpel/domains/default/tmp/.bpel_vinayread_1.0_679323b0585449e9fd1887e6ee2bf444.tmp/vinayred.wsdl", message part element "{http://TargetNamespace.com/vinayred}Root-Element" is not defined in any of the schemas.
Please make sure the spelling of the element QName is correct and the WSDL import is complete.
[Potential fix]: n/a.
If you have installed a patch to the server, please check that the bpelcClasspath domain property includes the patch classes.
at com.collaxa.cube.engine.deployment.CubeProcessHolder.bind(CubeProcessHolder.java:285)
at com.collaxa.cube.engine.deployment.DeploymentManager.deployProcess(DeploymentManager.java:862)
at com.collaxa.cube.engine.deployment.DeploymentManager.deploySuitcase(DeploymentManager.java:728)
at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.deploySuitcase(BPELDomainManagerBean.java:445)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at com.evermind.server.ThreadState.runAs(ThreadState.java:646)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at DomainManagerBean_RemoteProxy_4bin6i8.deploySuitcase(Unknown Source)
at com.oracle.bpel.client.BPELDomainHandle.deploySuitcase(BPELDomainHandle.java:319)
at com.oracle.bpel.client.BPELDomainHandle.deployProcess(BPELDomainHandle.java:341)
at deployHttpClientProcess.jspService(_deployHttpClientProcess.java:376)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Total time: 1 second
plz give sme solutions<?xml version="1.0" encoding="UTF-8"?>
<definitions name="vinayread"
targetNamespace="http://xmlns.oracle.com/vinayread"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:client="http://xmlns.oracle.com/vinayread"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TYPE DEFINITION - List of services participating in this BPEL process
The default output of the BPEL designer uses strings as input and
output to the BPEL Process. But you can define or import any XML
Schema type and use them as part of the message types.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xmlns.oracle.com/vinayread" schemaLocation="vinayread.xsd" />
</schema>
</types>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MESSAGE TYPE DEFINITION - Definition of the message types used as
part of the port type defintions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<message name="vinayreadRequestMessage">
<part name="payload" element="client:vinayreadProcessRequest"/>
</message>
<message name="vinayreadResponseMessage">
<part name="payload" element="client:vinayreadProcessResponse"/>
</message>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PORT TYPE DEFINITION - A port type groups a set of operations into
a logical service unit.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- portType implemented by the vinayread BPEL process -->
<portType name="vinayread">
<operation name="process">
<input message="client:vinayreadRequestMessage" />
<output message="client:vinayreadResponseMessage"/>
</operation>
</portType>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PARTNER LINK TYPE DEFINITION
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<plnk:partnerLinkType name="vinayread">
<plnk:role name="vinayreadProvider">
<plnk:portType name="client:vinayread"/>
</plnk:role>
</plnk:partnerLinkType>
</definitions>
how to check the
which xsd contains
"{http://TargetNamespace.com/vinayred}Root-Element"????
how to check this plz tell me -
I updated my Iphone 3gs to 6.1.3, after that m having this message:
"Your iPhone could not be activated because the activation server is temporarily unavailable."
"The SIM card inserted in this iPhone does not appear to be supported"
plz help me! what should i do now?You had a jailbreak and unlock.
When you updated you cooked it.
Your phone is done.
Time for a new one. -
Error in opening EM..plz Help..
Error in opening EM..plz Help..
Hi..
I want to start the Enterprise Manager
i started step by step..
but when i had started em in the console
/oracle/infs/bin/
./emctl start
it gaves me these error..
"$ emctl start
Waiting for EM to initialize ..log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /oracle/infs/sysman/log/emd.log (Permission denied)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:100)
at java.io.FileWriter.<init>(FileWriter.java:52)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:284)
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:198)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:239)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:616)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:574)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:481)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:405)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:304)
at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:312)
at oracle.sysman.emd.emdcli.EmCtl.initLoggingSystem(EmCtl.java:1376)
at oracle.sysman.emd.emdcli.EmCtl.checkEMDStatus(EmCtl.java:413)
at oracle.sysman.emd.emdcli.EmCtl.main(EmCtl.java:206)
.log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /oracle/infs/sysman/log/emd.log (Permission denied)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:100)
at java.io.FileWriter.<init>(FileWriter.java:52)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:284)
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:198)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:239)
When i tried to start in the browser (http://servername:1810)
it didn't display any data in the application server part/box!!
Plz help me. thanksHi..
i tried to trace the error..so, i tried to open the targets.xml in
/oracle/infs/sysman/emd
it gaves me "Permission Denied"
Plz help -
photos not getting added up to my photostream. It's showing some kinda registry error in my windows. Plz help!!
Hi Melissa_C!
I have an article for you that may help shed light on this circumstance:
iCloud: My Photo Stream FAQ
http://support.apple.com/kb/ht4486
How long are My Photo Stream photos stored in iCloud?
The photos you upload to My Photo Stream are stored in iCloud for 30 days to give your devices plenty of time to connect and download them.
How many photos are stored in My Photo Stream on my devices and computers?
iCloud pushes all your photos to the My Photo Stream album on your devices and computers, and manages them efficiently, so you don’t run out of storage space.
Your iOS devices keep a rolling collection of your last 1000 photos in the My Photo Stream album. From there, you can browse your recent photos or move the ones you like to your Camera Roll or another album to keep them on your device forever.
Because your Mac and PC have more storage than your iOS devices, you can choose to have all of your My Photo Stream photos automatically downloaded. In iPhoto or Aperture preferences on your Mac, select Photos (or Photo Stream) > My Photo Stream > Automatic Import. All of your photo stream photos will be imported into your Events, Projects, Photos, Faces, and Places folders in iPhoto or Aperture. On your PC with My Photo Stream enabled in the Control Panel, all of your photos will be imported into C:\\Users\<user name>\Pictures\iCloud Photos\My Photo Stream. For iCloud Control Panel 2.0 to 2.1.2 users, the path isC:\\Users\<user name>\Pictures\Photo Stream\My Photo Stream .
Thanks for being a part of the Apple Support Communities!
Regards,
Braden -
Restore Error 3 in iPad 3 plz help me
Restore Error 3 in iPad 3 plz help me
iTunes: Specific update-and-restore error messages and advanced troubleshooting
http://support.apple.com/kb/TS3694
If you can’t update or restore your iOS device
http://support.apple.com/kb/ht1808
Cheers, Tom
Suggest you delete iTunes on your computer and reinstall. http://support.apple.com/kb/HT1923
How To Completely Uninstall and Remove All Traces of iTunes
http://zardozz.com/zz/2008/04/how-to-completely-uninstall-and-remove-all-traces- of-itunes.html/
Message was edited by: Texas Mac Man -
my phone i disabled.when i connected it to the pc to restore and update it..my iphone after 5 mins goes restart? plz help me what should i do
The Basic Troubleshooting Steps are:
Restart... Reset... Restore from Backup... Restore as New...
Malvinfromny wrote:
... i tried to restore it but when i do the phone does half of the steps and then it turns into a blue screen and it doesnt work again what can i do?
If you try all these Steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step... Be sure to make an appointment first... -
i had backup my iphone .. and it started but later it showed no space.. so i had to stop the backup..and had gone to preference>device and deleted the backup.. but still my iphone shows the availabilty as zero..plz help.. how to get the available space that was before..
rabidrabbit wrote:
Can I back up my iPhone 4S to my ipad 3 (64 gb)?
no
rabidrabbit wrote:
However, now I don't have enough space in iCloud to backup either device. Why not?
iCloud only give so much space for free storage, then if you exceed the limit of 5gb you have to pay for additional storage. -
HT4113 my iphone is disable conact to itune solution plz help us
my iphone is disable conact to itune solution plz help us
Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
iOS: Wrong passcode results in red disabled screen
If recovery mode does not work try DFU mode.
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
For how to restore:
iTunes: Restoring iOS software
To restore from backup see:
iOS: How to back up
If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
You can redownload iTunes purchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store -
Error in ECC 6.0 Plz help
Hello experts,
Im trying to install ECC 6.0 SAP NW 2004s SR1, O/s Win Server 2003 R2 EE, 2GB RAM, 320 GB HDD.
But in the IMPORT ABAP phase the below error occured and the installation stopped
ERROR 2009-12-07 00:28:13
FCO-00011 The step runMigrationMonitor with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|runMigrationMonitor was executed with status ERROR .
please help me complete the installation.
thanxHi there,
Thanx for ur reply. Well i dont know which logs u wanted to see i am not sure if these are the logs. If not these logs then plz tell me what kinda logs you wud llike to see as there are heaps of log files from the sapinst_instdir.
As for the loopback adapter i had installed it, but i must say that i really forgot to set the virtual memory. I have 2 GB RAM what values shud i set in the Virtual Mem ? is it ok to set the virtual memory at this point of time?? or do I have to begin all over again.
IMPORT_MONITOR.JAVA.LOG
java version "1.4.2_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_16-b05)
Java HotSpot(TM) Client VM (build 1.4.2_16-b05, mixed mode)
Import Monitor jobs: running 1, waiting 4, completed 33, failed 0, total 38.
Import Monitor jobs: running 2, waiting 3, completed 33, failed 0, total 38.
Import Monitor jobs: running 3, waiting 2, completed 33, failed 0, total 38.
Loading of 'SAPAPPL0_2' import package: ERROR
Import Monitor jobs: running 2, waiting 2, completed 33, failed 1, total 38.
Import Monitor jobs: running 3, waiting 1, completed 33, failed 1, total 38.
Loading of 'SAPAPPL2_2' import package: OK
Import Monitor jobs: running 2, waiting 1, completed 34, failed 1, total 38.
Loading of 'SAPAPPL0_4' import package: ERROR
Import Monitor jobs: running 1, waiting 1, completed 34, failed 2, total 38.
Loading of 'SAPAPPL2_3' import package: ERROR
Import Monitor jobs: running 0, waiting 1, completed 34, failed 3, total 38.
Thnx again -
Error while opening a module. plz help me, very urgent.
when i try to open a module, the following error message appears on my screen.
" no j2ee component found in d:\krisp\programs\servlets".
i've installed bea in c: drive and my servlet program is in d: drive.
plz help me, it's very urgent.Can you provide some more information? What were you doing when this happened?
Can you post the entire error message?
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/ -
My iphone's setting menu is not working.plz help me
When i enter into the setting tab all the menu is not working i cant eneter to any item there or even i cant scroll down.plz help me
Try hard resetting the phone.
Hold down the sleep/wake button and the home button at the same time until the apple appears and let the phone reset itself.
Let me know if you've already tried this or if it works. -
IPhone 5 error code 21 or 3194 please help!
I have got iPhone 5 I am trying to restore keep getting error 21 or 3194, i tired different laptop still the same problem. Antivirus is ok or itune is update to. so please help.
Hi there abz1234,
You may find the troubleshooting steps in the article below helpful.
Resolve specific iTunes update and restore errors
http://support.apple.com/kb/ts3694
Check for hardware issues
Related errors: 1, 3, 10, 11, 12, 13, 14, 16, 20, 21, 23, 26, 27, 28, 29, 34, 35, 36, 37, 40, 1000, 1002, 1004, 1011, 1012, 1014, 1667, or 1669.
Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the error message when you update or restore, contact Apple support.
Error 1015 might happen after making unauthorized modifications to iOS, also called "jailbreaking."
Resolve communication issues
Related errors: 17, 1004, 1013, 1638, 3014, 3194, 3000, 3002, 3004, 3013, 3014, 3015, 3194, or 3200. These alerts refer to gs.apple.com, say "There was a problem downloading the software," or say the "device isn't eligible for the requested build."
Check the hosts file or TCP/IP filtering, which might cause communication issues between iTunes, ports, and servers.
-Griff W. -
I am getting error!!!..Plz help! its urgent!!!
Hi Experts,
I am getting following error.
The initial exception that caused the request to fail, was:
com.sap.tc.webdynpro.progmodel.context.ContextException: DataNodeInfo(LoginView): unknown child node Frage
Please help me with this.
Cheers,
Darshna.Hi Darshana,
In the case of characteristics with attributes from the attribute names, the application generates corresponding context nodes in the Web screen application. No special characters are allowed here. In the case of attribute names with special characters, the error message com.sap.tc.webdynpro.progmodel.context.ContextException is issued when you call the F4 input help.
The error is corrected in SAP Netweaver 2004s BI Support Package 8 Java. For Support Package 7 Java, you must import Support Package 7 Java Patch 1.
Check this links.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cef4f43e-0d01-0010-db84-ede25c874115">Why to use the Common Model Interface (CMI)?</a>
Sap Note
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_pla/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393339333237%7d">939327</a>
SapNote
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_pla/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d31303038333535%7d">1008355</a>
Regards,
Mithu -
Install error -look at the code. plz help
I have the simple applet that I'm able to compile and load on to a JCOP10 cartd. When I try to install the applet so that I can start interacting with it, I get the following error. How do I go beyond this point? I'll appreciate your help.
JCOP shell
Load report:
747 bytes loaded in 0.0 seconds
effective code size on card:
+ package AID 6
+ applet AIDs 13
+ classes 21
+ methods 470
+ statics 0
+ exports 0
overall 510 bytes
end
/set-var J 0
while ${J} < ${PKG_${I}_APP_COUNT}
install -i ${PKG_${I}_APP_${J}_INST_AID} -q C9#(${PKG_${I}_APP_${J}_INST_DATA}) ${PKG_${I}_AID} ${PKG_${I}_APP_${J}_AID}
=> 80 E6 0C 00 24 06 11 11 11 11 11 11 06 22 22 22 ....$........"""
22 22 22 06 22 22 22 22 22 33 01 00 0B C9 09 23 """."""""3.....#
42 38 47 36 74 63 76 73 00 00 B8G6tcvs..
(0 msec)
<= 6A 80 j.
Status: Wrong data
Error code: 6a80 (Wrong data)
Offending APDU: 6A80
Here is the code.
* Package: myWallet
* Filename: MyWallet.java
* Class: MyWallet
* Date: Jan 23, 2004 2:01:58 PM
package myWallet;
import javacard.framework.*;
//import javacardx.framework.*;
public class MyWallet extends Applet
/* constants declaration */
// code of CLA byte in the command APDU header
final static byte Wallet_CLA =(byte)0x80;
// codes of INS byte in the command APDU header
final static byte VERIFY = (byte) 0x20;
final static byte CREDIT = (byte) 0x30;
final static byte DEBIT = (byte) 0x40;
final static byte GET_BALANCE = (byte) 0x50;
// maximum balance
final static short MAX_BALANCE = (byte)0x7FFF;
// maximum transaction amount
final static byte MAX_TRANSACTION_AMOUNT =(byte)0x007F;
// maximum number of incorrect tries before the
// PIN is blocked
final static byte PIN_TRY_LIMIT =(byte)0x03;
// maximum size PIN
final static byte MAX_PIN_SIZE =(byte)0x08;
// signal that the PIN verification failed
final static short SW_VERIFICATION_FAILED = 0x6300;
// signal the the PIN validation is required
// for a credit or a debit transaction
final static short SW_PIN_VERIFICATION_REQUIRED = 0x6301;
// signal invalid transaction amount
// amount > MAX_TRANSACTION_AMOUNT or amount < 0
final static short SW_INVALID_TRANSACTION_AMOUNT = 0x6A83;
// signal that the balance exceed the maximum
final static short SW_EXCEED_MAXIMUM_BALANCE = 0x6A84;
// signal the the balance becomes negative
final static short SW_NEGATIVE_BALANCE = 0x6A85;
/* instance variables declaration */
OwnerPIN pin;
short balance;
private MyWallet (byte[] bArray,short bOffset,byte bLength)
// It is good programming practice to allocate
// all the memory that an applet needs during
// its lifetime inside the constructor
pin = new OwnerPIN(PIN_TRY_LIMIT, MAX_PIN_SIZE);
byte iLen = bArray[bOffset]; // aid length
bOffset = (short) (bOffset+iLen+1);
byte cLen = bArray[bOffset]; // info length
bOffset = (short) (bOffset+cLen+1);
byte aLen = bArray[bOffset]; // applet data length
// The installation parameters contain the PIN
// initialization value
pin.update(bArray, (short)(bOffset+1), aLen);
register();
} // end of the constructor
public static void install(byte[] bArray, short bOffset, byte bLength){
// create a Wallet applet instance
MyWallet me = new MyWallet(bArray, bOffset, bLength);
me.register(bArray, bOffset, bLength);
} // end of install method
public boolean select()
// The applet declines to be selected
// if the pin is blocked.
if ( pin.getTriesRemaining() == 0 )
return false;
return true;
}// end of select method
public void deselect() {
// reset the pin value
pin.reset();
public void process(APDU apdu) {
// APDU object carries a byte array (buffer) to
// transfer incoming and outgoing APDU header
// and data bytes between card and CAD
// At this point, only the first header bytes
// [CLA, INS, P1, P2, P3] are available in
// the APDU buffer.
// The interface javacard.framework.ISO7816
// declares constants to denote the offset of
// these bytes in the APDU buffer
byte[] buffer = apdu.getBuffer();
// check SELECT APDU command
buffer[ISO7816.OFFSET_CLA] = (byte)(buffer[ISO7816.OFFSET_CLA] & (byte)0xFC);
if ((buffer[ISO7816.OFFSET_CLA] == 0) &&
(buffer[ISO7816.OFFSET_INS] == (byte)(0xA4)) )
return;
// verify the reset of commands have the
// correct CLA byte, which specifies the
// command structure
if (buffer[ISO7816.OFFSET_CLA] != Wallet_CLA)
ISOException.throwIt
(ISO7816.SW_CLA_NOT_SUPPORTED);
switch (buffer[ISO7816.OFFSET_INS]) {
case GET_BALANCE: getBalance(apdu);
return;
case DEBIT: debit(apdu);
return;
case CREDIT: credit(apdu);
return;
case VERIFY: verify(apdu);
return;
default: ISOException.throwIt (ISO7816.SW_INS_NOT_SUPPORTED);
} // end of process method
private void credit(APDU apdu)
// access authentication
if ( ! pin.isValidated() )
ISOException.throwIt(
SW_PIN_VERIFICATION_REQUIRED);
byte[] buffer = apdu.getBuffer();
// Lc byte denotes the number of bytes in the
// data field of the command APDU
byte numBytes = buffer[ISO7816.OFFSET_LC];
// indicate that this APDU has incoming data
// and receive data starting from the offset
// ISO7816.OFFSET_CDATA following the 5 header
// bytes.
byte byteRead =
(byte)(apdu.setIncomingAndReceive());
// it is an error if the number of data bytes
// read does not match the number in Lc byte
if ( ( numBytes != 1 ) || (byteRead != 1) )
ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
// get the credit amount
byte creditAmount = buffer[ISO7816.OFFSET_CDATA];
// check the credit amount
if ( ( creditAmount > MAX_TRANSACTION_AMOUNT)
|| ( creditAmount < 0 ) )
ISOException.throwIt
(SW_INVALID_TRANSACTION_AMOUNT);
// check the new balance
if ( (short)( balance + creditAmount) > MAX_BALANCE )
ISOException.throwIt
(SW_EXCEED_MAXIMUM_BALANCE);
// credit the amount
balance = (short)(balance + creditAmount);
} // end of deposit method
private void debit(APDU apdu)
// access authentication
if ( ! pin.isValidated() )
ISOException.throwIt
(SW_PIN_VERIFICATION_REQUIRED);
byte[] buffer = apdu.getBuffer();
byte numBytes =
(byte)(buffer[ISO7816.OFFSET_LC]);
byte byteRead =
(byte)(apdu.setIncomingAndReceive());
if ( ( numBytes != 1 ) || (byteRead != 1) )
ISOException.throwIt
(ISO7816.SW_WRONG_LENGTH);
// get debit amount
byte debitAmount =
buffer[ISO7816.OFFSET_CDATA];
// check debit amount
if ( ( debitAmount > MAX_TRANSACTION_AMOUNT)
|| ( debitAmount < 0 ) )
ISOException.throwIt
(SW_INVALID_TRANSACTION_AMOUNT);
// check the new balance
if ( (short)( balance - debitAmount ) < (short)0 )
ISOException.throwIt(SW_NEGATIVE_BALANCE);
balance = (short) (balance - debitAmount);
} // end of debit method
private void getBalance(APDU apdu) {
byte[] buffer = apdu.getBuffer();
// inform system that the applet has finished
// processing the command and the system should
// now prepare to construct a response APDU
// which contains data field
short le = apdu.setOutgoing();
if ( le < 2 )
ISOException.throwIt
(ISO7816.SW_WRONG_LENGTH);
//informs the CAD the actual number of bytes
//returned
apdu.setOutgoingLength((byte)2);
// move the balance data into the APDU buffer
// starting at the offset 0
buffer[0] = (byte)(balance >> 8);
buffer[1] = (byte)(balance & 0xFF);
// send the 2-byte balance at the offset
// 0 in the apdu buffer
apdu.sendBytes((short)0, (short)2);
} // end of getBalance method
private void verify(APDU apdu) {
byte[] buffer = apdu.getBuffer();
// retrieve the PIN data for validation.
byte byteRead =(byte)(apdu.setIncomingAndReceive());
// check pin
// the PIN data is read into the APDU buffer
// at the offset ISO7816.OFFSET_CDATA
// the PIN data length = byteRead
if ( pin.check(buffer, ISO7816.OFFSET_CDATA,byteRead) == false )
ISOException.throwIt(SW_VERIFICATION_FAILED);
} // end of validate method
} // end of class WalletHow do I set a breakpoint in my install method in order to identify the error?
I've tried changing my install method and making it look exactly like the sample wallet applications accompanying the javacard kit, but I'm still getting the same error? here else could be the possible source of the error?
Thomas
Maybe you are looking for
-
I have some more problem in the web.xml file and url-pattern in my syste
HI ALL! How can I create and place the web.xml and URL-parrten.Because I run the tomcat in my computer with ME system. Hoc
-
Can't use X logical font description of a font
So this is a really weird problem I am having. I installed this font: https://github.com/powerline/fonts/tree - rceCodePro And copied all the .otf files to /usr/share/fonts/misc which is a directory in my font path. Now, some applications, like termi
-
After 10.9.2 mail does not start
I upgraded to 10.9.2 this morning. Mail will not start. I can't get spotlight to work. There are multiple crashes in the log such as this: 2/28/14 9:50:12.000 AM kernel[0]: CODE SIGNING: process 1495[com.apple.ShareK]: rejecting invalid page at add
-
Have read the manual and searched the forums but can't work this out. Basically I'm syncing double system audio and creating merged clips. As the video is HDV all the shots are already seperate clips. However the audio files are 1 hour long clips (tr
-
Critical mx:list DragDrop Adobe Air problem
So I have 2 list controls in an adobe air APP.. Its Really simple... I need to drag item from one list to another. But error happens all the time (Actually I tried All Flex Sdk's I have... 3.2, 3.4, 4.0 ). Please HELP!!! Here is my code <?xml version