Install applet failed when calling (RSAPrivateCrtKey)KeyBuilder.buildKey()
Hi readers,
I am newbie to Java card applet development. I have written a applet to calculate RSA signature with the fixed RSA CRT components and data sent by CAD.
When I run the applet using Emulator, I get 0x64 44:
CLA: 00, INS: a4, P1: 04, P2: 00, Lc: 09, a0, 00, 00, 00, 62, 03, 01, 08, 01, Le: 00, SW1: 90, SW2: 00
CLA: 80, INS: b8, P1: 00, P2: 00, Lc: 0b, 09, a0, 00, 00, 04, e0, 00, 01, 00, 01, 00, Le: 00, SW1: 64, SW2: 44
I debugged applet code and I see that below line is the issue.
privateCrtKey = (RSAPrivateCrtKey)KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_CRT_PRIVATE, KeyBuilder.LENGTH_RSA_2048, false);
asymSignature = Signature.getInstance(Signature.ALG_RSA_SHA_PKCS1, false);
please help me to sort out this issue. thanks.
From ISO 7816-4, 8.6.1
SW1-SW2 set to '64XX' with the value of 'XX' from '02' to '80' means that the card aborted the command; a possible completion of the command is conditioned by the recovery of a query of 'XX' bytes, for which the card possibly expects a response. (..)In other words, with SW=0x6444, and assuming the standard conventions are used, the card is probably telling that it wants 0x44 bytes in addition of (or is it rather than) the 0x0B it got, in some variant of the original or some additional command.
Without the source of the applet, or even knowledge of if it is installed or selected, we can't tell much more, except that there is no discernible relation with the lines of source quoted.
It could also help to know how the idea of sending the C-APDU 80b800000b 09a0000004e00001000100 00 came in the first place.
Similar Messages
-
Install OBIEE Failed When Creating Domain
Hi all,
I tried to install OBIEE on 64bit redhat linux, but failed when creating domain, the error log shows:
Starting the domain ...
oracle.as.provisioning.util.ConfigException:
Error while starting the domain.
Cause:
An error occurred while starting the domain.
Action:
See logs for more details.
at oracle.as.provisioning.util.ConfigException.createConfigException(ConfigException.java:123)
at oracle.as.provisioning.weblogic.ASDomain.startDomain(ASDomain.java:3180)
at oracle.as.provisioning.weblogic.ASDomain.startDomain(ASDomain.java:3043)
at oracle.as.provisioning.engine.WorkFlowExecutor._startAdminServer(WorkFlowExecutor.java:1645)
at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:635)
at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:391)
at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
at oracle.as.install.bi.biconfig.standard.StandardWorkFlowExecutor.executeHelper(StandardWorkFlowExecutor.java:31)
at oracle.as.install.bi.biconfig.standard.DomainProvisioningTask.doExecute(DomainProvisioningTask.java:49)
at oracle.as.install.bi.biconfig.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:70)
at oracle.as.install.bi.biconfig.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:66)
at oracle.as.install.bi.biconfig.BIConfigMain.doExecute(BIConfigMain.java:113)
at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:375)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:105)
at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:96)
at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:186)
at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)
at java.lang.Thread.run(Thread.java:662)
Caused by: oracle.as.provisioning.util.ConfigException:
Error while starting the domain.
Cause:
An internal WLST operation has failed.
Action:
See logs for more details.
at oracle.as.provisioning.util.ConfigException.createConfigException(ConfigException.java:123)
at oracle.as.provisioning.weblogic.ASDomain.startDomain(ASDomain.java:3126)
... 19 more
oracle.as.provisioning.exception.ASProvisioningException
at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:872)
at oracle.as.install.bi.biconfig.standard.StandardWorkFlowExecutor.executeHelper(StandardWorkFlowExecutor.java:31)
at oracle.as.install.bi.biconfig.standard.DomainProvisioningTask.doExecute(DomainProvisioningTask.java:49)
at oracle.as.install.bi.biconfig.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:70)
at oracle.as.install.bi.biconfig.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:66)
at oracle.as.install.bi.biconfig.BIConfigMain.doExecute(BIConfigMain.java:113)
at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:375)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:105)
at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:96)
at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:186)
at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)
at java.lang.Thread.run(Thread.java:662)
Caused by: oracle.as.provisioning.exception.ASProvWorkflowException: Error Executing workflow.
at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:686)
at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:391)
at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
... 14 more
the following steps(steps after creating domain) raised:
Caused by: java.net.ConnectException: t3://hostname:7001: Destination unreachable; nested exception is:
java.net.ConnectException: Connection refused; No available router to destination
It's unlikely a hosts file issue which I've met before.
Install OBIEE Failed on Linux 64bit
the log caused by hosts file shows:
Caused by: oracle.as.provisioning.util.ConfigException:
Error while starting the domain.
Cause:
Starting the Admin_Server timed out.
BTW, the port was tested to be available.
any idea?
thanks in advance
Nathanielwe had this issue couple of days back ,,
Resolved by doing below
1. uninstall obiee 2. drop the repository 3, remount /tmp folder
with this we could successfully install obiee 11.1.1.7 -
Registry's EnumKey Lookup Failing When Called By MSBuild?
A MS-DOS script executes the VBScript below and it works fine. However, when using a MS Build master deployment file which calls the aforementioned MS-DOS script, the 2nd location lookup ("SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\")
fails with a result code of 2. I have spent countless hours trying to figure out why the difference. Any ideas?
Const HKLM = &H80000002 'HKEY_LOCAL_MACHINE
Set oRegistry = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & node & "/root/default:StdRegProv")
REM 1st location: "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"
sBaseKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"
iRC = oRegistry.EnumKey(HKLM, sBaseKey, arSubKeys)
If iRC <> 0 THEN
WScript.Echo "Registry lookup failed for " & sBaseKey
ELSE
For Each sKey In arSubKeys
iRC = oRegistry.GetStringValue(HKLM, sBaseKey & sKey, "DisplayName", sValue)
If sValue = Wscript.Arguments.Item(1) Then
oRegistry.GetStringValue HKLM, sBaseKey & sKey, "UninstallString", sValue
InstalledApplications = Replace(sValue, "/I{", "/X{")
IF LEN(InstalledApplications) > 0 THEN
InstalledApplications = InstalledApplications & " /qn /l*vx """ & sFile & ".Log""" & Chr(13) & Chr(10)
END IF
END IF
NEXT
END IF
REM 2nd location: "SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\<GUID>\InstallProperties"
arProducts = NULL
sBaseKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\"
iRC = oRegistry.EnumKey(HKLM, sBaseKey, arProducts)
If iRC <> 0 THEN
WScript.Echo "Registry lookup failed for " & sBaseKey
ELSE
For Each guid In arProducts
sInnerKey = sBaseKey & guid & "\InstallProperties\"
iRC = oRegistry.GetStringValue(HKLM, sInnerKey, "DisplayName", sValue)
If sValue = Wscript.Arguments.Item(1) Then
oRegistry.GetStringValue HKLM, sInnerKey, "UninstallString", sValue
InstalledApplications = Replace(sValue, "/I{", "/X{")
IF LEN(InstalledApplications) > 0 THEN
InstalledApplications = InstalledApplications & " /qn /l*vx """ & sFile & ".Log""" & Chr(13) & Chr(10)
END IF
END IF
NEXT
InstalledApplications = InstalledApplications & "GOTO:EOF"
END IF
Shawn ([email protected])Or try sysnative:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa384187%28v=vs.85%29.aspx
Don't retire TechNet! -
(Don't give up yet - 13,225+ strong and growing)
But that is not a portable solution. it does not apply to 32 bit platforms and will only work from a 64 bit session when calling intp a 32 bit session.
If we are in a 32 bit session running VBScript then we cannot see the 64 bit registry without the help of WMI. The correct solution is to build in the correct environment. If you want to run in both environments then you will need to test the
32 bit version on a 32 bit system assuming the applications being enumerated use the same keys on both architectures.
¯\_(ツ)_/¯
This is correct. I totally forgot there are 32 bit and 64 bit versions of MSBuild. I made no changes except to execute the main deployment script with the 64 bit version of MS Build. Thank you for all of your help.
-Shawn
Shawn ([email protected]) -
Crystal Reports 2008 fails when called from e Web Service under 64bit OS
I have discovered that Crystal Reports 2008 doesn't work when called from a Web Service running under 64bit Windows platforms (in my case Windows 2003 Server and Windows XP 64bit); practically no object is instantiated. I've tried several solutions without success.
Before creating a wrapper component to use under COM+, is there anybody who has a better and cheaper solution than creating another component to wrap CR 2008 ?Hi Sergio,
Before I mark this post as assumed answered I would just like to say and re-iterate that at this time there is no one answer and we fully understand your concerns. As you know in CR 6.0 it came in 16 and 32 bit versions because at the time 32 bit was relatively new but 16 bit was the norm. This is also true for 32 to 64 bit, 32 is the norm and 64 bit is relatively new. We know and are well aware 64 bit is the future and we are working as quickly as we can to move in that direction. Because of the complexity of the Product it's not simply a matter of re-compiling all of our dll's in 64 bit format. The core of our data connectivity with our database drivers which are dependant on third party clients must also need to support 64 bit modes. This as well as Printer drivers also need to be 64 compatable, there are a multitude of dependencies that we rely on that must add 64 bit support. As a programmer you are well aware of the issues around Thunking back and forth between 32 to 64 bits, it can cause delays and potentially loss of data which is a whole other issue. Not to mention also that we would have to ship both versions potentially doubling the size of the distribution packages or doubling the size of the dll's to have the ability to work in both modes. Relatively speaking of course, it would not be double the size but the variables would need to be able to allocate 32 or 64 memory blocks.
The other option is to produce 2 separate versions, this alone is a massive project. Any issue would need to be fixed in separate code streams.
So I'm sure you can see it's not simply a matter of saying yes we support 64 bit. It's a massive project that is going to take time to do and we have to wait for the third party drivers to commit also.
Visual Studio .NET 2005 and 2008 is the only option if you want true 64 bit but you will be limited on what DB's you can support and export formats you can export to. They are the only drivers we did convert to 64 bit.
Thank you for your understanding
Don -
Stored procedure fails when called through jdbc
Stored procedure returns incorrect results
Hi!
I am really puzzled about this and would really appreciate some help.
We are migrating an servlet/jsp-application from websphere application server 3.5.3 to
Oracle Application Server 10g. The backend is an Oracle 9i database server. Most of the application
is build upon stored procedures in oracle. So the migration part is to make the servlets and JSPs
to work in their new environment, creating deployment descriptors and so on.
We are using JDeveloper 9.0.5.2 for development on Windows XP OS
Java version is 1.4.2_03-b02 (ojvm)
and also have an Oracle Application Server Enterprise Edition 9.0.4.0.0
running on a W2K SP6. Java version is 1.4.2_03-b02, for development and testing.
When running standalone (that comes width JDeveloper) OC4J the Java version is 1.4.2-b28 (client VM)
The problem:
When calling a stored procedure that calls another user defined procedure the returned result is wrong.
The example snippet I've enclosed only success on my standalone OC4J.
When I run the Java-app in JDeveloper using embedded OC4J it behaves incorrectly.
When I run the Java-app deployed at the standalone OC4J that comes with JDeveloper it runs just fine.
When I deploy the Java-app at the Oracle Application Server it behaves bad again.
It looks like the procedure called by the procedure cannot execute correctly or that it got null value as in-parameter.
What puzzles me is that this procedure did work correctly on websphere (JVM 1.2.2 and Oracle jdbc-drivers classes12.jar)
and it does executes just fine on the standalone OC4J.
I have tried different classes12.jar, ojdbc14.jar, different datasources (com.evermind.sql.DriverManagerDataSource,
oracle.jdbc.pool.OracleConnectionCacheImpl) width no succes.
/Mats Nord
The code follows....
- The java code
CallableStatement cs =
con.prepareCall("{ call oden.sp_tidGetProjForMember( ?, ?, ?, ?, ? ) }");
cs.registerOutParameter(1, OracleTypes.CURSOR);
cs.setLong(2, employeeNo);
cs.setLong(3, projId);
cs.setLong(4, actId);
cs.setLong(5, period);
cs.execute();
ResultSet rs = (ResultSet) cs.getObject(1);
while (rs.next()) {
MyItem aItem =
new MyItem(
Long.toString(employeeNo),
rs.getString(1),
rs.getString(2),
rs.getString(3),
rs.getString(4),
rs.getString(5),
rs.getString(6),
rs.getString(7),
rs.getString(8), // (Actually a number). This row returns "0" but it shuold return a value greater than "0"
rs.getString(9));
items.addElement(aItem);
- The stored procedure:
PROCEDURE sp_tidGetProjForMember (
rs_Proj IN OUT report_types.weakCur -- recordset
,p_pnr IN V_ADMANV.anv_PNR%TYPE -- pnr projektmedlem, NUMBER(12)
,p_projid IN PROJ.PROJ_ID%TYPE -- projekt-id, NUMBER(5), kan vara tomt
,p_aktid IN AKT.AKT_ID%TYPE -- aktivitets-id, NUMBER(5), kan vara tomt
,p_yyyymm IN NUMBER) -- period NUMBER(6), YYYYMM, kan vara tomt
<< Removed som lenghtly code from the post >>
OPEN rs_Proj FOR
SELECT
DECODE(TIDPROJ.prj_status, v_skickad_id, 0, -- godkänd
v_godknd_id, 0, -- godkänd
NULL, 1, -- under bearbetning
v_ejgodk_id, 2, -- ej godkänd
v_undknd_id, 2 -- ej godkänd
) AS STATUS -- skickad 0: godkänd, 1: under bearbetning, 2: underkänd
,TIDPROJ.prj_projid
,PROJ.proj_namn
,V_ADMANV.anv_namn AS PLEDNAMN
,V_ADMANV.anv_PNR AS PLEDPNR
,TIDPROJ.prj_aktid
,AKT.AKT_NAMN AS AKTNAMN
,NVL(SUM(NVL(UTILITY.sp_ds2Decnum(TIDPROJ.prj_tid), 0)), 0) -- when calling the fuction UTILTY.sp_ds2Decnum
,NVL(TIDPROJKOMMENT.tpk_kommentar, ' ')
FROM TIDPROJ
<< Removed som lenghtly code from this post >>
v_utdata := 'Recordset';
Utility.sp_putLogg (v_spname, 0, v_indata, v_utdata, SQLCODE, SQLERRM); -- commits
EXCEPTION
WHEN OTHERS THEN
v_utdata := 'FEL';
Utility.sp_putLogg (v_spname, 0, v_indata, v_utdata, SQLCODE, SQLERRM); -- rollbacks
END sp_tidGetProjForMember;Hi Kevin,
Just an addition. To create SSIS package programmatically, please refer to the document:
http://msdn.microsoft.com/en-us/library/ms345167.aspx
To implement dynamic column mapping through SSIS Script Component, please refer to:
http://wikiprogrammer.wordpress.com/2011/04/08/dynamic-column-mapping-in-ssis-part-1/
http://blog.quasarinc.com/ssis/best-solution-to-load-dynamically-change-csv-file-in-ssis-etl-package/
Regards,
Mike Yin
TechNet Community Support -
EEM - puts action fails in EEM applet/script when called via HTTP
I have an EEM script which produces some diagnostic output. The script is written to be initiated by "event manager run" and is running in sync mode. Script uses "puts" into stdout to produce the output. Everything is working fine, except when script is initiated via HTTP/HTTPS I get no output.
To reproduce the issue I have created the following applet:
event manager applet TEST1
event none sync yes
action 1 puts nonewline "SOMETEXT"
Here is output from command line (tested from console and telnet):
router#event manager run TEST1
SOMETEXT
router#
When applet is called via HTTP using http://router/level/15/exec/-/event/manager/run/TEST1/CR URL the output is empty. The test message goes to the console versus to HTTP reply.
So it looks like the stdout is not redirected to HTTP session successfully.
Any advice on why it is happening, or better yet how to fix it would be apprecaited.Thank you. This is also what I was thinking. As you probably already know I have opened a TAC case on the matter.
-
Target JSP report fails when called with a key defined in cgicmd.dat
Hi,
When I am calling the parameter form report as (on my local pc):
http://rnbhatta-us:8888/reports/pf_sumsptype.jsp?gsi
It works fine. Here 'gsi' is the KEY that has the userid/passwd@connect_string that I have defined in the cmgcgi.dat file on my local pc.
Now the report pf_sumsptype.jsp makes a call in a similar manner to the target report with the same 'gsi' key as in the code :
<form name="form1" method="post" action="/reports/summary_sptype.jsp?gsi">
The call to the target report 'summary_sptype.jsp' fails. It works if I replace 'gsi' in the above line with the userid and connect info.
Is there any other way to hide the database connect info?
Thanks,
Ritendra.I'm not sure why this should fail, but you could try changing the method above from post to get.
-Manish -
Journal import fails when called from PLSQL
Hi,
When journal import is called from plsql code it is failing with error in 'gllacc() Function returning without value and no data found'.
Same transaction is run succesfully from front end.
I checked both gl_interface and gl_interface_control table but couldnt find the issue.
Any info on this would be very helpful.
Thanks
SandhyaFOR l_rec IN (SELECT ledger_id,group_id from apps.gl_interface
WHERE status='NEW'
AND user_je_source_name='GIS_DATA_CONVERSION'
GROUP BY ledger_id,group_id
ORDER BY group_id
LOOP
apps.gl_journal_import_pkg.populate_interface_control (user_je_source_name => 'GIS_DATA_CONVERSION',
GROUP_ID => l_rec.group_id,
set_of_books_id => l_rec.ledger_id,
interface_run_id =>vl_interface_id,
table_name => 'GL_INTERFACE',
processed_data_action=>'D'
COMMIT;
vl_request_id := apps.fnd_request.submit_request (application => 'SQLGL', -- application short name
program => 'GLLEZLSRS', -- program short name
description => NULL, -- program name
start_time => NULL, -- start date
sub_request => FALSE, -- sub-request
argument1 => 2065, --Data access set id
argument2 => 'GIS_DATA_CONVERSION', --Source
argument3 => l_rec.ledger_id, -- set of books id
argument4 => l_rec.group_id,
argument5 => 'N', -- error to suspense flag
argument6 => NULL, -- create summary flag
argument7 => 'N' -- import desc flex flag
COMMIT;
IF ( vl_request_id = 0 ) THEN
xxgis.gis_conv_util_pkg.debug_print_p(1,'FND_LOG','E001: Journal Import Submission Failed. ' || SQLERRM);
retcode := 2;
EXIT;
ELSE
xxgis.gis_conv_util_pkg.debug_print_p(1,'FND_LOG','P001: Submitted Journal Import Program for group id: ' || l_rec.group_id ||
'and ledger :'||l_rec.ledger_id|| ', Request ID: ' || vl_request_id);
END IF;
END LOOP; -
Why am I getting an "internal error", just "Assertion failed" when calling createKeyword
Here is my code. It is called inside a function running under LrTasks.startAsyncTask. The calls to "Util.writeLog" confirm that createKeyword is called and never returns.
Util.catalog:withWriteAccessDo(
"CreateKwUnderPerson",
function()
Util.writeLog("Calling 'createKeyword()'")
akw = Util.catalog:createKeyword( name, {}, true, nil, true)
Util.writeLog("'createKeyword()' returned")
end
I find it disconcerting that there is no more informative error message. This seems to me to be an Adobe bug, even though the problem presumably originates from something I'm doing wrong.Thanks, but yes, I did knew this. It's all working now. When I first got your message my first reaction was to reply saying "that's not it—it's not nil"; but then I thought "I should check, it would be better if I could say I'd checked", and five minutes after that it was all cleared up. A lesson.
Thanks again. I did download your debugger (and used parts of the package) but thought that for what I was doing just using a logfile, with tail -F, would be enough. I'm migrating from Aperture and iPhoto, and thought that at the same time I could try to orgaineze my keywords. It's been frustrating but enjoyable.
And you said in the first message "given the nature of Lua". After trying to use Applescript to work with Aperture, Lua is positively luminous.
Thanks again,
Bill MItchell -
Create a Web Photo Album in DW fails when calling Fireworks
Hi there
I'm hoping someone might be able to give me some hint to what
could be causing this problem.
I recently uninstalled CS3 Dreamweaver and Fireworks (and any
other CS3 products) and installed the trial version of CS4 Master
Suite. Not when I am working in Dreamweaver and go to Create a Web
Photo Album (I do all the same steps I was doing successfully in
CS3) Fireworks goes to work and opens up, the small Batch window
appears for about 10 secs and then the Fireworks program closes
down.
So I uninstalled Fireworks and reinstalled (thinking I had
installed it badly). But the same shut down occurs. Has anyone
experienced so or have any ideas on what I should try to rectify
it.
Note: I made sure that all previous versions were cleaned off
my Mac before installing the CS4 package.
Thanks
PhillipI have a similar problem. I have DreamWeaver8 and installed a
demo version of Fireworks. Fireworks works fine when I just want to
open an image to edit.
However when I try to create a Photo Album I am prompted to
install Fireworks. I have 21 days left in the trial version.
thank you
Paul Picard -
64bit OraOLEDB failed when calling stored procedure with Ref Cursor
Hi everyone,
I used the ADO VB sample provided with the Oracle 10g provider installation.
But I compiled it in 64bit Visual Studio 2005 and ran on Windows 2003 x64 server.
The function call "cmd.Execute" when it is trying to call a stored procedure which has an Out Ref Cursor parameter. The exception is
"PLS-00306: wrong number or types arguments in call"
I already set the property "PLSQLRSet" to true. But it doesn't help.
The same code works if I compiled in 32 bit.
It also works if the stored procedure does not have Ref Cursor parameter.
I am guessing this is a bug in the 64bit Oracle provider. Anyone can confirm this please? or am I missing anything?
WilsonIt appears to work with 11.1.0.6.20 OLEDB provider but only for ExecuteNonQuery, I'm not able to work with Fill, and yes... in x86 works perfectly, but in x64 we are still having the ORA-06550 and PLS-00306 error.
Our Connection string is as follows:
"Provider=OraOLEDB.Oracle.1;OLEDB.NET=true;Password=xxxxx;Persist Security Info=True;User ID=exxxxx;Data Source=ECOR; PLSQLRSet=True"
We are not using ODP.NET.
Can you confirm that Fill method works with such update? -
Insert using Spatial Index fails when called from PHP
I have a stored procedure that inserts into a table with a spatial index on one of its fields.
When I run the procedure from SQL Server Management Studio it runs just fine.
When I run it from PHP, it returns the error: "INSERT failed because the following SET options have incorrect settings: 'CONCAT_NULL_YIELDS_NULL, ANSI_WARNINGS, ANSI_PADDING'. Verify that SET options are correct for use with indexed views and/or indexes
on computed columns and/or filtered indexes and/or query notifications and/or XML data type methods and/or spatial index operations"
From within Management Studio, I have tried many different combinations of settings, until I wound up with the list I have in the procedure below.
Within Managment Studio the error changes based on the options I have set, but PHP always replies with: 'CONCAT_NULL_YIELDS_NULL, ANSI_WARNINGS, ANSI_PADDING'
I have configured PHP to use the same SQL user as management studio, and I have tried both mssql_query and mssql_execute with bound parameters.
The spatial index is on the field post.location If I remove the spatial index it works, but I need the spatial index.
CREATE PROCEDURE insert_post ( @subject AS VARCHAR(250), @body AS VARCHAR(2000), @latitude AS FLOAT, @longitude AS FLOAT ) AS BEGIN
SET NOCOUNT ON
SET ANSI_WARNINGS ON
SET ANSI_PADDING ON
SET CONCAT_NULL_YIELDS_NULL ON
SET NUMERIC_ROUNDABORT OFF
DECLARE @location AS geography = geography::Point(@latitude, @longitude, 4326)
INSERT INTO post
subject,
body,
location
) VALUES (
@subject,
@body,
@location
ENDHi Charles
Your issue looks like it have two basic sources: (1) The connection string properties, (2) The table structure and the data which you try to insert.
(1) The connection string properties can be specified in various ways.
You can set most of them during the connection, depending on the provider which you are using. We did not get from you any information about the PHP code, so we have no information regarding this part.
The connection properties can be changed after the connection was made, which is basically what you have try to do. But we don't know what properties
are differents (since you .. the PHP code..) but you can check those properties dynamically, insert them to a table and then compare. To check all the properties you can use this post:
http://ariely.info/Blog/tabid/83/EntryId/153/SQL-Server-Get-Connection-Properties.aspx
(2) We need to understand your
table structure and compare it to yours query. Please post your DDL+DML (queries to create the table and to insert some sample data), and the full SP code
as it is now.
[Personal Site] [Blog] [Facebook] -
CUPS print job options fail when called from lp (UNIX command line)
Under Leopard this command-line print request fails to respect the specified job options:
lp -o number-up=2 -o page-border=double <filename>
Though it worked great in Tiger, the number-up and page-border job options are now disregarded. I have tried lots of things (and wasted lots of paper) such as setting them permanently with lpoptions (and they do appear changed when the lpoptions command is repeated), using lpr instead of lp, reinstalling the printer via the CUPS localhost web interface, enabling non-Bonjour scanning with the hack to the CUPS preference file, deselecting "Last Printer Used" for the default printer in the System Preferences -- nope.
I have not tried other job options; I assume that whatever is breaking these two is breaking all the others, and even if it isn't, these two are what I want.
Is something new in Leopard overriding lpoptions job options? How do I make it stop? It is sooooo aggravating when something that used to work fine breaks. The printer is an HP LaserJet 4000N connected by Ethernet and discovered with AppleTalk.
Thanks for any advice!Thanks John, I did search but somehow missed that thread.
However it did not help. With or without the "-p printername" argument lpoptions does make a persistent change to its own data:
+$ lpoptions+
+media=Letter sides=one-sided finishings=3 copies=1 job-hold-until=no-hold job-priority=50 number-up=2 auth-info-required=none job-sheets=none,none printer-info=Barrow printer-is-accepting-jobs=1 printer-is-shared=0 printer-location='Local Zone' printer-make-and-model='HP LaserJet 4000 Series' printer-state=3 printer-state-change-time=1209495301 printer-state-reasons=none printer-type=2134228 page-border=double+
You can see that the printer "Barrow" has remembered "number-up=2" and "page-border=double". Regardless if I give any of these commands:
+lpr <filename>+
+lpr -P Barrow <filename>+
+lp <filename>+
+lp -d Barrow <filename>+
none of them show the results of these option settings (and somewhere in the forest another tree is cut down). -
LocateRegistry.getRegistry() fails when called from Tomcat 5.5 servlet
I'm trying to access a simple RMI server from a Tomcat 5.5 (Java 5) servlet. I get access exceptions having to do with java.util.logging.LoggingPermission. (The RMI server works fine with a simple command line Java app.)
Is there some reason that calling getRegistry() from within a servlet should fail? Is there some reason that it should require LoggingPermission?
I've modified the catalina.policy file to grant all permission to everything but I still get the same errors.
Surely there is a way to make RMI calls from a servlet. Any suggestions on how to fix this? Thanks.show us the script
-
BPEL test failed when calling same webserivce twice
Our BPEL calls same web service, same operation method twice with different parameter values.
There is only one copy of assert value we could provide in xml.
The BPEL test failed because one of the input value does not match the assert value.
Is this supported at all?Fusion 11.1.1.3.0
You are right, if a wire has an assert, it appears all invokes will call the assertion. There is no distinction possible to test between 1st, and subsequent invokes at runtime. All invokes must look the same for the assert to be consistent.
My experience with the JDev 11g Test Suite shows me that the limitations are huge. 10g BPEL had abilities to test BPEL variables internally, we are waiting for the functionality to be ported.
Maybe you are looking for
-
Why do I have "Unified Info" and plain "Info" categories in my iPhone Contacts?
I have an iPhone 3GS (iOS 5.0.1), an iMac (OS X v10.7.3) and an iCloud account. All are set to sync several things, but the topic of this inquiry is my Contacts. I've noticed that when I open any given Contact listing on my iPhone, each is headed b
-
Multicam view not showing up in project window
The sequence and all the source files are there, but the multicam window is just black. How do I fix this for easier multicam editing? Left: as the source window and project file window shows, everything is there. Right: It is all black where the mul
-
Send bulk emails with only the recipients name appearing in the TO field when they recieve it
Hi I want to know if Mail or any third party software will enable me to send a bulk email to a group in my address book with the recipeant only seeing their name and not the names of all the others in the group email. I dont want to use cc or bcc bec
-
5700 Xpress Music and strange warning tone
Just got this phone and over all it's great. But when you change to a different Profile for example, on all other Nokia's you get the standard "beep" when you activate the new Profile. On the 5700 you get a "ding" or half beep. Not sure if its my pho
-
Generate new schdule lines in MMSA after the max limit I.e.9999 is reached
Releases are not feeding into MMSA since it has reached the max. schedule line. Now if i want to create new released in the same MMSA what i have to do. In other words i want to know how to generate new schedule lines in