Use of chmod in sess_sh tool
Hi,
While trying to use the chmod command in sess_sh tool, I could not see its effect.
I had deployed my EJB using deployejb tool.
The published Object in the Session Namespave under test Publishing Context is RentalEJBRemote (i.e /test/RentalEJBRemote)
I try running my client with user/password as sandeep/sandeep.It works fine.
Now, I want to revoke the execute right, so that when I try to activate the remote (Home) object, by calling the lookup method, I should get a NO PERMISSION message
I use the following sequence of commands after that :
1. sess_sh -user sandeep
-password sandeep
-service sess_iiop://sandeep:2481:oracle8i
2. $ cd test
$ ls -l shows
READ WRITE EXEC OWNER SCHEMA
PUBLIC SANDEEP PUBLIC SANDEEP SYS
3. Removing the execute permission of sandeep
for this Published Object
$ chmod -e sandeep RentalEJBRemote
(No errors reported)
4. $ ls - l still shows ....
READ WRITE EXEC OWNER SCHEMA
PUBLIC SANDEEP PUBLIC SANDEEP SYS
5. When, I try to access/activate the Home object, I am still allowed to do so.
Hence, I am not able to see the effect of chmod.
Please advise.
TIA
Sandeep
null
Hi,
The guide says you would need to use
chmod -x sandeep RentalEJBRemote , i.e. use -x instead of -e
The moment I do this, I get an exception trace
java.util.MissingResourceException: Can't find resource
at java.util.ResourceBundle.getObject(ResourceBundle.java:282)
at java.util.ResourceBundle.getString(ResourceBundle.java:258)
at oracle.aurora.server.tools.sess_iiop.ToolImpl.msg(ToolImpl.java:137)
at oracle.aurora.server.tools.sess_iiop.ToolImpl.fail2(ToolImpl.java:48)
at oracle.aurora.server.tools.sess_iiop.Chmod.invoke(Chmod.java:61)
at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:12
2)
at oracle.aurora.server.tools.sess_iiop.Shell.invoke_command(Shell.java:
208)
at oracle.aurora.server.tools.sess_iiop.Shell.invoke(Shell.java:129)
at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:12
2)
at oracle.aurora.server.tools.sess_iiop.Shell.main(Shell.java:232)
Message [CANNOT_CHMOD] not found in 'oracle.aurora.server.tools.sess_iiop.Messag
e'.
I suppose "-x" is a typo in the Java tools reference guide.It should actually be "-e"
The help on chmod (i.e. $ chmod -help) in the sess_sh tool also shows "-rwe" as the options.
Please advise.
TIA
Sandeep
Similar Messages
-
I am trying to use the new iwork beta tools on iCloud. I currently have 10.8.4 OSX on my iMac and 6.0.5 version of Safari, but when I try to open documents on my iphone in the cloud it tells me my browser isn't supported
Note that iWork for iCloud is only designed for PCs and Macs > http://support.apple.com/kb/HT5779
To access to your iWork documents on the iPhone, install Keynote, Numbers or Pages from the App Store -
Measure performance of windows 8 machines using windows Performance Toolkit (WPR tool)
I want to create performance baseline for windows 8 machines(like time to winlogon, time to desktop and total boot time etc.). For this I used windows performance toolkit - WPR tool to record or log performance data(using boot scenario) into log file(.etl). I
opened generated ETL file using WPA(windows performance analyzer), in processes section, always I am able to see winlogon.exe and explorer.exe time more than 2 minutes on different machines. when I did it for windows XP(using xperf) machine
winlogon.exe always showing as less than 30 seconds.
Can you please let me know, how I can get correct data for following tasks using WPR tool:
1) Time to Winlogon(winlogon.exe)
2) Time to Desktop(explorer.exe )
3) Total Boot time
4) Time to Outlook Start
5) Time to Full Outlook LoadAnyone have idea about how to get correct performance data for tasks using windows performance toolkit(WPRUI)?
-
How can i use JWSDP1.6 from Ant tool to convert .wsdl file into Java class
Hi All,
i m very new in the development field.plese help me...
i have a .wsdl file and i have to make some modification in the file and return this file with build file used in Ant tool.
means my requirement is to conver the .wsdl file into java class,modify it and convert back to wsdl file.how can i do it using JWSDP1.6 and Ant tool.
thanks in advance...
Vikram Singhlemilanais wrote:
hello!
I have developpe an animation with flash. before give it to othe person in order to use it, i would like to secure it by integrated a security module inside the software.Secure it from what? Being played? Copied? Deleted? Modified?
Because, i am a java developper, i have choose Netbeans 6.1 to secure it.That has to be the most random thing I've read in some time.
do you know how can i do to integrate my animation .swf inside my java class?Java can't play SWF files and Flash can't handle Java classes, so what you're suggesting here doesn't make a lot of sense. -
With Acrobat 6.0 I was able to copy a stamp in the same position (I mean "exactly" the same one) of different pages just by using the "copy/past" tool.
Now I am using Acrobat XI and it seems like it is not possible anymore: I am copying a stamp and I am trying to past it in anoter page, but it appears in the center of the page (or wherever it wants to...).
Does anyone have a solution?
Thanks in advance.Thank you very much. I'll be waiting for you message.
Messaggio originale----
Da: [email protected]
Data: 26/01/2015 17.56
A: "Umberto Gangi"<[email protected]>
Ogg: How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?
How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?
created by Gilad D (try67) in Creating, Editing & Exporting PDFs - View the full discussion
Well, I was in the same situation so I've developed a tool that allows one to do it. I will send you some additional information about it in a private message.
If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7132586#7132586 and clicking ‘Correct’ below the answer
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7132586#7132586
To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
Start a new discussion in Creating, Editing & Exporting PDFs by email or at Adobe Community
For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624. -
How do you connect lines for a drawing in order to use the live paint bucket tool?
Hello! Im fairly new (okay not really) to using adobe illustrator
I used the Image trace tool to outline this drawing of Captain America but unfortunately the lines arent connected and therefore
messes up my colouring completely when I use the Live Paint Bucket tool.
Is there a way to connect the lines so they are closed when I colour it? Or is there another way to color this drawing?
Help would be greatly appreciated!Those gaps are very wide. Draw some paths and apply no fill, no stroke to them.
Then make the live paint. In case the live paint already exists, you can go into isolation mode and then draw the paths. Or draw them and use Object > Live paint > Merge -
Using the content aware move tool, I want to move an item from one image to another image but it does not seem to work. I think I need two layers on one document so how do I do this
Good day!
A simple Paste does not work for you?
It should place the clipboard content as a new Layer which you can then move around.
If there is any chance that the elements need to be scaled, rotated etc. I would prefer to place them as Smart Objects (File > Place …) and do the masking that is specific to the images themselves in those.
Regards,
Pfaffenbichler -
Simulation using Eclipse plugin for JCOP tools
Dear All,
In search for a simulation environment for java card applet development I tried to use Eclipse plugin for JCOP tools.
The samples which comes with the JCOP tools works fine but when try to debug my applet I receive the error: Wrong Data 6A 80.
Generic JCOP v2.4.1 is selected for Java Card Simulation.
Following is the JCOP Shell screen:
cm- /term "Remote|localhost:8050"
--Opening terminal
/card -a a000000003000000 -c com.ibm.jc.CardManagerresetCard with timeout: 0 (ms)
--Waiting for card...
ATR=3B F8 13 00 00 81 31 FE 45 4A 43 4F 50 76 32 34 ;.....1.EJCOPv24
31 B7 1.
IOCTL().
ATR: T=1, FI=1/DI=3 (93clk/etu), N=0, IFSC=254, BWI=4/CWI=5, Hist="JCOPv241"
=> 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00 ..............
(908058 nsec)
<= 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65 oe...........Y.e
01 FF 9F 6E 06 47 91 92 18 00 00 73 4A 06 07 2A ...n.G.....sJ..*
86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B .H..k.`...*.H..k
02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64 ....c...*.H..k.d
0B 06 09 2A 86 48 86 FC 6B 04 02 15 65 0B 06 09 ...*.H..k...e...
2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 +...Hd...f...+..
04 01 2A 02 6E 01 02 90 00 ..*.n....
Status: No Error
cm> set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
cm> init-update 255
=> 80 50 00 00 08 B1 04 15 2B 41 3F 62 AB 00 .P......+A?b..
(2668 usec)
<= 00 00 F9 02 71 E3 BB AD BD CD FF 02 00 00 3D 02 ....q.........=.
9C 31 C7 89 AD 44 8E 13 17 15 2E 5A 90 00 .1...D.....Z..
Status: No Error
cm> ext-auth plain
=> 84 82 00 00 10 CE 6C DC D2 8C BE 5E 33 EC 58 D0 ......l....^3.X.
57 3A 52 D2 24 W:R.$
(2288 usec)
<= 90 00 ..
Status: No Error
cm> delete -r a00000006203010c04
=> 80 E4 00 80 0B 4F 09 A0 00 00 00 62 03 01 0C 04 .....O.....b....
00 .
(1084 usec)
<= 6A 88 j.
Status: Reference data not found
jcshell: Error code: 6a88 (Reference data not found)
jcshell: Wrong response APDU: 6A88
Ignoring expected error
cm> upload -d -b 250 "D:\JCOP\eclipse\projects\DigitalTachograph\bin\digitaltachograph\javacard\digitaltachograph.cap"
=> 80 E6 02 00 16 09 A0 00 00 00 62 03 01 0C 04 08 ..........b.....
A0 00 00 00 03 00 00 00 00 00 00 00 ............
(2100 usec)
<= 00 90 00 ...
Status: No Error
=> 80 E8 00 00 FA C4 82 84 42 01 00 25 DE CA FF ED ........B..%....
02 02 04 00 01 09 A0 00 00 00 62 03 01 0C 04 11 ..........b.....
64 69 67 69 74 61 6C 74 61 63 68 6F 67 72 61 70 digitaltachograp
68 02 00 21 00 25 00 21 00 0E 00 29 03 3E 00 CD h..!.%.!...).>..
23 D2 01 BB 04 44 00 00 09 E3 4B E5 00 11 00 05 #....D....K.....
01 A2 04 01 00 04 00 29 04 00 01 07 A0 00 00 00 .......)........
62 00 01 02 01 07 A0 00 00 00 62 01 01 02 01 07 b.........b.....
A0 00 00 00 62 01 02 02 01 07 A0 00 00 00 62 02 ....b.........b.
01 03 00 0E 01 0A A0 00 00 00 62 03 01 0C 04 01 ..........b.....
01 DF 06 00 CD 00 00 00 80 00 00 FF 00 01 00 00 ................
00 01 81 03 13 00 12 07 03 00 00 02 01 03 06 0B ................
8C 81 00 00 00 80 00 0B 00 0B 01 01 00 00 0B F9 ................
00 80 00 11 00 0F 01 01 00 10 0E A9 0D D4 0D F7 ................
0E 07 0E 18 0E 26 0E 35 0E 44 0E 50 0E 72 0E 81 .....&.5.D.P.r..
0E 90 0E 9B 0E F5 11 05 11 1A 11 50 00 80 00 05 ...........P....
00 04 01 04 00 01 13 AF 13 B5 13 BA 14 0C 13 00 ................
(6775 usec)
<= 6A 80 j.
Status: Wrong data
jcshell: Error code: 6a80 (Wrong data)
jcshell: Wrong response APDU: 6A80
Unexpected error; aborting execution
I will be very happy if you can help me. I am desperately in need of a working debugging environment.
Thanks in advance!
Kind regards,
Mehmet* Processes incoming READ_BINARY APDUs. Returns data of the currently
* selected file.
* @param apdu where the offset is carried in header bytes p1 and p2.
* @param le expected length by terminal
* @return length of the response APDU
private short processReadBinary(APDU apdu, boolean protectedApdu, short leUnprotected) {
if (!hasFileSelected()) {
ISOException.throwIt(SW_CONDITIONS_NOT_SATISFIED);
byte[] buffer = apdu.getBuffer();
// retrieve p1p2 from apdu buffer
byte p1 = buffer[OFFSET_P1];
byte p2 = buffer[OFFSET_P2];
short offset = Util.makeShort(p1, p2); // offset encoded in P1/P2, 15 lowest bit
// offset encoded in P1/P2, 15 lowest bit
// check if le != 0 <-- no response expected
if (leUnprotected == 0) {
ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
if (selectedFile == null) {
ISOException.throwIt(ISO7816.SW_FILE_NOT_FOUND);
if ((selectedFile.getAccessConditions() & READ_REQUIRES_SM) == READ_REQUIRES_SM) {
if(!protectedApdu)
ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);
short fileSize = (short) selectedFile.getFileLength();
// check offset
if (offset >= fileSize) {
ISOException.throwIt(ISO7816.SW_INCORRECT_P1P2);
// check expected length
if ((short) (offset + leUnprotected) > fileSize) {
ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
//ISOException.throwIt(SW_TAMAM);
short bufferOffset = 0;
crypto.setEncryptionStatus(isSelectedFileEncrypted());
if (protectedApdu) {
bufferOffset = crypto.getApduBufferOffsetDT(leUnprotected);
if(isSelectedFileEncrypted())
bufferOffset = crypto.getApduBufferOffset(leUnprotected);
apdu.setOutgoing();
Util.arrayCopyNonAtomic(selectedFile.getData(), offset, buffer, bufferOffset, leUnprotected);
return leUnprotected;
* Processes and UPDATE_BINARY apdu. Writes data in the currently selected
* file.
* @param apdu
* carries the offset where to write date in header bytes p1 and
* p2.
private void processUpdateBinary(APDU apdu, boolean protectedApdu) {
if (!hasFileSelected() || isLocked()) {
ISOException.throwIt(ISO7816.SW_COMMAND_NOT_ALLOWED);
if ((selectedFile.getAccessConditions() & DigitalTachograph.UPDATE_ALW) != DigitalTachograph.UPDATE_ALW) {
if ((selectedFile.getAccessConditions() & DigitalTachograph.UPDATE_REQUIRES_SM) != DigitalTachograph.UPDATE_REQUIRES_SM) {
ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);
return;
}else if(!protectedApdu){
ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);
byte[] buffer = apdu.getBuffer();
byte p1 = buffer[OFFSET_P1];
byte p2 = buffer[OFFSET_P2];
short offset = Util.makeShort(p1, p2);
short readCount = (short) (buffer[ISO7816.OFFSET_LC] & 0xff);
//if (!protectedApdu){
readCount = apdu.setIncomingAndReceive();
while (readCount > 0) {
selectedFile.writeData(offset, buffer, OFFSET_CDATA, readCount);
offset += readCount;
readCount = apdu.receiveBytes(ISO7816.OFFSET_CDATA);
private short processInternalAuthenticate(APDU apdu , boolean protectedApdu) throws CryptoException {
byte[] buffer = apdu.getBuffer();
short lc = (short) (buffer[OFFSET_LC] & 0xFF);
if (lc != (short) (KID_LENGTH * 2)) {
ISOException.throwIt(SW_WRONG_LENGTH);
if (apdu.setIncomingAndReceive() != lc) {
ISOException.throwIt(ISO7816.SW_WRONG_DATA);
// Check if VU.CHR maches the one of the selected certificate on the card
if (Util.arrayCompare(buffer, (short) (OFFSET_CDATA + KID_LENGTH), keyStore.selected_KID, (short) 0, KID_LENGTH) != 0) {
ISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);
if (Util.arrayCopyNonAtomic(buffer, OFFSET_CDATA, Rnd1, (short) 0, (short) 8) != (short) 8) { // Receive Rnd1
ISOException.throwIt(ISO7816.SW_WRONG_DATA);
// Hash(PRnd2||K1||Rnd1||VU.CHR)
random.generateData(PRnd2, (short) 0, (short) 90);
random.generateData(K1, (short) 0, (short) 16);
crypto.shaDigest.update(PRnd2, (short) 0, (short) 90); // PRnd2
crypto.shaDigest.update(K1, (short) 0, (short) 16); // PRnd2||K1
crypto.shaDigest.doFinal(buffer, OFFSET_CDATA, lc, digest, (short) 0); //Rnd1||VU.CHR
BigNumber mod = new BigNumber((short) 128);
mod.init(keyStore.Card_PubMod, (short) 0, (short) keyStore.Card_PubMod.length, BigNumber.FORMAT_HEX);
mod.subtract(signed, (short) 0, (short) 128, BigNumber.FORMAT_HEX);
if (mod.compareTo(signed, (short) 0, (short) 128, BigNumber.FORMAT_HEX) == -1) {
mod.toBytes(signed, (short) 0, (short) 128, BigNumber.FORMAT_HEX);
// To be added: if the selected private key is considered corrupted, the processing state returned is '6400' or '6581'.
signed[0] = (byte) 0x6A;
Util.arrayCopyNonAtomic(PRnd2, (short) 0, signed, (short) 1, (short) 90);
Util.arrayCopyNonAtomic(K1, (short) 0, signed, (short) 91, (short) 16);
Util.arrayCopyNonAtomic(digest, (short) 0, signed, (short) 107, (short) 20);
signed[127] = (byte) 0xBC;
if (!keyStore.cardPrivateKey.isInitialized()) {
CryptoException.throwIt(CryptoException.ILLEGAL_VALUE);
try {
crypto.rsaSigner.init(keyStore.cardPrivateKey, Signature.MODE_SIGN);
crypto.rsaSigner.doFinal(signed, (short) 0, (short) 128, signed, (short) 0);
} catch (Exception e) {
ISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);
if (!keyStore.selectedPublicKey.isInitialized()) {
CryptoException.throwIt(CryptoException.ILLEGAL_VALUE);
try {
crypto.rsaCipher.init(keyStore.selectedPublicKey, Cipher.MODE_ENCRYPT);
crypto.rsaCipher.doFinal(signed, (short) 0, (short) 128, signed, (short) 0);
} catch (Exception e) {
ISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);
apdu.setOutgoing();
Util.arrayCopyNonAtomic(signed, (short) 0, buffer, (short) 0, (short) 128);
return (short) signed.length;
private void processExternalAuthenticate(APDU apdu) {
short equipmentType = 0;
if (keyStore.Selected_Cert != null) {
equipmentType = (short) keyStore.Selected_Cert.CHA[6]; // check equipment type
if (equipmentType != (short) 1 && equipmentType != (short) 2 && equipmentType != (short) 3 && equipmentType != (short) 4 && equipmentType != (short) 6) {
ISOException.throwIt(ISO7816.SW_FUNC_NOT_SUPPORTED); // Instead of 6F00 throw a more meaningfull SW in case CHA is not valid.
if (Util.arrayCompare(keyStore.Selected_Cert.CHA, (short) 0, TACHOGRAPH_AID, (short) 0, (short) 6) != 0) {
ISOException.throwIt(ISO7816.SW_FUNC_NOT_SUPPORTED);
byte[] buffer = apdu.getBuffer();
byte p1 = (byte) (buffer[OFFSET_P1] & 0xff);
byte p2 = (byte) (buffer[OFFSET_P2] & 0xff);
if (p1 != 0 || p2 != 0) {
ISOException.throwIt(SW_WRONG_P1P2);
short lc = (short) (buffer[OFFSET_LC] & 0xFF);
if (lc != (short) (128)) {
ISOException.throwIt(SW_WRONG_LENGTH);
if (apdu.setIncomingAndReceive() != lc) {
ISOException.throwIt(ISO7816.SW_WRONG_DATA);
Util.arrayCopyNonAtomic(buffer, OFFSET_CDATA, signed, (short) 0, (short) 128); // receive the cryptogram from the VU
// decrypt the encrypted message with the card private key
try {
crypto.rsaCipher.init(keyStore.cardPrivateKey, Cipher.MODE_DECRYPT);
crypto.rsaCipher.doFinal(signed, (short) 0, (short) 128, signed, (short) 0);
} catch (Exception e) {
ISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);
// verify the signature with the VU public key
try {
crypto.rsaCipher.init(keyStore.selectedPublicKey, Signature.MODE_VERIFY); // Cipher.MODE_ENCRYPT
crypto.rsaCipher.doFinal(signed, (short) 0, (short) 128, signed, (short) 0);
} catch (Exception e) {
ISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);
if (signed[0] != (byte) 0x6A || signed[127] != (byte) 0xBC) {
ISOException.throwIt(Util.makeShort(signed[0], signed[127]));
try {
verifyCardCertificates();
Util.arrayCopyNonAtomic(signed, (short) 1, preDigest, (short) 0, (short) 106); // accumulate preDigest
Util.arrayCopyNonAtomic(Rnd3, (short) 0, preDigest, (short) 106, (short) 8); // accumulate preDigest
Util.arrayCopyNonAtomic(keyStore.Card_Cert.CHR, (short) 0, preDigest, (short) 114, (short) 8); // accumulate preDigest
Util.arrayCopyNonAtomic(signed, (short) 91, K2, (short) 0, (short) 16); // receive K2 value
crypto.shaDigest.update(signed, (short) 1, (short) 106); // PRnd4||K2
crypto.shaDigest.update(Rnd3, (short) 0, (short) 8); // Rnd3
crypto.shaDigest.doFinal(keyStore.Card_Cert.CHR, (short) 0, (short) 8, digest, (short) 0); //||Card.CHR
} catch (Exception e) {
ISOException.throwIt(SW_TAMAM);
if (Util.arrayCompare(signed, (short) 107, digest, (short) 0, (short) 20) != 0) {
ISOException.throwIt(SW_TAMAM);
volatileState[0] |= MUTUAL_AUTHENTICATED;
try {
DTUtil.xor(K1, (short) 0, K2, (short) 0, KaKb, (short) 0, (short) 16);
Util.arrayCopyNonAtomic(Rnd3, (short) 4, SSC, (short) 0, (short) 4); // tail of Rnd3
Util.arrayCopyNonAtomic(Rnd1, (short) 4, SSC, (short) 4, (short) 4); // tail of Rnd1
} catch (Exception e) {
ISOException.throwIt(SW_TAMAM);
try {
keyStore.setKey_Ka(KaKb, (short) 0);
keyStore.setKey_Kb(KaKb, (short) 8);
keyStore.setSecureMessagingKeys(KaKb, (short) 0, KaKb, (short) 0);
} catch (Exception e) {
ISOException.throwIt(SW_TAMAM_DEGIL);
return;
private short returnPreDigest(APDU apdu) {
byte[] buffer = apdu.getBuffer();
apdu.setOutgoing();
Util.arrayCopyNonAtomic(preDigest, (short) 0, buffer, (short) 0, (short) 122);
return (short)preDigest.length;
private short returnDigest(APDU apdu) {
byte[] buffer = apdu.getBuffer();
apdu.setOutgoing();
Util.arrayCopyNonAtomic(digest, (short) 0, buffer, (short) 0, (short) 20);
return (short)digest.length;
private short returnOriginalText(APDU apdu) {
byte[] buffer = apdu.getBuffer();
apdu.setOutgoing();
Util.arrayCopyNonAtomic(signed, (short) 0, buffer, (short) 0, (short) 128);
return (short)signed.length;
private void processVerify(APDU apdu) { // Verify_CHV(Pin_Ws)
byte[] buffer = apdu.getBuffer();
// retrieve the PIN data for validation.
byte byteRead = (byte) (apdu.setIncomingAndReceive());
// 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);
return;
private void processPSO(APDU apdu) { // verify certificate
byte[] buffer = apdu.getBuffer();
byte p1 = (byte) (buffer[OFFSET_P1] & 0xff);
byte p2 = (byte) (buffer[OFFSET_P2] & 0xff);
short lc = (short) (buffer[ISO7816.OFFSET_LC] & 0xFF);
if (p1 == (byte) 0x00 && p2 == P2_VERIFYCERT) {
if (lc != TACHO_CERT_LENGTH) {
ISOException.throwIt(SW_WRONG_LENGTH);
if (apdu.setIncomingAndReceive() != lc) {
ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
try { // copy the certificate to be verified from APDU buffer to cert object
Util.arrayCopyNonAtomic(buffer, OFFSET_CDATA, cert, (short) 0, lc);
} catch (Exception e) {
ISOException.throwIt(SW_TAMAM);
if (Util.arrayCompare(keyStore.selected_KID, (short) 0, keyStore.ERCA_KID, (short) 0, KID_LENGTH) == 0) {
keyStore.VUCA_Cert.verifyCert(cert, keyStore.selectedPublicKey, keyStore.selected_KID);
} else if (Util.arrayCompare(keyStore.selected_KID, (short) 0, keyStore.VUCA_Cert.CHR, (short) 0, KID_LENGTH) == 0) {
keyStore.VU_Cert.verifyCert(cert, keyStore.selectedPublicKey, keyStore.selected_KID);
} else {
ISOException.throwIt(SW_CERT_VERIFICATION_FAILED); // Selected keyId, with MSE, is neither ERCA_KID nor VUCA_KID
} else {
ISOException.throwIt(SW_CERT_VERIFICATION_FAILED);
return;
private short processGetChallenge(APDU apdu, boolean protectedApdu) {
byte[] buffer = apdu.getBuffer();
byte p1 = (byte) (buffer[OFFSET_P1] & 0xff);
byte p2 = (byte) (buffer[OFFSET_P2] & 0xff);
if (p1 != 0 || p2 != 0) {
ISOException.throwIt(SW_WRONG_P1P2);
random.generateData(Rnd3, (short) 0, (short) 8);
short Le = apdu.setOutgoing();
if (Le != (short) 8) {
ISOException.throwIt(SW_WRONG_LENGTH);
Util.arrayCopyNonAtomic(Rnd3, (short) 0, buffer, (short) 0, (short) 8);
return Le;
private void processMSE(APDU apdu) {
byte[] buffer = apdu.getBuffer();
if (buffer[OFFSET_P1] == (byte) 0xC1 && buffer[OFFSET_P2] == P2_DST) {
short lc = (short) (buffer[OFFSET_LC] & 0xFF);
if (lc != (short) (KID_LENGTH + 2)) {
ISOException.throwIt(SW_WRONG_LENGTH);
if (apdu.setIncomingAndReceive() != lc) {
ISOException.throwIt(ISO7816.SW_WRONG_DATA);
if (buffer[OFFSET_CDATA] != (byte) 0x83) {//check the tag of the data
ISOException.throwIt(SW_SECURE_MESSAGING_DATA_OBJECTS_MISSING);
} else if (buffer[OFFSET_CDATA + 1] != (byte) 0x08) {
ISOException.throwIt(SW_INCORRECT_DATA_OBJECT); // check if the key is already selected one
} else if (Util.arrayCompare(buffer, (short) (OFFSET_CDATA + 2), keyStore.selected_KID, (short) 0, KID_LENGTH) != 0) {
if (Util.arrayCompare(buffer, (short) (OFFSET_CDATA + 2), keyStore.ERCA_KID, (short) 0, KID_LENGTH) == 0) {// KID is EUR_KID
keyStore.selected_KID = keyStore.ERCA_KID;
keyStore.selectedPublicKey = keyStore.eurPublicKey;
keyStore.Selected_Cert = null; // ERCA public key is selected
return;
} else if (Util.arrayCompare(buffer, (short) (OFFSET_CDATA + 2), keyStore.VUCA_Cert.CHR, (short) 0, KID_LENGTH) == 0) {// KID is MSCA_KID
keyStore.Selected_Cert = keyStore.VUCA_Cert;
} else if (Util.arrayCompare(buffer, (short) (OFFSET_CDATA + 2), keyStore.VU_Cert.CHR, (short) 0, KID_LENGTH) == 0) { // KID is VU_KID
keyStore.Selected_Cert = keyStore.VU_Cert;
} else {
ISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);
}// KID not found
keyStore.selectedPublicKey = keyStore.Selected_Cert.publicKey;
keyStore.selected_KID = keyStore.Selected_Cert.CHR;
} else { // if the KID is already set, just return
return;
} else {
ISOException.throwIt(ISO7816.SW_WRONG_P1P2);
private void processSelectFile(APDU apdu) {
byte[] buffer = apdu.getBuffer();
short lc = (short) (buffer[OFFSET_LC] & 0x00FF);
// retrieve p1p2 from apdu buffer
byte p1 = buffer[OFFSET_P1];
byte p2 = buffer[OFFSET_P2];
short p1p2 = Util.makeShort(p1, p2);
apdu.setIncomingAndReceive();
if (p1 == 4) {
if (lc == (short) TACHO_AID_LENGTH) {
if (Util.arrayCompare(buffer, (short) OFFSET_CDATA, TACHOGRAPH_AID, (short) 0, (short) TACHO_AID_LENGTH) == 0) {
selectedFile = fileSystem.getDT();
fileSystem.selectDT();
volatileState[0] |= FILE_SELECTED;
return;
} else {
ISOException.throwIt(ISO7816.SW_WRONG_DATA);
} else if (lc != 2) {
ISOException.throwIt(SW_WRONG_LENGTH);
short fid = Util.getShort(buffer, OFFSET_CDATA);
if (fileSystem.getFile(fid) != null) {
selectedFile = fileSystem.getDT();
fileSystem.selectDT();
volatileState[0] |= FILE_SELECTED;
return;
} else if (p1 == 2) {
if (lc != 2) {
ISOException.throwIt(SW_WRONG_LENGTH);
short fid = Util.getShort(buffer, OFFSET_CDATA);
if (fileSystem.getFile(fid) != null) {
selectedFile = fileSystem.getFile(fid);
volatileState[0] |= FILE_SELECTED;
return;
} else {
ISOException.throwIt(ISO7816.SW_WRONG_P1P2);
setNoFileSelected();
ISOException.throwIt(ISO7816.SW_FILE_NOT_FOUND);
public static void setNoFileSelected() {
if (hasFileSelected()) {
volatileState[0] ^= FILE_SELECTED;
public static boolean hasFileSelected() {
return (volatileState[0] & FILE_SELECTED) == FILE_SELECTED;
public static boolean hasMutuallyAuthenticated() {
return (volatileState[0] & MUTUAL_AUTHENTICATED) == MUTUAL_AUTHENTICATED;
static boolean isLocked() {
return (persistentState & LOCKED) == LOCKED;
public boolean isSelectedFileEncrypted() {
return ((selectedFile.getAccessConditions() & DigitalTachograph.ENCRYPTED) == DigitalTachograph.ENCRYPTED);
} -
Why is the word count different when I use word count from the tools menu to the number at the bottom of my mac word document
This forum is for Apple's defunct office suite 'AppleWorks' - since the word count is not in the places you mention I assume you are talking about Microsoft Word? Though it's just possible someone in this forum might also use Word and know the answer, you would stand a higher chance of getting an answer in Microsoft's own forums. You could also try asking in the forum applicable to your operating system - Lion, Mavericks or whatever - on the reasonably chance of finding someone familiar with Word.
-
Can I use the Cisco license transfer tool to rehost licenses from router 2900 to new router 2900? is not rma process
thank youYes you can.
Alternatively, you can email [email protected] -
How do I display an item that used to be on my tool bar?
I think I accidentally erased my short cut button to the internet, so now I have to
open Safari to get online, instead of using the @ symbol that I used to have on my
tool bar. Does anyone know how to get this back??
Message was edited by: rjpersonFirst decide what page you want to have open when you use the symbol to get on the net. It doesn't have to be your home page. It can be any page. Once you are on that page drag the symbol next to the address , such as the little apple, to the dock beside the trash can. It must be on the side of the little line towards the trash can in the dock. You will see the little @ springy thing appear. I have my web page set there so I can click it to get on the web from there.
-
How to use recursive in Information Design Tools?
Hi all,
I want to use recursive for count number of employee in each organization. I write code something like this.
with EmpCTE as
select RootID = D.ORG_CD , D. ORG_CD, D .ParentOID
from (SELECT CURRENT_LEAF as ORG_CD ,
D .DATE_KEY AS DateKey,
CASE WHEN LEAF_LEVEL = 1 THEN LEVEL0
WHEN LEAF_LEVEL = 2 THEN LEVEL1
WHEN LEAF_LEVEL = 3 THEN LEVEL2
WHEN LEAF_LEVEL = 4 THEN LEVEL3
WHEN LEAF_LEVEL = 5 THEN LEVEL4
WHEN LEAF_LEVEL = 6 THEN LEVEL5
END AS ParentOID
FROM [BISIPH_HR]. [dbo].[ORG_HIER_STD] H , MST_DATE_DIM D
where 1= 1
and D. DATE_KEY between BEGDA and ENDDA
and D. DATE_KEY between C_L1_BEGDA_KEY and C_L1_ENDDA_KEY
and D. DATE_KEY between C_L2_BEGDA_KEY and C_L2_ENDDA_KEY
and D. DATE_KEY between C_L3_BEGDA_KEY and C_L3_ENDDA_KEY
and D. DATE_KEY between C_L4_BEGDA_KEY and C_L4_ENDDA_KEY
and D. DATE_KEY between C_L5_BEGDA_KEY and C_L5_ENDDA_KEY
and D. DATE_KEY between C_L6_BEGDA_KEY and C_L6_ENDDA_KEY
and D. DATE_KEY between C_L7_BEGDA_KEY and C_L7_ENDDA_KEY
) D
where 1= 1
AND DateKey = 20140101
union all
select EmpCTE. RootID, D .ORG_CD, D.ParentOID
from (
SELECT CURRENT_LEAF as ORG_CD,
D .DATE_KEY AS DateKey,
CASE WHEN LEAF_LEVEL = 1 THEN LEVEL0
WHEN LEAF_LEVEL = 2 THEN LEVEL1
WHEN LEAF_LEVEL = 3 THEN LEVEL2
WHEN LEAF_LEVEL = 4 THEN LEVEL3
WHEN LEAF_LEVEL = 5 THEN LEVEL4
WHEN LEAF_LEVEL = 6 THEN LEVEL5
END AS ParentOID
FROM [BISIPH_HR]. [dbo].[ORG_HIER_STD] H , MST_DATE_DIM D
where 1= 1
and D. DATE_KEY between BEGDA and ENDDA
and D. DATE_KEY between C_L1_BEGDA_KEY and C_L1_ENDDA_KEY
and D. DATE_KEY between C_L2_BEGDA_KEY and C_L2_ENDDA_KEY
and D. DATE_KEY between C_L3_BEGDA_KEY and C_L3_ENDDA_KEY
and D. DATE_KEY between C_L4_BEGDA_KEY and C_L4_ENDDA_KEY
and D. DATE_KEY between C_L5_BEGDA_KEY and C_L5_ENDDA_KEY
and D. DATE_KEY between C_L6_BEGDA_KEY and C_L6_ENDDA_KEY
and D. DATE_KEY between C_L7_BEGDA_KEY and C_L7_ENDDA_KEY
) D
inner join EmpCTE on D .ParentOID = EmpCTE.ORG_CD
AND D. DateKey = 20140101
select distinct
ORG_DIM.ORG_CD
, ORG_DIM. ORG_DESC_T
, EmpCTE. ParentOID
--, EMP_DIM.EMP_CODE
, cnt. Child
, cntemp. ChildEmp
from MST_EMP_DIM EMP_DIM
INNER JOIN TXT_EMP_ORG_FACT EMP_ORG_FACT ON EMP_ORG_FACT .EMP_KEY = EMP_DIM.EMP_KEY
INNER JOIN MST_ORG_DIM ORG_DIM ON ORG_DIM .ORG_CD = EMP_ORG_FACT.ORG_CD
INNER JOIN EmpCTE ON EmpCTE .ORG_CD = ORG_DIM.ORG_CD
INNER JOIN TXT_EMPLOYMENT_FACT EMPLOYMENT_FACT ON EMPLOYMENT_FACT.EMP_CODE_KEY = EMP_ORG_FACT.EMP_CODE_KEY
INNER JOIN (
SELECT ORG_CD = RootID, Child = COUNT (*)
FROM EmpCTE
GROUP BY RootID
) cnt ON cnt.ORG_CD = EMP_ORG_FACT. ORG_CD ------------------ ¹Ñº¨Ó¹Ç¹ ORG ·ÕèÍÂÙèãµé ORG »Ñ¨¨ØºÑ¹
INNER JOIN (
SELECT ORG_CD = RootID, ChildEmp = Count (*)
FROM EmpCTE
INNER JOIN TXT_EMP_ORG_FACT EMP_ORG_FACT ON EmpCTE .ORG_CD = EMP_ORG_FACT.ORG_CD
INNER JOIN MST_EMP_DIM EMP_DIM ON EMP_ORG_FACT .EMP_KEY = EMP_DIM.EMP_KEY
INNER JOIN TXT_EMPLOYMENT_FACT EMPLOYMENT_FACT ON EMPLOYMENT_FACT.EMP_CODE_KEY = EMP_ORG_FACT.EMP_CODE_KEY
WHERE 1= 1
AND 20140228 BETWEEN EMP_ORG_FACT.ORG_ASSIGN_START_DT_KEY AND ORG_ASSIGN_END_DT_KEY
AND 20140228 BETWEEN EMP_DIM.EMP_START_DATE_KEY AND EMP_DIM.EMP_END_DATE_KEY
AND 20140228 BETWEEN EMPLOYMENT_FACT.START_DATE_KEY AND EMPLOYMENT_FACT.END_DATE_KEY
AND EMP_ORG_FACT. EMP_ASSIGN_PAYROLL_AREA_CD IN ('Z1', 'Z2')
AND EMPLOYMENT_FACT. EMPLOYMENT_STATUS_KEY = 3
GROUP BY RootID
) cntemp ON cntemp.ORG_CD = EMP_ORG_FACT. ORG_CD
WHERE 1= 1
AND 20140228 BETWEEN EMP_ORG_FACT.ORG_ASSIGN_START_DT_KEY AND ORG_ASSIGN_END_DT_KEY
AND 20140228 BETWEEN EMP_DIM.EMP_START_DATE_KEY AND EMP_DIM.EMP_END_DATE_KEY
AND 20140228 BETWEEN EMPLOYMENT_FACT.START_DATE_KEY AND EMPLOYMENT_FACT.END_DATE_KEY
AND EMP_ORG_FACT. EMP_ASSIGN_PAYROLL_AREA_CD IN ('Z1', 'Z2')
AND EMPLOYMENT_FACT. EMPLOYMENT_STATUS_KEY = 3
ORDER BY EmpCTE.ParentOID
and result
I want to create ChildEmp object for display in web-i report. How can i use recursive in Information Design Tools? or Do you have other solution for this?
Thank you for your advise.
Notto ZungHi,
NoDim is a function of the Bex query formula , so you can't delegate that to the cube.
What object is, and what are you trying to do. For example, Sales, and trying to leave out Currency attribute.
You can do an awdful of customizing in a Business Layer or Data Foundation, that is where your solution where probably come from.
Regards,
H -
Can not create a new portal using Oracle and the Administration tools.
Using the Personalization Server admin tool. My database is Oracle 8.0.5
(NT). I used the db/oracle/create* scripts to the create the necessary
database tables. I was able to successfully create users, groups, and
portlets, but when I try to create a Portal I'm getting the following
exception.
Any help would be very appreciated.
Thank you.
Marko.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Set scope/description in propertySetBean MyPortal
propertySetBean creating property set...
java.lang.NullPointerException:
at
com.beasys.commerce.user.jsp.beans.PropertySetBean.copyPropertySet(Pr
opertySetBean.java:218)
at
com.beasys.commerce.user.jsp.beans.PropertySetBean.initializeProperty
Set(PropertySetBean.java:181)
at
jsp._tools._portal._portal_95_new._jspService(_portal_95_new.java:431
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:105)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:143)
at
com.beasys.commerce.axiom.jsp.JspServiceManager.service(JspServiceMan
ager.java:1033)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:105)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:742)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:686)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:247)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:363)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
result of propertySetBean.createPropertySet(): Error: Property set
DEFAULTPORT
AL_SCHEMA copy could not be completed.Marko,
I know I answered you through support, but for the benefit of the newsgroups
When using Oracle, you must run the sql scripts provided. The
insert-pzsamples-oracle.sql script is included in the create-p13n-oracle.sql
scripts. This script includes inserting information into the tables that are
required for creating new portlets. In particular, inserts to the
WLCS_SCHEMA table and inserts to the Meta Data tables (*MD*) are required.
Cindy Eldenburg
Marko Milicevic wrote:
Using the Personalization Server admin tool. My database is Oracle 8.0.5
(NT). I used the db/oracle/create* scripts to the create the necessary
database tables. I was able to successfully create users, groups, and
portlets, but when I try to create a Portal I'm getting the following
exception.
Any help would be very appreciated.
Thank you.
Marko.
>Set scope/description in propertySetBean MyPortal
propertySetBean creating property set...
java.lang.NullPointerException:
at
com.beasys.commerce.user.jsp.beans.PropertySetBean.copyPropertySet(Pr
opertySetBean.java:218)
at
com.beasys.commerce.user.jsp.beans.PropertySetBean.initializeProperty
Set(PropertySetBean.java:181)
at
jsp._tools._portal._portal_95_new._jspService(_portal_95_new.java:431
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:105)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:143)
at
com.beasys.commerce.axiom.jsp.JspServiceManager.service(JspServiceMan
ager.java:1033)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:105)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:742)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:686)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:247)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:363)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
result of propertySetBean.createPropertySet(): Error: Property set
DEFAULTPORT
AL_SCHEMA copy could not be completed. -
Is it possible to use EBS as a ETL tool ?
Is it possible to use EBS as a ETL tool ?
Hi,
Are you referring to "Extract, Transform, Load"? It is possible to download/upload the data from/to Oracle Apps and there are many APIs and tools (provided by Oracle or 3rd party) which should be helpful -- Please see these links for details:
Oracle Integration Repository
http://irep.oracle.com
3rd Party/ISV Generic Installation Advice
3rd Party/ISV Generic Installation Advice
Note: 951604.1 - Implementing Oracle EBS Service on a Separate Instance
However, you still need to use such tools with caution (make sure it is supported) as you do not want to end up with referential integrity issues and data corruption problems.
Regards,
Hussein -
PSE 9 crashes when I use the Spot Healing Brush tool
When I use the Spot Healing Brush tool PSE9 crashs completly. Is it a bug? In the older version 8 I had no problem.
I use WIN XP SP2, Intel Pentium 4, 3 Ghz, GPU: NVIDIA Geforce FX 5700, DirectX 9.0c 4.09.00.0904.
I tried it also on another PC with WIN7 and it caused the same problem.
Thanks for any adivseI know this post doesn't really help you guys, but I'm also using PSE9 on a Win7 Intel Quad Core Dell computer and the spot healing brush works fine. I only offer this post to indicate that it apparently is not a universal bug in PSE9. Perhaps an Adobe expert can jump in here and help. I can only offer that in Preferences I do have the RAM dialed up to 80%, but I don't think this is related to your problem.
Maybe you are looking for
-
Photoshop elements 4.0 for macs
working on my website... i heard that elements 4.0 for macs is the same as 5.0 for pc - does anyone know if thats the case?? thanks...
-
Problem with Border Container width and height in %
I want to use bordercontainer in Vgroup and specify its width and height in % form. But when we try to set width less than 18% or height less than 10% it takes the default values. Why is it so??? Thanks in advance. Ronak Shah
-
Need some help tweaking the supersized jquery plugin
Hi, I'm using this plugin http://www.buildintearnet.com/2010/11/supersized-3-0-full-screen-background-slideshow-jque ry-plugin/ on my site here - http://www.blackpaint.co.uk/new/ The plugin cycles through as many images as yuo tell it to, when it rea
-
Howto increase log recovery speed?
We created a copy of our production MaxDB (2,8 TB) to have a shadow database. When I apply the logs (via script) I find out, that the shadow database is not able to "keep up" with the number of logs produced in the production. I figured out so far th
-
How do you convert a dwg file in to a pdf file