DI API with BP
In 2005A, when I try to create a new BP with the DI API, the operation fails with the error code -5002 and the error message "Bank account is missing". The same code worked fine in earlier versions. Any ideas?
Code:
Dim bp As SAPbobsCOM.BusinessPartners
bp = g_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)
bp.CardCode = AcquireBPCode()
bp.CardName = reader.GetString(0) & " " & reader.GetString(1)
bp.CardType = SAPbobsCOM.BoCardTypes.cCustomer
bp.GroupCode = 100 'Customers
bp.Phone1 = reader.GetString(7)
bp.Cellular = reader.GetString(8)
bp.Fax = reader.GetString(9)
bp.EmailAddress = reader.GetString(10)
bp.Add
Hi Dao,
For me, it's quite wierd because I can add BP without bank accounts. And I think you'd rather try to add currency. I want to say "Don't believe the error code and messages." because I encountered so many cases of wrong messages.
According to the help center file of 2005 SDK, there're no manadatory field in bank account. And I still running addon with functionality of adding BP via DI api. I tested to add BP without bankcode couple of times this morning, but it worked fine.
I attach my code lines here and hope to help you a lot.
oBP = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)
oBP.CardType = SAPbobsCOM.BoCardTypes.cCustomer
oBP.CardCode = Trim(oDBDS.GetValue("u_custCode", oDBDS.Offset).ToString)
oBP.CardName = Trim(oDBDS.GetValue("Name", oDBDS.Offset).ToString)
oBP.GroupCode = Trim(oDBDS.GetValue("u_custGroup", oDBDS.Offset).ToString)
oBP.Currency = Trim(oDBDS.GetValue("u_currency", oDBDS.Offset).ToString)
oBP.Addresses.AddressName = Trim(oDBDS.GetValue("u_addName", oDBDS.Offset).ToString)
oBP.Addresses.AddressType = SAPbobsCOM.BoAddressType.bo_BillTo
oBP.Addresses.Street = Trim(oDBDS.GetValue("u_addStreet", oDBDS.Offset).ToString)
oBP.Addresses.Block = Trim(oDBDS.GetValue("u_addBlock", oDBDS.Offset).ToString)
oBP.Addresses.BuildingFloorRoom = Trim(oDBDS.GetValue("u_addBuilding", oDBDS.Offset).ToString)
oBP.Addresses.ZipCode = Trim(oDBDS.GetValue("u_addZipcode", oDBDS.Offset).ToString)
oBP.Addresses.City = Trim(oDBDS.GetValue("u_addCity", oDBDS.Offset).ToString)
oBP.Addresses.State = Trim(oDBDS.GetValue("u_addState", oDBDS.Offset).ToString)
oBP.Addresses.Country = Trim(oDBDS.GetValue("u_addCountry", oDBDS.Offset.ToString))
oBP.AccountRecivablePayables.AccountCode = Trim(oDBDS.GetValue("u_CustAcct", oDBDS.Offset).ToString)
oBP.AccountRecivablePayables.Add()
'oBP.AccountRecivablePayables.AccountType = SAPbobsCOM.BoBpAccountTypes.bpat_Payable
oForm.Items.Item("mtxBank").Specific.FlushToDataSource()
For i = 0 To oForm.Items.Item("mtxBank").Specific.RowCount - 1
oDBDS_Bank.Offset = i
If Trim(oDBDS_Bank.GetValue("u_bankcode", oDBDS_Bank.Offset).ToString).Length > 0 Then
oRecordset.DoQuery("SELECT countrycod from ODSC where bankcode = '" & Trim(oDBDS_Bank.GetValue("u_bankcode", oDBDS_Bank.Offset).ToString) & "' ")
oBP.BPBankAccounts.Country = oRecordset.Fields.Item("countrycod").Value
oBP.BPBankAccounts.AccountNo = Trim(oDBDS_Bank.GetValue("U_account", oDBDS_Bank.Offset).ToString)
oBP.BPBankAccounts.BankCode = Trim(oDBDS_Bank.GetValue("u_bankcode", oDBDS_Bank.Offset).ToString)
oBP.BPBankAccounts.BPCode = Trim(oDBDS.GetValue("u_custCode", oDBDS.Offset).ToString)
oBP.BPBankAccounts.Branch = Trim(oDBDS_Bank.GetValue("U_Branch", oDBDS_Bank.Offset).ToString)
oBP.BPBankAccounts.IBAN = Trim(oDBDS_Bank.GetValue("U_IBAN", oDBDS_Bank.Offset).ToString)
oBP.BPBankAccounts.Add()
End If
Next
lRetCode = oBP.Add()
Similar Messages
-
Error occurred while finding users using API with custom field
Hi All,
I am getting the following error while searching user using API with custom attribute. Did anybody faced the same problem before ?
Hashtable<Object,Object> env = new Hashtable<Object,Object>();
env.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
env.put(OIMClient.JAVA_NAMING_PROVIDER_URL, "t3://localhost:14000");
System.setProperty("java.security.auth.login.config","C:\\Oracle\\Middleware\\Oracle_IDM1\\designconsole\\config\\authwl.conf");
System.setProperty("OIM.AppServerType", "wls");
System.setProperty("APPSERVER_TYPE", "wls");
tcUtilityFactory ioUtilityFactory = new tcUtilityFactory(env, "xelsysadm", "Weblogic123$");
OIMClient client = new OIMClient(env);
client.login("xelsysadm", "Weblogic123$".toCharArray());
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
tcUserOperationsIntf moUserUtility = (tcUserOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
Hashtable mhSearchCriteria = new Hashtable();
mhSearchCriteria.put("USR_UDF_ACTUALSTARTDATE",formatter.format(date));
tcResultSet moResultSet = moUserUtility.findAllUsers(mhSearchCriteria);
printTcResultSet(moResultSet,"abcd");
log4j:WARN No appenders could be found for logger (org.springframework.jndi.JndiTemplate).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" Thor.API.Exceptions.tcAPIException: Error occurred while finding users.
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl_1036_WLStub.findAllUsersx(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
at com.sun.proxy.$Proxy2.findAllUsersx(Unknown Source)
at Thor.API.Operations.tcUserOperationsIntfDelegate.findAllUsers(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.security.Security.runAs(Security.java:41)
at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
at com.sun.proxy.$Proxy3.findAllUsers(Unknown Source)
at oim.standalone.code.OIMAPIConnection.usersearch(OIMAPIConnection.java:209)
at oim.standalone.code.OIMAPIConnection.main(OIMAPIConnection.java:342)
Caused by: Thor.API.Exceptions.tcAPIException: Error occurred while finding users.
at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.findAllUsers(tcUserOperationsBean.java:4604)
at Thor.API.Operations.tcUserOperationsIntfEJB.findAllUsersx(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1614.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy347.findAllUsersx(Unknown Source)
at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl.findAllUsersx(Unknown Source)
at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Thank youHi J,
Thanks for the reply. But the code is working fine for OOTB attributes and for 11g API i am getting permission exception
Exception in thread "main" oracle.iam.platform.authz.exception.AccessDeniedException: You do not have permission to search the following user attributes: USR_UDF_ACTUALSTARTDATE.
at oracle.iam.identity.usermgmt.impl.UserManagerImpl.search(UserManagerImpl.java:1465)
at sun.reflect.GeneratedMethodAccessor1034.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy366.search(Unknown Source)
at oracle.iam.identity.usermgmt.api.UserManagerEJB.searchx(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1449.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy365.searchx(Unknown Source)
at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl.searchx(Unknown Source)
at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: oracle.iam.identity.exception.SearchAttributeAccessDeniedException: You do not have permission to search the following user attributes: USR_UDF_ACTUALSTARTDATE.
at oracle.iam.identity.usermgmt.impl.UserManagerImpl.search(UserManagerImpl.java:1462)
... 44 more -
Using KM APIs with Anonymous user
Dear SDNites,
I have gone thorough one of the SAP notes on possible CM scenarios with anonymous users. It says the the supported scenarios are Search, browse and download.
My question is that can we use KM apis in these areas with anonymous users? I got some documentation on KM Indexmanagement APIs for searching with TREX, which requires authenticated user. I am wondering is there any way to use those APIs with anonymous user access.
Thanks a lot in advance.
Regards
PavanHi Pavan,
if you access the KM via Web Service you'll find parameters in each service to send username and password.
If you browse the KM reposiroties via http you may need to do an authentication first. If your portal accepts basic authentication (as it does by default) you may call the KM explorer iView with some URL like:
http://<username>:<password>@<hostname>.<domain>:<port>/<path to KM iView>
If this does not work, maybe you need to use a client that supports basic authentication (digest). This may be e.g. the OpenSourcer library [HttpClient|http://hc.apache.org/] from the Apache project.
See [RFC2617|http://www.faqs.org/rfcs/rfc2617.html] for more details on Basic Authentication and Basic Authentication (digest).
If you have some more questions, please come back.
Carsten -
Hi,
I have to develop API with external system through messages.
This is new to me.
Could anyone help me how to do this?
Thanks,
Ashok.Checkout the link :
http://help.sap.com/saphelp_46c/helpdata/en/22/04280f488911d189490000e829fbbd/frameset.htm
Thanks -
How to use third party APIs with Sun J2ME Toolkit
I've installed Sun J2ME Toolkit 2.1. If I intend to use other third party APIs with my existing toolkit, how do I do that. I can manage to get the jar file of the associated API classes, but how to integrate the same with the toolkit. Thanks in advance to all who support.
if I remember right, it is enough, if you put the .jar of the api in the lib/ directory of your project (<WTK>/apps/<yourProject>/lib/ )
hth
Kay -
Adobe Reader XI crashes on PPKLite.api with failure CryptFindLocalizedName.
When Other language version Adobe reader XI is installed to English version Windows, it crashes on PPKLite.api with failure CryptFindLocalizedName.
It doesn't have the check routine which it is null, and it crashes because it calls 'wcslen(NULL)'
D:\Program Files\Adobe\Reader 11.0\Reader\plug_ins\PPKLite.api
28058DFA C7066C9A4428
mov
dword ptr [esi],L28449A6C
28058E00 897E10
mov
[esi+10h],edi
28058E03 885E14
mov
[esi+14h],bl
28058E06 897D0C
mov
[ebp+0Ch],edi
28058E09 FF750C
push
[ebp+0Ch]
28058E0C C645FC01
mov
byte ptr [ebp-04h],01h
28058E10 FF15BC155928
call
[CRYPT32.dll_DelayImport_CryptFindLocalizedName]
28058E16 8365FC00
and
dword ptr [ebp-04h],00000000h
28058E1A 89450C
mov
[ebp+0Ch],eax <--- eax=0 !!!!!!!!!!!!!!!!!!!!
28058E1D FF750C
push
[ebp+0Ch]
28058E20 FF15DCB34128
call
[MSVCR100.dll!wcslen]
28058E26 59
pop
ecx
28058E27 8B4E04
mov
ecx,[esi+04h]
28058E2A 8D440004
lea
eax,[eax+eax+04h]
28058E2E 50
push
eaxMy environment XPSP3 with changing user and system locale to Japanese.
But , It is resolved.
It becomes no error when I install MUI version Reader XI.
But sometimes My Windows XP SP3 shows the popup application Error dialog when Adobe reader XI is terminating. It seems to have some bugs. -
I am trying to use Sun's Comm API with Web Start so I can access COM1 from my application.
When the application starts, I receive an exception for the CommPortIdentifier. When I run this
application as a standalone, it works fine. I have to assume that there is a problem with the
deployment of the Comm API.
I have include the win32com.dll in a jar file and defined it in the nativelib tag in the jnlp file.
The comm.jar and the javax.comm.properties files are include in another jar. I am not sure
what is the proper way to deploy these files and cannot find any documentation on this.
Does anyone know the correct way to handle this?I have include the win32com.dll in a jar file and
defined it in the nativelib tag in the jnlp file.
The comm.jar and the javax.comm.properties files are
include in another jar. I am not sure
what is the proper way to deploy these files and
cannot find any documentation on this.
should like like this
<resources>
<j2se version="..." href="..."/>
<jar href="application.jar"/>
<jar href="comm.jar" />
</resources>
<resources os="Windows">
<nativelib href="win32com.dll"/>
</resources>
Then in the code in application.jar, call
System.loadLibrary("win32com");
/Dietz -
Hi:
Does somebody know if it is possible to upload data using an API in SQL Loader? Or SQL Loader is limited only to INSERT statements?
I need to bulk a lot of employees and their usernames and resposibilities. They are almost 200 employees. What I would like to do is to create a csv file with all this information (first_name, last_name, hire_date, sex, email, if it is a purchaser, username, password, responsibility...), and through a request load all this to Oracle Ebs. I want to use hr_employee_api.create_employee, fnd_user_pkg.create_user and fnd_wf_engine.propagate_user_role. I don't want to enter data using inserts because hr_employee_api.create_employee api changes more than one table.
I hope you can help me
Thanks in advanceWhy don't you
* load the data file into a temp table
* write a procedure that reads the temp table and calls the 3 APIs with the data from each row
Sandeep Gandhi -
Can i use 2D API with out using JRE.
hi,
can i use 2d API with out using JRE 1.3 .
please reply
raviYes, it was (still is?) supported in Java 1.2 - but no
earlier.How is it done.can u please give some sample code.
Thanks and regards,
Ravikumar -
How to use the crypto api with gemalto cyberflex 32k ?
Hello ,
I've done many javacard programs using this method :
_compilation with javacard kit 2.2.1
_convertion into ".cap" with the javacard kit 2.1.2
All this programs work fine with this method : helloworld, read, write in the card, ....
But when i want to use the crypto api, i can't charge the program in the card (just by adding 2 lines for generating keys):
----------> returns 0x80206A80 (6A80: Wrong data / Incorrect values i data.)
I think it's because i use the 2.1.2 version , but if i use the 2.2.1 to convert , it's another error and no program work with this method.....even helloworld doesn't work...
-----------> returns 0x80206985 (6985: Command not allowed - Conditions of use not satisfied.)
I thing i must change my gpshel command , but i have read many forums but can't find the configuration for my card cyberflex 32k, some people had similar problems so they used the kit 2.1.2 combined with 2.2.1 like me, but i think they can't use the crypto api with this.........
Any help will be apreciated,
kind regards
Franck
Edited by: jojo85 on Mar 20, 2009 11:03 AMHello,
Thanks Sonnyyu,
I deleted my gpshell 1.4.2 directory and i installed gpshell 1.4.0 instead like they said , to avoid some bugs
i've tested the exemple CardEdgeII.ijc ,
here's what i got:
mode_201
enable_trace
establish_context
card_connect -readerNumber 1
select -AID a0000000030000
open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
delete -AID A0000003230101
delete -AID A00000032301
delete -AID A00000000101
delete -AID A000000001mode_201
enable_trace
establish_context
card_connect -readerNumber 1
select -AID a0000000030000
Command --> 00A4040007A0000000030000
Wrapped command --> 00A4040007A0000000030000
Response <-- 6F188407A0000000030000A50D9F6E060011020201009F6501FF9000
open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
Command --> 8050000008674672AE4B85E01800
Wrapped command --> 8050000008674672AE4B85E01800
Response <-- 000081410002B2C600E4010151982BB4CF843B1431E57DB6418652AE9000
Command --> 848201001073CF9B92B3F11E10BE12D1318E9A8095
Wrapped command --> 848201001073CF9B92B3F11E10BE12D1318E9A8095
Response <-- 9000
delete -AID A0000003230101
Command --> 80E40000094F07A000000323010100
Wrapped command --> 84E40000114F07A000000323010149D51E784E07966B00
Response <-- 6A88
delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
delete -AID A00000032301
Command --> 80E40000084F06A0000003230100
Wrapped command --> 84E40000104F06A00000032301E3788AF4A9E32C2100
Response <-- 6A88
delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
delete -AID A00000000101
Command --> 80E40000084F06A0000000010100
Wrapped command --> 84E40000104F06A00000000101C3CC96E6E54AF0ED00
Response <-- 6A88
delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
delete -AID A000000001
Command --> 80E40000074F05A00000000100
Wrapped command --> 84E400000F4F05A000000001DA73D168B218692C00
Response <-- 6A88
delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
install -file CardEdgeII.ijc -nvDataLimit 12000 -instParam 00 -priv 2
install -file CardEdgeII.ijc -nvDataLimit 12000 -instParam 00 -priv 2
Command --> 80E602001705A00000000107A00000000300000006EF04C60231000000
Wrapped command --> 84E602001F05A00000000107A00000000300000006EF04C60231000019F52839EB52A80200
Response <-- 009000
Command --> 80E80000EFC48230F401000FDECAFFED010204000105A00000000102001F000F001F000A00290256006C2307000A04230000067F00060000000004010004002904000107A0000000620101010107A0000000620102010107A0000000620201000107A000000062000103000A0106A0000000010119CE06006C00800313000C040400051856FFFF1BA41A2A17FB1818183718A61971008300020001011100001E4F1EC51F771F9A1FA71FAC1FB31FBC1FCD1FF41FFD20082043204B205520662071008300030001010D0000209520B520C520D52101211C21742196221F2230226F227D22E1072307000640188C00861803880010
Wrapped command --> 84E80000F7C48230F401000FDECAFFED010204000105A00000000102001F000F001F000A00290256006C2307000A04230000067F00060000000004010004002904000107A0000000620101010107A0000000620102010107A0000000620201000107A000000062000103000A0106A0000000010119CE06006C00800313000C040400051856FFFF1BA41A2A17FB1818183718A61971008300020001011100001E4F1EC51F771F9A1FA71FAC1FB31FBC1FCD1FF41FFD20082043204B205520662071008300030001010D0000209520B520C520D52101211C21742196221F2230226F227D22E1072307000640188C00861803880010C9DE1DD3FD6CD8CE
Response <-- 9000
Command --> 80E80001EF08900B7F001C7B001C03104D387B001C041075387B001C051073387B001C061063387B001C07106C387B001C081065387B001C10061030387B001C1007103038187B001C037B001C925B8C004D6108119CFF8D005318100891008087011810089100808702AD02038F00803D0610108C002037AD020324940000807B001C037B001C925B8B002A7A05361A0525321A062529071F62071F10086C08119C108D00531607610EAD021F24940000802804700CAD011F2494000080280415046708119C108D0053031A07258D002E2905198B003016056A081167008D00531605076D08119C0F8D00531A08252906160504
Wrapped command --> 84E80001F708900B7F001C7B001C03104D387B001C041075387B001C051073387B001C061063387B001C07106C387B001C081065387B001C10061030387B001C1007103038187B001C037B001C925B8C004D6108119CFF8D005318100891008087011810089100808702AD02038F00803D0610108C002037AD020324940000807B001C037B001C925B8B002A7A05361A0525321A062529071F62071F10086C08119C108D00531607610EAD021F24940000802804700CAD011F2494000080280415046708119C108D0053031A07258D002E2905198B003016056A081167008D00531605076D08119C0F8D00531A082529061605045F95980396338536
Response <-- 9000
°
°
°
there are again many lines and the response is always 9000
i'll try to find a converter to convert the .cap files of my crypto application into .ijc files
thanks,
kind regards
Franck
Edited by: jojo85 on Mar 21, 2009 2:48 PM -
How to Integrate OIM API with the Application in NetBeans
Hi All,
I'm Facing problems to Integrate OIM API with the Application. I'm using Netbeans IDE. Can anyone please let me know the steps to do so?? any documents will also help me.
ThanksHey,
Helpful links for you:
1- http://www.youtube.com/watch?v=Yccl0HqfA3o
2- http://www.youtube.com/watch?v=ZdMTLRF7P_4
Let me know if it helps you. I hope so.
Thiago Leoncio Guimaraes -
Integrate XMLP APIs with Oracle Forms
Hi,
I want to integrate XML Publisher's APIs with Oracle Forms. I have done the following to achieve this.
1. Built a Java class to
a.Handle the Data extraction from Database using the data template
b.Convert the RTF to XSL-FO format
c.Render the report by merging the xsl and the data xml files
2.Created a jar file of the java class file
3.Imported these classes into Oracle Form, using Jimporter
All works fine, when I execute the form in a client-server architecture.
But am getting the 105101 non-ORACLE exception if I run the form, when the form is deployed in an Application Server. I have set the classpath to all the xmlp APIs (xdocore.jar, xmlparserv2-904.jar, and the jar of my java class) in the .env file and also in the system's classpath.
Could someone please clarify what else has to be done to set this right. Also, as I am relatively new to Java, can anyone clarify, the java class what I have used should be a servlet in case my Form is accessed via an Application Server or just the java class would serve the purpose.
Thanks,
SureshHi,
I was able to resolve this, after I went through few threads in the same forum. I set the classpath to i18nAPI_v3.jar, collections.jar, versioninfo.jar files in the .env file apart from the xdocore.jar and xmlparserv2-904.jar.
Now am able to execute the form and everything works fine!!
Thanks,
Suresh -
Berkley db java api with replication
I'm a java programmer/ .NET programmer and consider using berkley db with replication
my question is two fold :
1. Basic understanding of berkley db with java api : how exactly does it work ? Is it a single process or multiple process ? this intrigues me since since both java code ( with probably requireds JVM and a dedicated process ) and both c code run together.
2. when using java api with replication - does each client code in java has to be complied with the berkley db code and run in the same process or can be separate and the database function as a standalone service.
3. Regarding .NET - what are the possibilities of using berkley db with replication with .NET ?
ThanksDear Anonymous, :)
Berkeley DB (the version written in C) can run multi-process and/or multi-threaded when configured to do so (see the docs and look for information on concurrency, locking, and transactions). The Berkeley DB library calls can be wrapped into various languages, the Java Native Interface (JNI) for Java is one. Almost all other languages that I can think of have done something similar. We even use a toolkit called SWIG which helps in the process of wrapping an API for use in another language (nifty stuff). The result is that you can run a Java JVM using the Berkeley DB Java JAR/JNI interface concurrently with any number of other languages (C, Python, Ruby, Perl, TCL, you name it) because they are all simply separate processes using the same Berkeley DB dynamic library at runtime to access the same data. That's it, not much magic just good code. :)
As to your other two questions:
2. Berkeley DB HA (aka Replication) allows for two things; read scalability across multiple independent computers, and durability in the face of system failure (if a system dies, another one takes over until it can return to the replication group). Clients in a replication group can run using any language they want, they don't all have to be the same (for the same reasons as before). When running HA each system will manage a complete copy of the database environment (data files, log files, and locking/caching files). One system will be the master (read/write) and the others will be replicas (read only). If a master dies an election is held to determine the new master and then that system (or process) is promoted to master.
3. There are two answers to your .NET/C# issue. First, were working on an API for 4.8 which will be out soon. Second we just spotted this person's blog entry and found it to be very interesting, you might give it a try with Berkeley DB Java/JNI and see if it works.
http://maxtoroq.wordpress.com/2008/12/25/hello-berkeley-db-xml-on-net/
I hope that was helpful and answered your questions,
-greg -
Adobe acrobat Pro api with Java
Hi,
Can we call adobe acrobat pro Api with Java to edit Pdf forms. My requirements is to
convert the read only Pdf form to Editable/fillable Pdf Form.
Please let me know if there is any provision...
Thanks in advance.
Kind Regards,
Anil KumarIs there API available for calling Adobe Designer/Acrobat Pro from java/or any other language.Whether it be commercially licensed or anything ...kindly let me know..as it is too urgent.
Thanks and Regards, -
C# Code example authenticate WAP API with management certificate ...
I want to authenticate access to a WAP API via a management certificate in C#.
anyone knows how this is posible?
thx,
Clemens
ClemensYes. This is very much possible. You need to hit the public tenant API with the certificate (in a development environment on 30006 port). Following snippet should help you.
static async Task RunAsync()
string request = String.Format("{0}/services/vhdservice/disks", subscriptionId);
HttpResponseMessage response = await httpClient.GetAsync(request);
if (response.IsSuccessStatusCode) {
var result = await response.Content.ReadAsStringAsync();
var X509Certificate2 = GetCertificateFromStore(...);
var handler = new WebRequestHandler();
handler.UseDefaultCredentials = false;
handler.ClientCertificates.Add(X509Certificate2);
httpClient = new HttpClient(handler);
string WAPURL = @"https://wapt01.twelabs.com:30006/";
httpClient.BaseAddress = new UriBuilder(WAPURL).Uri;
httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
RunAsync().Wait(); -
Compatibility of events API with Latest JPI1.4
Hi,
We have a Java applet written with mostly Jdk1.0 ... which works fine with
native JVM's of netscape 4.75 and IE5.5 browsers.
But when I use latest JPI1.4 and above, I find the conetent on the screen is not fully coming up unless the mouse move is done on that .
When I build/compile it, I get the following warnings
Can someone suggest is this deprecated API's that is causing the problems when we execute applets with the latest JPI.
What can be the workaround ???
warning: addItem(java.lang.String) in java.awt.List h
as been deprecated
loa.addItem(cs);
^
warning: delItem(int) in java.awt.List has been deprecated
list1.delItem(ind2[i]-i);
^
warning: delItem(int) in java.awt.List has been deprecated
list1.delItem(ind);
^
^
warning: mouseUp(java.awt.Event,int,int) in java.awt.Compo
nent has been deprecated
public boolean mouseUp(Event ev, int x, int y) {
^
warning: mouseDown(java.awt.Event,int,int) in java.awt.Com
ponent has been deprecated
public boolean mouseDown(Event ev, int x, int y) {
^
warning: mouseDrag(java.awt.Event,int,int) in java.awt.Com
ponent has been deprecated
public boolean mouseDrag(Event ev, int x, int y) {
^
warning: keyDown(java.awt.Event,int) in java.awt.Component
has been deprecated
public boolean keyDown(Event ev, int key) {
^
warning: keyDown(java.awt.Event,int) in java.awt.Component
has been deprecated
return super.keyDown(ev, key);
^
warning: mouseEnter(java.awt.Event,int,int) in java.awt.Co
mponent has been deprecated
mouseEnter(ev, ev.x, ev.y);
^
warning: mouseExit(java.awt.Event,int,int) in java.awt.Com
ponent has been deprecated
mouseExit(ev, ev.x, ev.y);
^
^
warning: getPeer() in java.awt.Component has been depreca
ted
return getPeer() != null;
^
warning: encode(java.lang.String) in java.net.URLEncoder
has been deprecated
warning: encode(java.lang.String) in java.net.URLEncoder
has been deprecated
urlst += ("&" + fid + "=" + URLEncoder.encode(getFieldVal(row, f
id)));Hello Mike,
Please refer to this article 1794398 - Forward Fit Plan: Which patches are included in each
Support Pack for Business Intelligence (BI)
Cheers,
Fadoua
Maybe you are looking for
-
Issue with running QuickTime Windows. Buffer Overrun Error - C++ Library .
Initial problem was Buffer Overrun Error (C++ Library) when clicking on QuickTime after installation. IE. QT would not even open. http://support.microsoft.com/kb/831875#appliesto I took these steps: 1. Tried to uninstall QuickTime by itself (it faile
-
How to get the username in a custom password change routine / procedure / form when a user's password has expired and is redirected automatically to this custom program? We use the 2nd parameter in LOGIN_URL column in WWSSO_LS_CONFIGURATION_INFO$ tab
-
i have an HP3050 and a HP2050 and i was printing coupons in black and now i can't get them to switch back to printing in color. Ink levels are fine. When I go to advanced settings,it only mentions black in and greyscale. HELP!!!
-
Does ColdFusion 11 go into sleep mode after a period of non-use?
I've just installed CF11 on my cloud server (running Windows Server 2008 R2) for a shopping cart app using SQL Express Edition in the backend. After periods of inactivity, especially every morning, when I go into my app, it clocks for about a minute
-
After purchasing a new Mac, I wish to donate my old PowerBook G4 to a friend. I intend to create a new Admin account with the friend's name, then delete my old User folder. The applications folder will remain untouched. Are there any pitfalls that I