Return codes using rsh (remote shell) on Solaris
I am executing a Unix script which does a remote shell call (via rsh) to another script on a remote machine (I am actually executing this from a Java app). The remote script sends a return code when run locally, however, how can I get the calling rsh script to get that return code?
If I do the following in the rsh script:
rsh -l resdev morph "/dev/bin/remote_script"
rc=$?
echo "$rc\n"
then the return code that I get is not actually the return code from the remote_scrpit, but it is the return code from the rsh command that is 0 (success) because the rsh command actually executed successfully even though the remote_script could've returned something other than success. How can I get the return code from the remote_script passed back to the rsh calling script? I need to ensure that remote_script executed successfully.
Jan Miller
[email protected]
202-237-9584
Hi,
If you have control over the remote script then put as the last line :-
echo "Run OK" >&2
On calling Script (or Java Process):
rsh -l resdev morph "/dev/bin/remote_script" 2> rc.file
(or pipe stderr to your java process call).
Check the stderr data='Run OK' to see if successful.
Similar Messages
-
Problem with rsh (remote shell)
Hi!
I'm spanish and my english is not very good. I'm development a soft that connect with router cisco with rsh. And i have to send rsh commands but i can't. From my Linux shell command a request rsh:
rsh 192.168.1.5 cisco-rsh
cisco-rsh is a user that has privileges.
A configuration of my FastEthernet0/0 on my router(cisco 2600) is:
no ip rcmd domain-lookup
ip rcmd rcp-enable
ip rsh-enable
ip rcmd remote-host cisco-rsh 192.168.1.33 cisco-rsh enable
ip rcdm remote-username cisco-rsh
ip rcmd source-interface FastEthernet0/0
Then what is my problem? only can use rsh because my teacher is required.To enable the Cisco IOS software to receive incoming remote shell (rsh) protocol and remote copy (rcp) protocol requests, customers must configure an authentication database to control access to the router. This configuration is accomplished by using the ip rcmd remote-host command.
http://www.cisco.com/en/US/docs/ios/12_2t/12_2t8/feature/guide/ftAuth.html -
Error in linking C++ STL code using CC 5.0 on Solaris 2.6
Hi All,
When building a shared dynamic library from C/C++ code using
STL features, I get an a link error, referring to the STL objects in
use.
I use CC WorkShop C++ Compiler 5.0 running on Solaris 2.6.
For example:
using a vector<int> we get :
Undefined Symbol
__1cDstdGvector4Cin0AJallocator4Ci___M__insert_aux6Mpirki_v_
In File aaa.o
using a multimap<int,int> we get :
Undefined Symbol
__1cH__rwstdJ__rb_tree4CinDstdEpair4CkiCi__n0AL__select1st4n0C_Ci__n0BEless4Ci__n0BJallocator4n0C____U__deallocate_buffers6M_v_
In File aaa.o
etc.
Switching (for testing) from shared lib to an exe does not seem
to solve this issue.
Same goes for toggling libCstd & libCrun's link mode (dyn/stat).
Any suggestions would be appreciated!
Thank you,
GiladHi Gilad,
I have a suggestion concerning the std::vector::__insert_aux error:
http://forum.java.sun.com/thread.jspa?forumID=850&threadID=5069680
Some recommended link options are provided in:
http://forum.java.sun.com/thread.jspa?forumID=850&threadID=5104725
Hope this is useful.
Bye. -
Using rsh within shell script unable to run CONCSUB utility.
I am writing a shell script which will connect to the application server from my DB server.
I am using RSH for the same and it is working. Now I want to submit Active Users Request using CONCSUB but
I am not finding correct syntax for the same.
I am able to execute adstpall.sh using the below combination of commands:
rsh <server> ". <SCRIPT_LOCATION>/adstpall.sh apps/paswd" > /usr/admin/scripts/my_direc
Similarly I want to execute CONCSUB but I am not finding the exact syntax for its execution from rsh.
Thank you very much.Hi,
Thank for the note IDs. But the issue is I am trying to connect to my application server from the DB server using RSH.
After connecting I am starting the application services using adstrtal.sh and post which I intend to do sanity check
by submitting Active Users from backend using CONCSUB utility.
I am getting the below message when trying to do so:
CONCSUB APPS/****** SYSADMIN "System Administrator" SYSADMIN WAIT=Y CONCURRENT FND FNDSCURS PROGRAM_NAME='"Active Users"'
++ CONCSUB APPS/******* SYSADMIN 'System Administrator' SYSADMIN WAIT=Y CONCURRENT FND FNDSCURS 'PROGRAM_NAME="Active Users"'
/oracle/admin/scripts/U_D/abc123/CONCSUB.sh: line 3: CONCSUB: command not found
I am able to execute CONCSUB within a shell script on my application server though (just placing the CONCSUB command within a file and executing it).
CONCSUB APPS/******* SYSADMIN "System Administrator" SYSADMIN WAIT=Y CONCURRENT FND FNDSCURS PROGRAM_NAME='"Active Users"'
+ CONCSUB APPS/******* SYSADMIN 'System Administrator' SYSADMIN WAIT=Y CONCURRENT FND FNDSCURS 'PROGRAM_NAME="Active Users"'
Submitted request 11897805 for CONCURRENT FND FNDSCURS PROGRAM_NAME="Active Users"
Normal completion
========
Please guide.
Thanks,
Farheen Rasul. -
Return codes from sqlplus_exec_template
OWB'ers
Environment:
OWB 10g (10.1.0.2.0)
Repository and target schema - Oracle9i (9.2.0.4) on AIX 5.2
I am executing the 'sqlplus_exec_template.sql' script to execute a Process Flow. It executes the Process Flow just fine.
When I put the SQL*Plus command line in a UNIX script as so:
sqlplus -s owb_rtu/owb_rtu @sqlplus_exec_template OWB_RTR GWW_FLOW_LOCATION_1 PROCESS LOAD_BUSINESS_UNITS "," ","
... and then test the return code using $?, it returns a '1' for a successful execution.
I understand that the package that is executed by the SQL script (wb_rt_api_exec) will return 1=success, 2=warning and 3=error. No problem.
However, when I test the return status of the actual SQL*Plus command I also get a '1' when the PL/SQL script executes successfully!!??!!??
The log file produced from the SQL script shows the following:
Session altered.
Role set.
Stage 1: Decoding Parameters
| location_name=GWW_FLOW_LOCATION_1
| task_type=ProcessFlow
| task_name=LOAD_BUSINESS_UNITS
Stage 2: Opening Task
| l_audit_execution_id=12300
Stage 3: Overriding Parameters
Stage 4: Executing Task
| l_audit_result=1 (SUCCESS)
Stage 5: Closing Task
Stage 6: Processing Result
| exit=1
PL/SQL procedure successfully completed.
So, if the PL/SQL procedure completes successfully, why do I get a '1' return code to my UNIX script?
UNIX thinks that is an error condition.
When I purposely made an error in my SQL*Plus command line the UNIX script returned a '1', as expected, when encountering a script error.
How then do I tell the difference between a SQL command error that returns a '1' and a successful completion of the PL/SQL package that also returns a '1'?
I have tried the Process Flow with the 'Use Return as Status' set to both True and False with the same results.
I am trying to set up scripts that will run in Autosys and I need to check the return codes of the jobs and notify the appropriate people if there is a problem. Like UNIX, Autosys thinks a '1' return code is an error condition.
So it appears that the SQL*Plus command invoked in a UNIX script is returning the exit status of the 'wb_rt_api_exec' package invoked in the SQL script and not the actual result of the PL/SQL procedure that calls the package.
How do I get the SQL*Plus command executed from the UNIX script to return a zero (0) upon a successful completion and a non-zero upon an error?
Is the package somehow overpowering the return code from SQL*Plus?
Any help is greatly appreciated.
GaryJean-Pierre
Thanks very much for the response. I will find that SQL script you mention and see if I can use it or modify it to meet our needs.
We have standardized on using Autosys as our job scheduling product and are using it for all the ERP jobs in addition to the ETL jobs.
In that light I would be very interested in having a closer tie between OWB and Autosys. We aren't in a position to be a very good beta customer at this point due to a very tight implementation schedule for the next few months. After that it might be possible for us to help test that new functionality.
Thanks again, we really appreciate your efforts in this discussion group.
Gary -
Getting return code from remote script after Unix rsh call
I hope one of you guys can help me with this issue. I think I've gotten the 'rsh' command to work from the CES application so that the sqr report generation can execute on a remote machine (instead of the app server machine). I'm actually doing this by having the app still execute the ces_sqr script, however, now the ces_sqr script will just have an 'rsh' command in it which will cause the actual real sqr processing to occur remotely.
I am executing a Unix script which does a remote shell call to another script on a remote machine. The remote script sends a return code when run locally, however, how can I get the calling rsh script to get that return code?
If I do the following in the rsh script:
rsh -l resdev morph "/dev/bin/remote_script"
rc=$?
echo "$rc\n"
then the return code that I get is not actually the return code from the remote_scrpit, but it is the return code from the rsh command that is 0 (success) because the rsh command actually executed successfully even though the remote_script could've returned something other than success. How can I get the return code from the remote_script passed back to the rsh calling script?
Jan Miller
[email protected]
202-237-9584Please ignore the first paragraph of my previous post.
-
Get-csRgsWorkFlow command does not return result if you are using remote shell
I am connecting to Lync server remotely using windows powshell.
When I issue the command locally from the Lync server, I get the correct response. When I do the same command from the remote shell, I get empty response.
Can you help me why this is happening?Have you checked RBAC?
"The Get-CsRgsWorkflow cmdlet
provides a way for you to return information about the workflows configured for use in your organization.
Who can run this cmdlet: By default, members of the following groups are authorized to run the Get-CsRgsWorkflow cmdlet locally: RTCUniversalServerAdmins. To return a list of all the role-based access control (RBAC) roles this cmdlet
has been assigned to (including any custom RBAC roles you have created yourself), run the following command from the Windows PowerShell prompt:
Get-CsAdminRole | Where-Object {$_.Cmdlets –match "Get-CsRgsWorkflow"}
" - http://technet.microsoft.com/en-us/library/gg425766(v=ocs.14).aspx
Please mark posts as answers/helpful if it answers your question.
Blog
Lync Validator - Used to assist in the validation and documentation of Lync Server 2013. -
"Wrong process return code" Error which using OS Command
Hi,
I want to execute a shell script in unix which calls a sed script and input to the script is an xml file. I am using OS Command tool to call the script which fails with "Wrong process return code" error. I ran the command directly on UNIX box and works fine but fails when executed through a package in ODI.
The command I am passing in OS Command window is as follows:
/test/callSed.sh emp.xml
I also tried ODIOSCommand but getting the same error. The shell script has execute privileges for all users. Is there any other property to be set up for running shell scipts through ODI?
Appreciate you response.
Thanks!Hi,
Thanks for a quick response.
I tried both the commands you sent. "sh ./test/callSed.sh emp.xml" threw Wrong process return code error and "./test/callSed.sh emp.xml" threw the following error:
java.io.IOException: Cannot run program "./test/callSed.sh": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:431)
at java.lang.Runtime.exec(Runtime.java:328)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execOsOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execOsOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.k(e.java)
at com.sunopsis.dwg.cmd.g.G(g.java)
at com.sunopsis.dwg.dbobj.SnpScen.a(SnpScen.java)
at com.sunopsis.dwg.dbobj.SnpScen.localExecuteSync(SnpScen.java)
at com.sunopsis.dwg.tools.StartScen.actionExecute(StartScen.java)
at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(SnpsFunctionBaseRepositoryConnected.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrdersIntegratedFunction(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.k(e.java)
at com.sunopsis.dwg.cmd.g.A(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 31 more
Regards,
Aks -
OCIEnvCreate fails with -1 return code on Solaris 9 x86 with Oracle 10g
Hi
OCIEnvCreate function is failing with -1 return code on solaris 9 x86. The database I use is, Oracle 10g release 1. I tired to connect with sqlplus and am able to connect to dataserver. Why does OCIEnvCreate fails? Can someone help me in this regard.
ThanksCan place the sample code.
-
Return Code value using 'starting new task' and 'wait until'
I'm having a minor issue with some return code values in my ABAP.
This is what part of it used to look like before I modified it:
With Code in version 1, the sy-subrc was not always zero, sometimes it would be 4.
That was fine, and my abap would do something based on the non-zero RC.
had a need to implement an RFC timeout, the only way I could see to do it was to use 'starting new task' etc as seen in Version 2.
However, with my changes, sy-subrc is always zero.
The ABAP runs fine but I know that sy-subrc should sometimes be 4, even when it returns within the allotted 60 seconds.
Maybe I've coded it incorrectly.
Can someone point me in the right direction?
#>> Start of VERSION 1
call function 'MY_FUNCTION_MODULE'
destination RFCDEST
tables
orders_list = t_orders_packet
apo_orders_list = t_apo_orders
apo_resources = t_apo_resources
exceptions
COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT
SYSTEM_FAILURE = 2 MESSAGE MSG_TEXT
NO_ORDERS_SUPPLIED = 3
NO_PEGGED_ORDERS_FOUND = 4
ORDERID_CONVERSION_ERROR = 5
OTHERS = 6.
if sy-subrc is initial.
* do some stuff as RC was 0
else.
* log non-zero return code etc
endif.
* << End of Version 1And now Version 2.
I didn't put this into the 1st post as the formatting goes bonkers.
#>> Start of VERSION 2
call function 'MY_FUNCTION_MODULE'
destination RFCDEST
starting new task 'taskname'
performing receive_result on end of task
tables
orders_list = t_orders_packet
apo_orders_list = t_apo_orders
apo_resources = t_apo_resources
exceptions
COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT
SYSTEM_FAILURE = 2 MESSAGE MSG_TEXT
NO_ORDERS_SUPPLIED = 3
NO_PEGGED_ORDERS_FOUND = 4
ORDERID_CONVERSION_ERROR = 5
OTHERS = 6.
WAIT UNTIL results_received = 'X' UP TO 60 SECONDS.
if sy-subrc is initial. << Now this is always ZERO
* do some stuff as RC was 0
else.
* log non-zero return code etc
endif.
FORM receive_result USING iv_taskname.
RECEIVE RESULTS FROM FUNCTION 'MY_FUNCTION_MODULE'
tables
orders_list = t_orders_packet
apo_orders_list = t_apo_orders
apo_resources = t_apo_resources
exceptions
COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT
SYSTEM_FAILURE = 2 MESSAGE MSG_TEXT
NO_ORDERS_SUPPLIED = 3
NO_PEGGED_ORDERS_FOUND = 4
ORDERID_CONVERSION_ERROR = 5
OTHERS = 6.
results_received = 'X'.
endform. "receive_result
* < End of Version 2 -
Values of return code when using dba_audit_session
Is there anywhere I can look up the possible values for return code when using dba_audit_session?
I am generating a report over the data and have so far only been able to provide the returncode and whether the username exists (ie username or "other" error)
Thanks
(using 9i)So far I have fathomed out:
Return code: 0 everything OK
Return code: 1017 wrong username or password
Return code: 28000 locked account
Return code: 28001 expired account -
Hi,
I'm using python via COM to run Illustrator and Photoshop on a Windows machine and I occasionally get this return code in python from the subprocess: 1073807364 (0x40010004). I've done some googling and it seems to indicate that that's a Windows return code for "the process is still running". Is it safe for me to let the process continue when I see that return code? Or does that indicate something else?
Thanks.I have similar setup to yours.
From my point of view you need more RAM. I have 16GB. Than you will need to change in preferences to adjust memory used by PS and Illustrator. Maybe take a look at virtual memory in Windows and disable aero effects.
Disk. It is better to have one disk for system (eg.SSD) and one for documents. But don't buy something like WD Green series that is intended for backup.
Graphics. It is not a major player I think for your tasks, but OpenGl can speed up rendering in Photoshop and Illustrator.
When exporting AI with layers to PSD it will always show "out of memory" unless you turn off anti aliasing.
and the most important thing reinstall Windows after some time... It will work faster. -
Return code = 00000057 using a gem pc twin reader with OCF
Hello, i really need help.
I'm having the famous return code = 00000057 when i try to send an APDU command, I'm using a applet proxy, so it send an select APDU inside the OCF framework, and the result is success, so i'm able to send an select Applet, but when i try to send the following apdu:
allocateCardChannel();
// Set up the command APDU and send it to the card.
getBalanceAPDU.setLength(0);
getBalanceAPDU.append(MyAPPLET_CLA); // Class
getBalanceAPDU.append(VERIFY_INS); // Instr'n
getBalanceAPDU.append((byte) 0x00); // P1
getBalanceAPDU.append((byte) 0x00); // P2
getBalanceAPDU.append((byte) 0x00); // Lc
getBalanceAPDU.append((byte) 0x05); // Le
// Send command APDU and check the response.
ResponseAPDU response;
//response = new ResponseAPDU(07);
response = sendCommandAPDU(getCardChannel(), MY_CARD_AID,
getBalanceAPDU);
i got that error. I pasted, all the debug message below. I already updated the pcsc-wrapper-2.0.jar file, but i'm still having this error, as i said i'm using an gem pc twin cardreader with gemxpresso card. My opencard.properties file:
# Card service configuration #
OpenCard.services = com.ibm.opencard.factory.MFCCardServiceFactory \
opencard.opt.util.PassThruCardServiceFactory \
br.com.neac.petrobras.medidorgas.process.NastekCardProxyFactory
#OpenCard.services = br.com.neac.petrobras.medidorgas.process.NastekCardProxyFactory
# Card terminal configuration #
#OpenCard.terminals = GemplusCardTerminalFactory
OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory|Autodetect|*|SHARED
#OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
#OpenCard.terminals=com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory|myGEMPlus|GEM430PC|SHARED
# Trace configuration #
OpenCard.trace = opencard:9
----- the debug----
[DEBUG ] opencard.core.service.SmartCard.getRegistryEntry
--- message tag OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory|Autodetect|*|SHARED
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.SmartCard
[DEBUG ] opencard.core.terminal.CardTerminal.<init>
--- message (Gemplus USB Smart Card Reader 0, PCSC10, )
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.terminal.CardTerminal
[DEBUG ] opencard.core.event.EventGenerator.updateTerminals
--- message new pollable Terminal = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
+ name Gemplus USB Smart Card Reader 0
+ type PCSC10
+ addr
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.event.EventGenerator
[DEBUG ] com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.cardInserted
--- message slotID 0, )
--- thread Thread[AWT-EventQueue-0,6,main]
--- source com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
+ name Gemplus USB Smart Card Reader 0
+ type PCSC10
+ addr
[DEBUG ] opencard.core.event.EventGenerator.updateCards
--- message card inserted slotID = 0
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.event.EventGenerator
[DEBUG ] opencard.core.service.SmartCard.getRegistryEntry
--- message tag OpenCard.services = com.ibm.opencard.factory.MFCCardServiceFactory opencard.opt.util.PassThruCardServiceFactory br.com.neac.petrobras.medidorgas.process.NastekCardProxyFactory
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.SmartCard
[DEBUG ] opencard.core.service.CardServiceFactory.<init>
--- message instantiating
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.CardServiceFactory
[DEBUG ] opencard.core.service.CardServiceRegistry.add
--- message com.ibm.opencard.factory.MFCCardServiceFactory@103368e
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
[DEBUG ] opencard.core.service.CardServiceFactory.<init>
--- message instantiating
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.CardServiceFactory
[DEBUG ] opencard.opt.service.OCF11CardServiceFactory.<init>
--- message instantiating
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.opt.service.OCF11CardServiceFactory
[DEBUG ] opencard.core.service.CardServiceRegistry.add
--- message opencard.opt.util.PassThruCardServiceFactory@94cc7
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
[DEBUG ] opencard.core.service.CardServiceFactory.<init>
--- message instantiating
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.CardServiceFactory
[DEBUG ] opencard.core.service.CardServiceRegistry.add
--- message [email protected]fa0f0
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
[DEBUG ] opencard.core.service.SmartCard.<start>
--- message finished
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.SmartCard
[DEBUG ] opencard.core.service.CardServiceRegistry.getSmartCard
--- message CTEvent opencard.core.event.CardTerminalEvent[source=com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
+ name Gemplus USB Smart Card Reader 0
+ type PCSC10
+ addr ]
---source com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
+ name Gemplus USB Smart Card Reader 0
+ type PCSC10
+ addr
---id 1
card inserted in slot 0
terminal com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
+ name Gemplus USB Smart Card Reader 0
+ type PCSC10
+ addr
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
++ registered factory [email protected]fa0f0
[DEBUG ] com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.openSlotChannel
--- message for slot #0
--- thread Thread[AWT-EventQueue-0,6,main]
--- source com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
+ name Gemplus USB Smart Card Reader 0
+ type PCSC10
+ addr
[DEBUG ] com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.openSlotChannel
--- message new SlotChannel is opencard.core.terminal.SlotChannel@182815a
+ state open
--- thread Thread[AWT-EventQueue-0,6,main]
--- source com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
+ name Gemplus USB Smart Card Reader 0
+ type PCSC10
+ addr
[DEBUG ] opencard.core.service.CardServiceRegistry.allocateCardServiceScheduler
--- message instantiating CardServiceScheduler
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
++ registered factory [email protected]fa0f0
[DEBUG ] opencard.core.service.CardServiceScheduler.<init>
--- message slotChannel opencard.core.terminal.SlotChannel@182815a
+ state open
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.CardServiceScheduler
[DEBUG ] opencard.core.service.CardChannel.<init>
--- message (opencard.core.terminal.SlotChannel@182815a
+ state open)
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.CardChannel
[DEBUG ] opencard.core.service.CardServiceRegistry.getSmartCard
--- message using CardServiceScheduler opencard.core.service.CardServiceScheduler@4ab8b9, is alive
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
++ registered factory [email protected]fa0f0
[DEBUG ] opencard.core.service.CardServiceScheduler.createSmartCard
--- message creating SmartCard
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
[DEBUG ] opencard.core.service.SmartCard.<init>
--- message scheduler opencard.core.service.CardServiceScheduler@4ab8b9, is alive, cid opencard.core.terminal.CardID@1a5ba75 ATR: 3B 7D 94 00 00 80 31 80 65 B0 83 01 02 90 83 00
90 00
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.SmartCard
[DEBUG ] opencard.core.service.SmartCard.getCardService
--- message (class br.com.neac.petrobras.medidorgas.process.NastekCardProxy)
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.SmartCard@fb7efa
[DEBUG ] opencard.core.service.CardServiceRegistry.getCardServiceInstance
--- message for class br.com.neac.petrobras.medidorgas.process.NastekCardProxy from opencard.core.service.SmartCard@fb7efa
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
++ registered factory [email protected]fa0f0
[DEBUG ] opencard.core.service.CardServiceRegistry.getCardServiceInstance
--- message checking [email protected]c68b6f
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
++ registered factory [email protected]fa0f0
[DEBUG ] opencard.core.service.CardService.<init>
--- message default constructor of br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.CardService
[DEBUG ] opencard.opt.applet.AppletProxy.<init>
--- message (A0 00 00 00 62 03 01 0C 02,opencard.core.service.CardServiceScheduler@4ab8b9, is alive,opencard.core.service.SmartCard@fb7efa,true)
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.opt.applet.AppletProxy
[DEBUG ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.initialize
--- message (opencard.core.service.CardServiceScheduler@4ab8b9, is alive,opencard.core.service.SmartCard@fb7efa)
--- thread Thread[AWT-EventQueue-0,6,main]
--- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
[DEBUG ] opencard.opt.applet.BasicAppletCardService.<init>
--- message (opencard.core.service.CardServiceScheduler@4ab8b9, is alive,opencard.core.service.SmartCard@fb7efa,true)
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.opt.applet.BasicAppletCardService
[DEBUG ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.allocateCardChannel
--- message allocating
--- thread Thread[AWT-EventQueue-0,6,main]
--- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
[DEBUG ] opencard.core.service.CardServiceScheduler.allocateCardChannel
--- message applicant br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
[DEBUG ] opencard.core.service.CardChannel.open
--- message opening CardChannel
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, not open, not jammed
BasicAppletCardService - allocated CardChannel()
[DEBUG ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.releaseCardChannel
--- message releasing
--- thread Thread[AWT-EventQueue-0,6,main]
--- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
[DEBUG ] opencard.core.service.CardServiceScheduler.releaseCardChannel
--- message releasing opencard.core.service.CardChannel@9bb457, is open, not jammed
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
++ channel is allocated
[DEBUG ] opencard.core.service.CardChannel.close
--- message CardChannel closed
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, not open, not jammed
[DEBUG ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.allocateCardChannel
--- message allocating
--- thread Thread[AWT-EventQueue-0,6,main]
--- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
[DEBUG ] opencard.core.service.CardServiceScheduler.allocateCardChannel
--- message applicant br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
[DEBUG ] opencard.core.service.CardChannel.open
--- message opening CardChannel
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, not open, not jammed
[DEBUG ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.releaseCardChannel
--- message releasing
--- thread Thread[AWT-EventQueue-0,6,main]
--- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
[DEBUG ] opencard.core.service.CardServiceScheduler.releaseCardChannel
--- message releasing opencard.core.service.CardChannel@9bb457, is open, not jammed
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
++ channel is allocated
[DEBUG ] opencard.core.service.CardChannel.close
--- message CardChannel closed
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, not open, not jammed
[DEBUG ] opencard.core.service.CardServiceRegistry.getCardServiceInstance
--- message factory [email protected]c68b6f produced br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
++ registered factory [email protected]fa0f0
[DEBUG ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.allocateCardChannel
--- message allocating
--- thread Thread[AWT-EventQueue-0,6,main]
--- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
[DEBUG ] opencard.core.service.CardServiceScheduler.allocateCardChannel
--- message applicant br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
[DEBUG ] opencard.core.service.CardChannel.open
--- message opening CardChannel
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, not open, not jammed
[DEBUG ] opencard.opt.applet.BasicAppletCardService.sendCommandAPDU(channel,...)
--- message sending opencard.core.terminal.CommandAPDU@1d92803
0000: 00 20 00 00 00 05 . ....
to <A0 00 00 00 62 03 01 0C 02>
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.opt.applet.BasicAppletCardService
[DEBUG ] opencard.opt.applet.BasicAppletCardService.selectApplet
--- message selecting A0 00 00 00 62 03 01 0C 02
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.opt.applet.BasicAppletCardService
[DEBUG ] opencard.opt.applet.ISOAppletSelector.selectApplet
--- message selecting A0 00 00 00 62 03 01 0C 02
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.opt.applet.ISOAppletSelector
[DEBUG ] opencard.core.service.CardChannel.sendCommandAPDU
--- message opencard.core.terminal.CommandAPDU@1d206f0
0000: 00 A4 04 00 09 A0 00 00 00 62 03 01 0C 02 00 .........b.....
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, is open, not jammed
[DEBUG ] opencard.core.service.CardChannel.response:
--- message opencard.core.terminal.ResponseAPDU@1f23f8b
0000: 90 00 ..
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, is open, not jammed
[DEBUG ] opencard.opt.applet.ISOAppletSelector.selectApplet
--- message Selection response sw = 0x9000
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.opt.applet.ISOAppletSelector
[DEBUG ] opencard.core.service.CardChannel.sendCommandAPDU
--- message opencard.core.terminal.CommandAPDU@1d92803
0000: 00 20 00 00 00 05 . ....
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, is open, not jammed
[DEBUG ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.releaseCardChannel
--- message releasing
--- thread Thread[AWT-EventQueue-0,6,main]
--- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
[DEBUG ] opencard.core.service.CardServiceScheduler.releaseCardChannel
--- message releasing opencard.core.service.CardChannel@9bb457, is open, not jammed
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
++ channel is allocated
[DEBUG ] opencard.core.service.CardChannel.close
--- message CardChannel closed
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, not open, not jammed
opencard.core.terminal.CardTerminalException: Pcsc10CardTerminal: PCSC Exception in method SCardTransmit: error occurred with SCardTransmit
return code = 00000057
at com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.translatePcscException(Pcsc10CardTerminal.java:502)Hello, i really need help.
I'm having the famous return code = 00000057 when i try to send an APDU command, I'm using a applet proxy, so it send an select APDU inside the OCF framework, and the result is success, so i'm able to send an select Applet, but when i try to send the following apdu:
allocateCardChannel();
// Set up the command APDU and send it to the card.
getBalanceAPDU.setLength(0);
getBalanceAPDU.append(MyAPPLET_CLA); // Class
getBalanceAPDU.append(VERIFY_INS); // Instr'n
getBalanceAPDU.append((byte) 0x00); // P1
getBalanceAPDU.append((byte) 0x00); // P2
getBalanceAPDU.append((byte) 0x00); // Lc
getBalanceAPDU.append((byte) 0x05); // Le
// Send command APDU and check the response.
ResponseAPDU response;
//response = new ResponseAPDU(07);
response = sendCommandAPDU(getCardChannel(), MY_CARD_AID,
getBalanceAPDU);
i got that error. I pasted, all the debug message below. I already updated the pcsc-wrapper-2.0.jar file, but i'm still having this error, as i said i'm using an gem pc twin cardreader with gemxpresso card. My opencard.properties file:
# Card service configuration #
OpenCard.services = com.ibm.opencard.factory.MFCCardServiceFactory \
opencard.opt.util.PassThruCardServiceFactory \
br.com.neac.petrobras.medidorgas.process.NastekCardProxyFactory
#OpenCard.services = br.com.neac.petrobras.medidorgas.process.NastekCardProxyFactory
# Card terminal configuration #
#OpenCard.terminals = GemplusCardTerminalFactory
OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory|Autodetect|*|SHARED
#OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
#OpenCard.terminals=com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory|myGEMPlus|GEM430PC|SHARED
# Trace configuration #
OpenCard.trace = opencard:9
----- the debug----
[DEBUG ] opencard.core.service.SmartCard.getRegistryEntry
--- message tag OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory|Autodetect|*|SHARED
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.SmartCard
[DEBUG ] opencard.core.terminal.CardTerminal.<init>
--- message (Gemplus USB Smart Card Reader 0, PCSC10, )
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.terminal.CardTerminal
[DEBUG ] opencard.core.event.EventGenerator.updateTerminals
--- message new pollable Terminal = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
+ name Gemplus USB Smart Card Reader 0
+ type PCSC10
+ addr
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.event.EventGenerator
[DEBUG ] com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.cardInserted
--- message slotID 0, )
--- thread Thread[AWT-EventQueue-0,6,main]
--- source com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
+ name Gemplus USB Smart Card Reader 0
+ type PCSC10
+ addr
[DEBUG ] opencard.core.event.EventGenerator.updateCards
--- message card inserted slotID = 0
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.event.EventGenerator
[DEBUG ] opencard.core.service.SmartCard.getRegistryEntry
--- message tag OpenCard.services = com.ibm.opencard.factory.MFCCardServiceFactory opencard.opt.util.PassThruCardServiceFactory br.com.neac.petrobras.medidorgas.process.NastekCardProxyFactory
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.SmartCard
[DEBUG ] opencard.core.service.CardServiceFactory.<init>
--- message instantiating
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.CardServiceFactory
[DEBUG ] opencard.core.service.CardServiceRegistry.add
--- message com.ibm.opencard.factory.MFCCardServiceFactory@103368e
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
[DEBUG ] opencard.core.service.CardServiceFactory.<init>
--- message instantiating
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.CardServiceFactory
[DEBUG ] opencard.opt.service.OCF11CardServiceFactory.<init>
--- message instantiating
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.opt.service.OCF11CardServiceFactory
[DEBUG ] opencard.core.service.CardServiceRegistry.add
--- message opencard.opt.util.PassThruCardServiceFactory@94cc7
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
[DEBUG ] opencard.core.service.CardServiceFactory.<init>
--- message instantiating
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.CardServiceFactory
[DEBUG ] opencard.core.service.CardServiceRegistry.add
--- message [email protected]fa0f0
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
[DEBUG ] opencard.core.service.SmartCard.<start>
--- message finished
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.SmartCard
[DEBUG ] opencard.core.service.CardServiceRegistry.getSmartCard
--- message CTEvent opencard.core.event.CardTerminalEvent[source=com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
+ name Gemplus USB Smart Card Reader 0
+ type PCSC10
+ addr ]
---source com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
+ name Gemplus USB Smart Card Reader 0
+ type PCSC10
+ addr
---id 1
card inserted in slot 0
terminal com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
+ name Gemplus USB Smart Card Reader 0
+ type PCSC10
+ addr
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
++ registered factory [email protected]fa0f0
[DEBUG ] com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.openSlotChannel
--- message for slot #0
--- thread Thread[AWT-EventQueue-0,6,main]
--- source com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
+ name Gemplus USB Smart Card Reader 0
+ type PCSC10
+ addr
[DEBUG ] com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.openSlotChannel
--- message new SlotChannel is opencard.core.terminal.SlotChannel@182815a
+ state open
--- thread Thread[AWT-EventQueue-0,6,main]
--- source com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
+ name Gemplus USB Smart Card Reader 0
+ type PCSC10
+ addr
[DEBUG ] opencard.core.service.CardServiceRegistry.allocateCardServiceScheduler
--- message instantiating CardServiceScheduler
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
++ registered factory [email protected]fa0f0
[DEBUG ] opencard.core.service.CardServiceScheduler.<init>
--- message slotChannel opencard.core.terminal.SlotChannel@182815a
+ state open
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.CardServiceScheduler
[DEBUG ] opencard.core.service.CardChannel.<init>
--- message (opencard.core.terminal.SlotChannel@182815a
+ state open)
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.CardChannel
[DEBUG ] opencard.core.service.CardServiceRegistry.getSmartCard
--- message using CardServiceScheduler opencard.core.service.CardServiceScheduler@4ab8b9, is alive
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
++ registered factory [email protected]fa0f0
[DEBUG ] opencard.core.service.CardServiceScheduler.createSmartCard
--- message creating SmartCard
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
[DEBUG ] opencard.core.service.SmartCard.<init>
--- message scheduler opencard.core.service.CardServiceScheduler@4ab8b9, is alive, cid opencard.core.terminal.CardID@1a5ba75 ATR: 3B 7D 94 00 00 80 31 80 65 B0 83 01 02 90 83 00
90 00
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.SmartCard
[DEBUG ] opencard.core.service.SmartCard.getCardService
--- message (class br.com.neac.petrobras.medidorgas.process.NastekCardProxy)
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.SmartCard@fb7efa
[DEBUG ] opencard.core.service.CardServiceRegistry.getCardServiceInstance
--- message for class br.com.neac.petrobras.medidorgas.process.NastekCardProxy from opencard.core.service.SmartCard@fb7efa
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
++ registered factory [email protected]fa0f0
[DEBUG ] opencard.core.service.CardServiceRegistry.getCardServiceInstance
--- message checking [email protected]c68b6f
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
++ registered factory [email protected]fa0f0
[DEBUG ] opencard.core.service.CardService.<init>
--- message default constructor of br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.core.service.CardService
[DEBUG ] opencard.opt.applet.AppletProxy.<init>
--- message (A0 00 00 00 62 03 01 0C 02,opencard.core.service.CardServiceScheduler@4ab8b9, is alive,opencard.core.service.SmartCard@fb7efa,true)
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.opt.applet.AppletProxy
[DEBUG ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.initialize
--- message (opencard.core.service.CardServiceScheduler@4ab8b9, is alive,opencard.core.service.SmartCard@fb7efa)
--- thread Thread[AWT-EventQueue-0,6,main]
--- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
[DEBUG ] opencard.opt.applet.BasicAppletCardService.<init>
--- message (opencard.core.service.CardServiceScheduler@4ab8b9, is alive,opencard.core.service.SmartCard@fb7efa,true)
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.opt.applet.BasicAppletCardService
[DEBUG ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.allocateCardChannel
--- message allocating
--- thread Thread[AWT-EventQueue-0,6,main]
--- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
[DEBUG ] opencard.core.service.CardServiceScheduler.allocateCardChannel
--- message applicant br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
[DEBUG ] opencard.core.service.CardChannel.open
--- message opening CardChannel
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, not open, not jammed
BasicAppletCardService - allocated CardChannel()
[DEBUG ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.releaseCardChannel
--- message releasing
--- thread Thread[AWT-EventQueue-0,6,main]
--- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
[DEBUG ] opencard.core.service.CardServiceScheduler.releaseCardChannel
--- message releasing opencard.core.service.CardChannel@9bb457, is open, not jammed
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
++ channel is allocated
[DEBUG ] opencard.core.service.CardChannel.close
--- message CardChannel closed
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, not open, not jammed
[DEBUG ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.allocateCardChannel
--- message allocating
--- thread Thread[AWT-EventQueue-0,6,main]
--- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
[DEBUG ] opencard.core.service.CardServiceScheduler.allocateCardChannel
--- message applicant br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
[DEBUG ] opencard.core.service.CardChannel.open
--- message opening CardChannel
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, not open, not jammed
[DEBUG ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.releaseCardChannel
--- message releasing
--- thread Thread[AWT-EventQueue-0,6,main]
--- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
[DEBUG ] opencard.core.service.CardServiceScheduler.releaseCardChannel
--- message releasing opencard.core.service.CardChannel@9bb457, is open, not jammed
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
++ channel is allocated
[DEBUG ] opencard.core.service.CardChannel.close
--- message CardChannel closed
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, not open, not jammed
[DEBUG ] opencard.core.service.CardServiceRegistry.getCardServiceInstance
--- message factory [email protected]c68b6f produced br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
++ registered factory [email protected]fa0f0
[DEBUG ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.allocateCardChannel
--- message allocating
--- thread Thread[AWT-EventQueue-0,6,main]
--- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
[DEBUG ] opencard.core.service.CardServiceScheduler.allocateCardChannel
--- message applicant br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
[DEBUG ] opencard.core.service.CardChannel.open
--- message opening CardChannel
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, not open, not jammed
[DEBUG ] opencard.opt.applet.BasicAppletCardService.sendCommandAPDU(channel,...)
--- message sending opencard.core.terminal.CommandAPDU@1d92803
0000: 00 20 00 00 00 05 . ....
to <A0 00 00 00 62 03 01 0C 02>
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.opt.applet.BasicAppletCardService
[DEBUG ] opencard.opt.applet.BasicAppletCardService.selectApplet
--- message selecting A0 00 00 00 62 03 01 0C 02
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.opt.applet.BasicAppletCardService
[DEBUG ] opencard.opt.applet.ISOAppletSelector.selectApplet
--- message selecting A0 00 00 00 62 03 01 0C 02
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.opt.applet.ISOAppletSelector
[DEBUG ] opencard.core.service.CardChannel.sendCommandAPDU
--- message opencard.core.terminal.CommandAPDU@1d206f0
0000: 00 A4 04 00 09 A0 00 00 00 62 03 01 0C 02 00 .........b.....
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, is open, not jammed
[DEBUG ] opencard.core.service.CardChannel.response:
--- message opencard.core.terminal.ResponseAPDU@1f23f8b
0000: 90 00 ..
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, is open, not jammed
[DEBUG ] opencard.opt.applet.ISOAppletSelector.selectApplet
--- message Selection response sw = 0x9000
--- thread Thread[AWT-EventQueue-0,6,main]
--- source class opencard.opt.applet.ISOAppletSelector
[DEBUG ] opencard.core.service.CardChannel.sendCommandAPDU
--- message opencard.core.terminal.CommandAPDU@1d92803
0000: 00 20 00 00 00 05 . ....
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, is open, not jammed
[DEBUG ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.releaseCardChannel
--- message releasing
--- thread Thread[AWT-EventQueue-0,6,main]
--- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
[DEBUG ] opencard.core.service.CardServiceScheduler.releaseCardChannel
--- message releasing opencard.core.service.CardChannel@9bb457, is open, not jammed
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
++ channel is allocated
[DEBUG ] opencard.core.service.CardChannel.close
--- message CardChannel closed
--- thread Thread[AWT-EventQueue-0,6,main]
--- source opencard.core.service.CardChannel@9bb457, not open, not jammed
opencard.core.terminal.CardTerminalException: Pcsc10CardTerminal: PCSC Exception in method SCardTransmit: error occurred with SCardTransmit
return code = 00000057
at com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.translatePcscException(Pcsc10CardTerminal.java:502) -
"Error for COM routine using application program (return code 40,020)"
Dear All,
Working on 4.1
We are getting the below error while loading the Data into planning book...
"Time Series has to be updated"
After this we updated the storage bucket profile and the fiscal year varient calender.
And after this we are trying to initialize the planning area..but getting the below error...
"Error for COM routine using application program (return code 40,020)"
So then we try to run the LCM CON check , but here also we are getting the below log...
"Inconsistent time series initialization horizons"
We teasted all the above in TEST system , but we are not facing any issue.
Plz plz help us to resolve the same.
Regards,
Rajesh PatilHello Rajesh,
COM error 40,020 generally indicates that no Time Series exists for
the characteristic combination that is being loaded or saved.
In certain cases it could be related to missing Time Series for aggregates.
Therefore, performing a consistency check for the relevant planning area by running the program
/SAPAPO/TS_LCM_CONS_CHECK is usually the first option. You could also check the relevant planning
object structure and any aggregates using the programs /SAPAPO/TS_PSTRU_TOOL and /SAPAPO/TS_PSTRU_CONS_CHECK.
Additionally, please make sure that the time series exists for the horizon for which data is to be loaded. Should all these not resolve the issue, the problem will be resolved by deinitializing & reinitializing the time series.
Please note that deinitializing of the the planning area will lead to data loss, so please take the backup of your data before you
deinitialize the planning area.
Hope this helps.
Regards,
Ade -
How can i return object from oracle in my java code using pl/sql procedure?
How can i return object from oracle in my java code using pl/sql procedure?
And How can i returned varios rows fron a pl/sql store procedure
please send me a example....
Thank you
nullyes, i do
But i can't run this examples...
my problem is that i want recive a object from a PL/SQL
//procedure callObject(miObj out MyObject)
in my java code
public static EmployeeObj callObject(Connection lv_con,
String pv_idEmp)
EmployeeObj ret = new EmployeeObj();
try
CallableStatement cstmt =
lv_con.prepareCall("{call admin.callObject(?)}");
cstmt.registerOutParameter(1, OracleTypes.STRUCT); // line ocurr wrong
//registerOutParameter(int parameterIndex, int sqlType,String sql_name)
cstmt.execute();
ret = (EmployeeObj) cstmt.getObject(1);
}//try
catch (SQLException ex)
System.out.println("error SQL");
System.out.println ("\n*** SQLException caught ***\n");
while (ex != null)
System.out.println ("SQLState: " + ex.getSQLState ());
System.out.println ("Message: " + ex.getMessage ());
System.out.println ("Vendor: " + ex.getErrorCode ());
ex = ex.getNextException ();
System.out.println ("");
catch (java.lang.Exception ex)
System.out.println("error Lenguaje");
return ret;
Do you have any idea?
Maybe you are looking for
-
Balance of Payment (BOP) for France - Report RFIDITSR00
I'm trying to run the report RFIDITSR00 for E84 declaration. I had followed all the setups in the SAP Note 928316 but I do not have any information with the report. Can someone help me? I do not understand why is not picking up the items.
-
I need to make a chart with 3 columns, and 2 rows; one row for the title and the other one filled with information
-
Slow BB download speed after 16:30. Works fine in ...
I'm at wits end with BT and the service I receive. I only wish I could choose to pay a 10th of the price for the service I receive. I have tried to use the BT call centre with no avail. The words “chasing ones tail” spring to mind. Hence adding my tr
-
Mail: Incoming messages problem.
Hiya, Since around October my Apple Mail has been playing up, when I open Apple mail and click get mail it shows it downloading my mail it gets to around 17/310 message and then the download slowly decreases to 0kb and by the 22nd message it stops do
-
dm4-1060us laptop SD Card Reader 5-in-1 question. Does it work with SDHC and SDXC memory cards?