Can I create DESKey in transient memory?
I'm newbie to JavaCard and my questrions are:
1. Can I create DESKey in transient memory?
I'm migrating my PKI applet from MULTOS to JavaCard version. When the RSA key pair is loaded into card, I hope the key pair is protected by session key. The session key will be derived from the secret shared by card and terminal, say, user PIN, The best place to hold the session key is in transient memory. I think all the key objects are created in non-volatile ram.Is that right?
2. Will the key object(DESKey and RSAKey) keep the key data permanently?Or just keep reference to the data?
3. Are the cipher classes singleton classes?
Thanks in advance.
Regards,
ZJ Yang
Samples come with the kit. They all are downloadable from Sun. Read a article on the Sun wireless site. There are tons of sources here and with the kit that shows you how to write an applet. Just looking at the Applet class in the API docs will give you a quick sample. The APDU class in the API docs give you a snippet as well.
Similar Messages
-
We have a Java7 web app, which generate PDF report by calling Crystal Server 2013 SP4.
The app is being deployed on many different servers. We sometimes got the error below when generating report:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.controllerExportInternal(PrintOutputController.java:280)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:152)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:130)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:113)
Problem is, this seems to be a pretty generic exception. It could be caused by many different reasons.
e.g. network connection problem, wrong DB login, wrong folder path, lack of folder access right, etc.
Each time we could only guess what's wrong.
We are running into it again, and this time everything seems correctly configured so far.
We wonder if there are more info we can get to troubleshoot? For example, any log file of Crystal Server we should look into? Or does Crystal Server has debug mode which prints more details to tell us what goes wrong?Prithviraj Shekhawat wrote:
Hi Henry,
I believe you are using RAS SDKs to export the reports to PDF.
Apply trace on RAS server and check what you find in RAS logs.
Check whether you can see timeout error is RAS logs. Usually if connection is lost and the RAS server no more have the session to write to the temp directory, we do see these errors.
Also, does the account that runs RAS have permissions to create a file in RAS's default temp directory? Are you getting any out of memory or out of disk space exceptions on App server or RAS, tracing RAS server is the way to move forward.
Thanks,
Prithvi
>>I believe you are using RAS SDKs to export the reports to PDF.
Yes
>>Apply trace on RAS server and check what you find in RAS logs.
>>Check whether you can see timeout error is RAS logs.
How to configure tracing, and where are RAS logs? Is it configured in CMC --> Servers --> Crystal Report Services?
>>Also, does the account that runs RAS have permissions to create
>>a file in RAS's default temp directory?
Pretty sure yes.
>> Are you getting any out of memory or out of disk space exceptions
>>on App server or RAS, tracing RAS server is the way to move forward.
Not on App server.
For RAS, that's the problem, I am not sure where to look....... -
Can I create separate folders to save media on my Airport Time Capsule? Issue is I have a 256GB HDD Mac Pro Retina which is almost full. TC will only take backup of my HDD. So where would I save my photos and videos from my iPhone and iPad?
It is a hard one.. laptops with small drives are a pain.
What you need is a home media server.
Some people use a PC running itunes for cost.. but that is nothing like as good as using a Mac mini.. they make great little HTPC device.. you can plug in large hard disks and store all your files and media. And share it with the network.. Read up apple's instructions on home sharing.
https://www.apple.com/au/support/homesharing/
For cost you can buy a mini from 2011 or 2012.. I would not recommend earlier ones.. the advantage of 2012 is they have USB3 ports. But you will pay more for them.. new mini is not as useful.. they have soldered in memory and you cannot upgrade.. the old mini was the most easily modified mac in the whole range. Uses little power and can be bought for a $300US for a good one second hand.. maybe less. -
I can't create a new tag while saving a file in Yosemite.
The title pretty much says it all :-) As I try to type in a new tag while saving a file, the curser just blinks, and doesn't respond. I can't create a new tag. I can click on existing tags, and they get added to the file, but the support page on tags says:
To add a tag:
Click on a recent tag that appears in the menu to link it your document. You can even add multiple tags.
Click “Show All…” to see the all of the tags you have created. Then, click on a tag to add it.
You can also add tag by typing. As you type in the Tags field, you’ll see matching suggestions from your existing tags.
To add a new tag, just type it in the field.
New tags you create automatically appear in other locations where tags are visible, such as in the Finder sidebar.
The fourth bullet is the one I'm referring to. I think this might be a bug, but I can't find a way to report it. If it's not a bug, I would really appreciate some guidance.
Here's some system info:
MacBook Pro (15-inch, Early 2011)
Model Identifier: MacBookPro8,2
Processor Name: Intel Core i7
Processor Speed: 2.2 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Memory: 8 GB
Boot ROM Version: MBP81.0047.B27
SMC Version (system): 1.69f4
Yosemite version:10.10 (14A389)
Thank you very sincerely for your time,
ChrisWhat sort of file(s) are you trying to tag while saving?
Have you tried saving the file first, then tagging it/them afterwards? -
Can we create two POs for the same 3rd party Sales Order?
Hi MM experts,
Issue: Can we create two POs for the same 3rd party Sales Order
In Third party purchase process, first sales order created with a spl. item category and it creates the PR automatically with the Sales order material and Qty and this PR converted PO.
They got a pur.req. for sale order on same item for same delevery date. They did not get any warning msg. saying that a PO was prviously placed against this sale order.
How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
If anyone face the same issue, please let me know if you have any answer to this questions.
Thanks in advance.
Suresh.Suresh,
It is hard for me to give you a definitive answer since you have created a customized solution.
How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
Normally, the system will not do this. A third party PR or PO will be 'account assigned' to the Sales order. SAP standard 3rd party will not create additional purchase reqs unless there has been manual intervention. Try searching for changes in the Sales order and changes in the original purchase order. They may give you a clue.
I believe the normal Item category for third party SO is TAS (I am working from memory here, I am not in front of a system). I don't know what ZTAG does. I confess I am not an SD expert. You might also want to post your question in an SD forum.
You mention two custom applications, ZMMPLAN and ZSTPMP. These somehow have functionality that is used to help you convert your PRs to POs. If I were in your position, I believe I would also look at these applications for clues to how they might be contributing to your problem. And please don't send me details about these apps. I will not comment on custom code in this forum.
Sorry I can't be of more help.
Rgds,
DB49 -
What is the maximum size of a .swf flash file that can be created for DMM
Please help,
I am running DMM 5.2.1 and was wondering what is the maximum size of a .swf file that can be created and play SMOOTHLY on the screens (screen dimension 1366 x 768px).
Kind regards.Hi Nicholas,
You can refer to the content creation best practices documented at the following link:
http://www.cisco.com/en/US/docs/video/digital_media_systems/5_x/5_2/dmd/best/practices/guidelines.html#wp1168116
As you can read there:
- if the SWF file size is greater than 500KB, you may start to see high memory consumption on the DMP.
- regarding resolutions, the SWF can be up to 1920 x 1080 when animations within the SWF are small and are restricted to a 640x480 region.
Regards,
Marco -
Can I create a second service console in ESX 2.5.5?
Can I create a second service console in ESX 2.5.5?
Yes, I've done it in ESX 3.+, but I can't find/verify it's ok in ESX 2.5.
Any procedures, commands or comments welcomed.
ALL POINTS WILL BE AWARDED.No you cannot - The service console in ESX 2.x actuallys loads before the vmkernel and has control over its own physical NIC and memory - In esx 3.x (vSphere) the VMkernel loads first and provides those resources to the service console allowing you to create multiple service console ports -
If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful -
After install, database is not available. How can I create a new database?
I installed "Oracle Database 10g Express Edition".
After install I tried to "Go To Database Home Page" and received a "Page not found" error.
If I run SQLPLUS and ...:
connect / as sysdba
shutdown immediate
startup
I get
ORACLE instance started.
Total System Global Area 805306368 bytes
Fixed Size 1289996 bytes
Variable Size 209715444 bytes
Database Buffers 591396864 bytes
Redo Buffers 2904064 bytes
ORA-00205: error in identifying control file, check alert log for more info
The alert log (C:\OracleXE\app\oracle\admin\XE\bdump\alert_xe.txt) says
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
starting up 4 shared server(s) ...
Oracle Data Guard is not available in this edition of Oracle.
Wed Mar 04 13:57:03 2009
ALTER DATABASE MOUNT
Wed Mar 04 13:57:03 2009
ORA-00202: control file: 'C:\ORACLEXE\ORADATA\XE\CONTROL.DBF'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
And I can not find any control files on my PC.
Can I create one?Yes. This is correct. There is no control file. In fact, there is nothing in C:\OracleXE\oradata\XE. It appears that the install did not create a database, so I figured I'd try to create one myself
but did not haev any success. Should the install have created a database? I did install the same product on a laptop and it seemed to work fine. The problem I ran into was that it does not have
enough memory to be useful, only 512 Meg. So I decided to install it on my desktop PC with 3 Gig. This is where I am having the problem. I tried a re-install but still no database was created. -
How to create OEMS JMS In-Memory and File-Based Persistence?
Anyone knows how to create OEMS JMS In-Memory and File-Based Persistence? Any help it is appreciated. I m working with Oracle BAM 11g TP4 and I want to test the capability of connecting directly to a JMS queue, and reading Oracle´s "complex" documentation I couldnt find the right way to make this happen.
tksHi Mario
This is explained in the soa developer's guide. Chapter 43 "Enterprise message source"should help you. You will find how to connect OEMS or JMS in-memory/file based to your BAM data objects with or without xpath transformation.
You can find sample of advanced XML formating in the 10g tech note: "Oracle BAM 10.1.3 configuration for BPEL 10.1.2 using JMS sensors" (useful even if you don't plan to use BPEL).
Anyway, if you plan to use BPEL, forget JMS and use the BAM adapter (chapter 42), it's quicker & easier.
Dominique -
How to create OEMS JMS In-Memory and File-Based Persistence ? Anyone?
Anyone knows how to create OEMS JMS In-Memory and File-Based Persistence? Any help it is appreciated. I m working with Oracle BAM 11g TP4 and I want to test the capability of connecting directly to a JMS queue, and reading Oracle´s "complex" documentation I couldnt find the right way to make this happen.
tksHi Mario
This is explained in the soa developer's guide. Chapter 43 "Enterprise message source"should help you. You will find how to connect OEMS or JMS in-memory/file based to your BAM data objects with or without xpath transformation.
You can find sample of advanced XML formating in the 10g tech note: "Oracle BAM 10.1.3 configuration for BPEL 10.1.2 using JMS sensors" (useful even if you don't plan to use BPEL).
Anyway, if you plan to use BPEL, forget JMS and use the BAM adapter (chapter 42), it's quicker & easier.
Dominique -
Can't create Java VM [Code :- 3 ] with JNI_CreateJavaVM()
hello all,
I am trying to create an inctance of JVM from C/CPP ( iam using VC++ editor) on windows. My code to create JVM is :
res = JNI_CreateJavaVM(&jvm, (void **)&env, &vm_args);
as a reasult of this call, -3 is returned to res.
please help me to create a JVM and/or call a java class from C/CPP
Thanks in advance,
Soujanya.RI tried to run it this way :-
#include <jni.h>
#include <windows.h>
#define JNI_EVERSION (-3) /* JNI version error */
#define PATH_SEPARATOR ';'
#define USER_CLASSPATH "." /* where Prog.class is */
void main() {
JNIEnv *env;
JavaVM jvm = (JavaVM )0;
jint res;
jclass cls;
jmethodID mid;
jstring jstr;
jobjectArray args;
HINSTANCE hVM = NULL;
JavaVMInitArgs vm_args;
JavaVMOption options[4];
printf("\noptions");
options[1].optionString = "-Djava.class.path=C:/j2sdk1.4.1_07/jre/lib/rt.jar;E:/test/c/Debug/"; /* user classes */
options[2].optionString = "-Djava.library.path=lib"; /* set native library path */
options[0].optionString = "-Djava.compiler=NONE";
//options[1].optionString = "-Djava.class.path=c:\\My Folder"; /* user classes */
//options[2].optionString = "-Djava.library.path=C:\\j2sdk1.4.2_04\\include";
options[3].optionString = "-verbose:jni";
printf("\nversion info");
vm_args.version = JNI_VERSION_1_2;
vm_args.options = options;
vm_args.nOptions = 4;
vm_args.ignoreUnrecognized = TRUE;
printf("\ncreate");
hVM = LoadLibrary("C:/j2sdk1.4.1_07/jre/bin/client/jvm.dll");
if (hVM == NULL)
printf("hVM is null ");
res = JNI_CreateJavaVM(&jvm, (void **)&env, &vm_args);
if (res < 0) {
fprintf(stderr, "Can't create Java VM \n",res);
exit(1);
cls = env->FindClass("HelloWorld");
//cls = env.FindClass(env,"helloWorldClass");
if (cls == 0) {
fprintf(stderr, "Can't find Prog class\n");
exit(1);
mid = env->GetStaticMethodID(cls, "main", "([Ljava/lang/String;)V");
if (mid == 0) {
fprintf(stderr, "Can't find Prog.main\n");
exit(1);
jstr = env->NewStringUTF(" from C!");
if (jstr == 0) {
fprintf(stderr, "Out of memory\n");
exit(1);
args = env->NewObjectArray(1, (*env).FindClass("java/lang/String"), jstr);
if (args == 0) {
fprintf(stderr, "Out of memory\n");
exit(1);
env->CallStaticVoidMethod(cls, mid, args);
jvm->DestroyJavaVM();
I could run the program.
You need to have the C:\j2sdk1.4.1_07\lib\jvm.lib entries in Project->Settings->Link Tab
When you open the Settings dialog box you will see Win32Debug in the
drop down . You need to provide the entries for that page .
Then change the drop down to Win32 Release and make an entry similarly there too.
You should be able to run your code.
Vishal -
How can I transfer pictures on SHDC memory card to iphone?
I would like a way to transfer SHDC class 4 memory card pictures to iphone through either a physical cable or bluetooth connection. There will not be a wifi connection in the area I hope to do the transfer. Thanks.
well your sd card of cause can't create a bluetooth connection
the iOS devices suppert the PEN bluetooth profile so if a device that read sd cards had an app
in app store which could using PEN connect to the sd reader and transfer photos over bluetooth then yes it would work
but it would require an app on the iOS side and bluetooth is much slower then wifi so the peer to peer sandisk wifi option would be a better bet
peer to peer would mean that no external wifi network was required -
Can I create a new structure within CIN?
I can't create following structure using LabVIEW
typedef struct _I2C_TRANS {
BYTE byTransType;
BYTE bySlvDevAddr;
WORD wMemoryAddr;
WORD wCount;
BYTE Data[256];
} I2C_TRANS, *PI2C_TRANS;
I need this structure to a DLL-call.
I tried put all elements to a cluster, but CIN creates two separate structures (see attached) and it doesn't work. I want to know how to create one structure for a DLL call LONG _stdcall DAPI_WriteI2c(HANDLE hDevInstance, I2C_TRANS * TransI2C);
If there are any solutions for this, please let me know.
Thanks in advance
Martti Haro
Attachments:
structure.c 1 KB"Gabriela Tillmann" wrote in message
news:[email protected]..
> Hi
> I'm afraid you'll get not by without writing a little C-wrapper to
> convert the data types.
That's not entirely true. It is possible but a little bit tricky.
typedef struct _I2C_TRANS {
BYTE byTransType;
BYTE bySlvDevAddr;
WORD wMemoryAddr;
WORD wCount;
BYTE Data[256];
} I2C_TRANS, *PI2C_TRANS;
The byte array inside the structure is fixed size and therefore each
compiler
will just embed this into the structure creating really a memory block of
1 + 1 + 2 + 2 + 256 = 262 bytes.
LabVIEW uses internally byte packing except on PA-RISC and Sparc systems
so that you need to make sure that the DLL you want to call uses also that
or if
it doesn't adjust for this too on the diagram level.
Assuming that the underlying DLL uses byte packing too, you can create a
cluster
in LabVIEW containing the first four parameters, wire it through the Byte
Swap
function and typecast it to a U8 array, append an 256 element U8 array and
configere the Call Library Node to pass this as a pointer to an U8 array. If
you
need to extract data after the call to the DLL you need to typecast it back
and/or
extract the data array accordingly. Remember that typecasting on Windows has
the effect of byte and word swapping data that is why the Byte Swap function
is
necessary.
In general it is very often possible to call DLL functions directly even if
they take
compund data types but it is a little hassle. If it is about calling a few
function the
hassle may be worth your time as starting up a C development system and
creating
a DLL project certainly has some overhead. For more involved API calls it is
usually always better to create your own wrap
per DLL, making the parameters
and function calls more LabVIEW friendly. -
Can we create multiple session in BDC using Call session?
Hi Experts,
Can we create multiple sessions in BDC using Call Session?
Scenario:
Program has to upload 1 million records,so can we programmatically create multiple sessions such that after every 50thousand records we create a different session.
For moment due to large number of records BDC DYNPRO and BDC Field are unable to hold the large number of records,due to which we get a Out of memory error.
Thanks in advance.
ShilpaHi
If ITAB is your table with the data to be transfered:
Open the first session:
CALL FUNCTION 'BDC_OPEN_GROUP'.........
IF SY-SUBRC = 0.
FL_OPEN = 'X'.
ENDIF.
LOOP AT ITAB.
IF FL_OPEN = SPACE.
Create new session
CALL FUNCTION 'BDC_OPEN_GROUP'.........
IF SY-SUBRC = 0.
FL_OPEN = 'X'.
ENDIF.
ENDIF.
Here elaborate your data and fill BDCDATA
Insert the transaction:
CALL FUNCTION 'BDC_INSERT'
IF SY-SUBRC = 0.
COUNT = COUNT + 1.
IF COUNT = COUNT_MAX.
COUNT = 0.
Close the session
IF FL_OPEN = 'X'.
CALL BDC_CLOSE_GROUP
IF SY-SUBRC = 0.
FL_OPEN = SPACE.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
Max -
Hi,
I tried to invoke JavaVM in C. And use the example from http://java.sun.com/docs/books/tutorial/native1.1/invoking/invo.html.
But when runed it after compiled it in Win32 with VC6.
It just can't create the VM. The following is the source:
========================================
#include <jni.h>
#ifdef _WIN32
#define PATH_SEPARATOR ';'
#else /* UNIX */
#define PATH_SEPARATOR ':'
#endif
#define USER_CLASSPATH "." /* where Prog.class is */
main() {
JNIEnv *env;
JavaVM *jvm;
jint res;
jclass cls;
jmethodID mid;
jstring jstr;
jobjectArray args;
char classpath[1024];
JavaVMInitArgs vm_args;
JavaVMOption options[4];
options[0].optionString = "-Djava.compiler=NONE"; /* disable JIT */
options[1].optionString = "-Djava.class.path=."; /* user classes */
options[2].optionString = "-Djava.library.path=."; /* set native library path */
options[3].optionString = "-verbose:jni"; /* print JNI-related messages */
vm_args.version = JNI_VERSION_1_2;
vm_args.options = options;
vm_args.nOptions = 4;
vm_args.ignoreUnrecognized = 1;
JNI_GetDefaultJavaVMInitArgs(&vm_args);
/* Append USER_CLASSPATH to the end of default system class path */
//sprintf(classpath, "%ls%c%s", vm_args.classpath, PATH_SEPARATOR, USER_CLASSPATH);
//vm_args.classpath = casspath;
/* Create the Java VM */
res = JNI_CreateJavaVM(&jvm, &env, &vm_args);
if (res < 0) {
fprintf(stderr, "Can't create Java VM\n");
exit(1);
cls = (*env)->FindClass(env, "Prog");
if (cls == 0) {
fprintf(stderr, "Can't find Prog class\n");
exit(1);
mid = (*env)->GetStaticMethodID(env, cls, "main", "([Ljava/lang/String;)V");
//mid = (*env)->GetMethodID(cls, "Yup","(I)Ljava/lang/String;"); /* Search the Method of class*/
if (mid == 0) {
fprintf(stderr, "Can't find Prog.main\n");
exit(1);
jstr = (*env)->NewStringUTF(env, " from C!");
if (jstr == 0) {
fprintf(stderr, "Out of memory\n");
exit(1);
args = (*env)->NewObjectArray(env, 1, (*env)->FindClass(env, "java/lang/String"), jstr);
if (args == 0) {
fprintf(stderr, "Out of memory\n");
exit(1);
(*env)->CallStaticVoidMethod(env, cls, mid, args);
(*jvm)->DestroyJavaVM(jvm);
========================================
Would you please to tell me why it failed and please show me a simple example ?
Best regards,
EricI have the same problem,
/* Create the Java VM */
res = JNI_CreateJavaVM(&jvm, (void **)&env,
nv, &vm_args);
if (res < 0) {
fprintf(stderr, "Can't create Java VM: %d\n",
%d\n", res);
exit(1);
res is -1...but I'm not using windows, I'm using Linux
and Solaris...Hi there,
I also have problem calling JNI_CreateJavaVM on Linux (returns -1). Have you been able to solve this in the meantime?
Maybe you are looking for
-
It's impossible to create Enhanced Podcasts on Intel Macs. Please read.
After vast amounts of frustration trying to create an Enhanced Podcast on my MacBook Pro, I tracked down the source of the problem: $ file /Applications/GarageBand.app/Contents/MacOS/ChapterTool /Applications/GarageBand.app/Contents/MacOS/ChapterTool
-
Problem in recreating control file
Hi, When i recreate controlfile ... It creates a set of datafile... FILE# NAME STATUS 84 /u01/app/oracle/product/10.2.0/dbs/MISSING00084 RECOVER 85 /u01/app/oracle/product/10.2.0/dbs/MISSING00085 RECOVER 86 /u01/app/oracle/product/10.2.0/dbs/MISSING0
-
Using MacBook Pro (OS X 10.6.8). Clicking: About This Mac>More Info>Graphics/Displays - the "Mirror" status appears as OFF; status of Display Connectors is No display connected. How do I turn "Mirror" ON? I'm assuming it must be on to use a TV as a
-
How to change "next" "previous" in ADF table ?
**hi ,** **I am using oracle jdev 10.1.3.4** **I want to put my own text instead of "next" "previous" in ADF table , also I have the same problem in shuttle box ,** **I want to change the default javascript validation (ex: shuttle box alerts)** **I d
-
Hi friends In T-code f-03 profit center field come through BSIS Table will it be possible to get this field from table FAGLFLEXA?