Error upon inserting data in sql Database using stream analytics job: Datatye error conversion
I have a data passed into the Event Hubs, queried by stream analytic job inserting it into sql database. Upon running the job, it becomes idle a few seconds after since it has an error:
Message: Conversion from 0 to System.Boolean failed. 0 was of type - System.Int64.
Conversion from 0 to System.Boolean failed. 0 was of type - System.Int64. Exception message at level [1], exception number [0], parent exception number [0]: Conversion from 0 to System.Boolean failed. 0 was of type - System.Int64.
The data type in one of my field(IsHistorical) is Boolean with a value of false. The data type of the column in the sql table where this is to be inserted is of type bit. In this case, it seems that stream analytics could not convert the value "false"
into a bit data type when inserting in sql table.
I'm wondering if you already have encountered this problem. Could you help me resolve this problem?
Thank you.
Azure Stream Analytics does not have Boolean type. On input we will convert JSON Boolean value to bigint.
Here is the list of supported types and conversions:
https://msdn.microsoft.com/en-us/library/azure/dn835065.aspx
You can fix this erro by changing column type from bit to int in SQL table schema.
Similar Messages
-
Error when save date in SQL database
Hi all,
I try to save a date in to a sql database, but when I run my program I get following error:
Invalid object 11/21/05 9:32 AM of type java.sql.Date assigned to host variable 3.
In my database table I have a fields date (type Data)en time type(Time).
this is the source:
public void createTitle(int title_id, String description, String user)
throws SQLException {
// TODO Auto-generated method stub
Date date = new Date();
String dateFormat = "YYYY-MM-DD";
String timeFormat = "HH:mm:ss";
SimpleDateFormat ddf = new SimpleDateFormat(dateFormat);
SimpleDateFormat tdf = new SimpleDateFormat(timeFormat);
String det = ddf.format(date);
String creationTime = tdf.format(date);
PreparedStatement newTitle = conn.prepareStatement("INSERT INTO BE_TITLE (TITLE_ID, DESCRIPTION, DATE_CREATE, TIME_CREATE, USER_CREATE) VALUES (?,?,?,?,?)");
try{
newTitle.setInt(1,title_id);
newTitle.setString(2,description);
newTitle.setDate(3, new java.sql.Date(date.getTime()));
newTitle.setTime(4, new java.sql.Time(date.getTime()));
newTitle.setString(5, user);
newTitle.executeUpdate();
}finally{
newTitle.close();
Can someone give me a solution for this error
RichardHi Richard,
in your application, you atempt to insert a java.sql.Date value into a DATE column, which has non-zero time-components. Open SQL rejects such an atempt.
Please allow me to quote from the OSS message (452727 2004), which Detlev refers to in his quote:
<i>
about one year ago, we had a very lengthy discussion on this issue - not only internally at SAP but also with Jonathan Bruce, the specification lead for JBDC at Sun.
We have the following dillema:
The javadoc of the constructor java.sql.Date(long) states:
"If the given milliseconds value contains time information, the driver will set the time components to the time in the default time zone (the time zone of the Java virtual machine running the application) that corresponds to zero GMT."
With Jonathan Bruce, we tried to clarify when this normalization should take place.
1) Source code inspection shows that it is not the class java.sql.Date the performs the normalization.
2) The Javadoc states that the JDBC driver should perform the
normalization. If it is the driver, more open questions arrise:
a) When shall the normalization be performed?
- if a setDate method is invoked?
- only for INSERT and update statements or also for all other parameters?
- shall the getDate method perform the normalization?
- what about set/getObject?
- the java Docs of set/getDate don't tell anything about normalization.
- according to which time zone shall the value be normalized?
- UTC
- vm time zone?
- database time zone?
3) If an automatic normalization is performed, data will be modified upon insertion (or extraction) from the database. This means that we cannot quarantee if we insert and Date object retrieve it again that the two objects will be equal.
In the discussion with Jonathan, we couldn't clarify the issue. However, Jonathan promised that the JDK should be modified in such a way that the JDK is responsible for the normalization. (So far such a change has not been done).
In order to be on the safe side, SAP chose that Open SQL should reject any Date values that are not normalized. This is what we have
implemented and documented. I agree, that in this repect, Open SQL is stricter than the JDBC standard demands.
To help the application with the task to normalize a Date (and Time) object, we offer the helper class
com.sap.sql.DateTimeNormalizer which you find in opensql.jar.
To come to a conclusion, the bevavoir you observed is from our side not a bug of Open SQL but a feature. Please use DateTimeNormalizer to normalize Date objects appropriately.
</i>
I hope, you can follow our reasoning.
Best regards,
Adrian -
Error when insert data in Sql Server table(DateTime data type)
Hello all,
I have created a database link in oracle 11g to SQL Server 2008 using Sqlserver gateway for oracle,Oracle run on Linux and SQL Server run on Windows platform.
I have queried a table and it fetches rows from the target table.
I am using this syntax for insert a row in Sql Server table.
Insert into Prod@sqlserver (NUMITEMCODE, NUMPREOPENSTOCK, NUMQNTY, NUMNEWOPENSTOCK, DATPRODDATE , TXTCOMPANYCODE, "bolstatus", NUMRESQNTY )
Values (1118 , 1390.0 , 100.0 ,1490 , '2012-06-23 12:37:58.000','SFP' ,0 , 0 );
but it give me error on DATPRODDATE,The data type of DATPRODDATE column in Sql Server is DATETIME.
My Question is how can i pass the date values in INSERT statement for Sql Server DateTime data type.
RegardsJust as with Oracle, you have to specify the date using the to_date() function or use the native date format for the target database (if you can figure out what that is). This is good practice anyway and a good habit to get into.
-
Error while inserting data in SQL Server.
Hi',
I am using SOA 11.1.1.5
I am inserting data using DB adapter in MS SQL Server. Some times I get below error.
Error Message: {http://schemas.oracle.com/bpel/extension}bindingFault
Fault ID rrr/xxx!1.1*soa_313bd437-7bb9-41c6-a719-d1775b9afc4b/xx/4115908-BpInv0-BpSeq1.6-4
Fault Time Dec 24, 2012 8:02:09 AM
Non Recoverable System Fault :
<bpelFault><faultType>0</faultType><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: [InsertIntoStagingxx.Stagingxx]. Caused by java.sql.BatchUpdateException: String or binary data would be truncated.. Please see the logs for the full DBAdapter logging output prior to this exception. This exception is considered not retriable, likely due to a modelling mistake. To classify it as retriable instead add property nonRetriableErrorCodes with value "-8152" to your deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff. All properties are integers. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary></part><part name="detail"><detail>String or binary data would be truncated.</detail></part><part name="code"><code>8152</code></part></bindingFault></bpelFault>
Please advice.
Thanks
YatanHi Yatan,
This should be due to data issues. And the error message is due to data truncation issues.
Please check your payload that you are trying to insert into the SQL server table.
One or more fields might have a data that is exceeding its defined length with respect to the table definitions.
Problem with using SQL server is that while inserting, you will not be pointed towards which field or column is causing the error.
You have to take the pain of searching through the entire payload to find the problem causing ones.
Thanks,
Deepak. -
Inserting data in oracle database using ASP.
hi all.
i am using oracle database 11g R2,windows xp,ASP.
i am able to store texts and numbers but i am not able to store image in blob.
here is my table structure.
Roll number
Name varchar2(20)
Subject varchar2(20)
Marks number
Attach Blobmy problem is in blob i am not able to insert image into database using ASP codes.
here is the code.
<%
Dim conn,recset
set conn=server.CreateObject("ADODB.connection")
set recset=server.CreateObject("ADODB.recordset")
'set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="MSDAORA;Data Source=orcl;User ID=XXXX;Password=XXX"
conn.Open(conn)
Dim r,n,s,m,att
r=upload.Form("roll")
n=upload.Form("nam")
s=upload.Form("sub")
m=upload.Form("mark")
att=upload.Form("FILE1")
Response.Write "Succssfully Inserted"
conn.execute "insert into table1 values('"&r&"','"&n&"','"&s&"','"&m&"','"&file1&"')"
conn.close
%>plz guide me and help me out.
thanks in advance..Azure Stream Analytics does not have Boolean type. On input we will convert JSON Boolean value to bigint.
Here is the list of supported types and conversions:
https://msdn.microsoft.com/en-us/library/azure/dn835065.aspx
You can fix this erro by changing column type from bit to int in SQL table schema. -
How to insert data into mysql database using GUI?
HI there,
I have created a GUI application using Netbeans 6.7.1 in which there are three jtextfields. Now from those text fields i have to insert data in the mysql database. I have already connected to mysql using drivers and URL which is used to connect to DB. So what code should i write in the source of these text fields. Please help me and give the code to it.
I actually don't know what code to be written in the source of a text field.
Thank You.Yo buddy i didn't mean that. I wanted to say that if you see my project then it will be easy for you to help me. okay have a look at this code and tell me i have just created my gui
This is Main.java -->
package bookdatabase2;
import java.sql.*;
import java.awt.*;
import javax.swing.*;
* @author Mohd Azeem
public class Main {
* @param args the command line arguments
public static void main(String[] args)throws Exception {
// TODO code application logic here
Class.forName("com.mysql.jdbc.Driver");
Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/books","root","");
//PreparedStatement state=con.prepareStatement("select * from titles");
//ResultSet result=state.executeQuery();
//while(result.next()){
// System.out.println(result.getString(1)+" "+result.getString(2)+" "+result.getString(3)+" "+result.getString(4));
This the gui i have created
BookDatabase.java -->
package my.bookdatabase;
import java.sql.*;
import javax.swing.*;
public class BookDatabase extends javax.swing.JFrame {
public BookDatabase()throws Exception {
Class.forName("com.mysql.jdbc.Driver");
Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/books","root","");
initComponents(); }
private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
public static void main(String args[])throws Exception {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
try{
new BookDatabase().setVisible(true);}
catch(Exception e){}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField3;
private javax.swing.JTextField jTextField4;
private javax.swing.JTextField jTextField5;
private javax.swing.JTextField jTextField6;
private javax.swing.JTextField jTextField7;
// End of variables declaration
Now tell me what to do?
i have only created the gui but unable to run it
when i click on run only main.java is being executed
but bookdatabase.java is not getting executed?
what should i do please help? -
Insert data into oracle database using a PHP form
I'm trying to enter data into my oracle database table using a php form. When I click submit no data is added. Could someone help me please. I'm new to php/oracle thing.
NOTE: I don't have any problem connecting to the database using php.
Here is the code I'm using:
<?php
// just print form asking for name if none was entered
if( !isset($query)) {
echo "<form action=\"$uri\" method=post>\n";
echo "<p>Enter Name: ";
echo "<input type=text size=100 maxlength=200 name=data value=\"$data\">\n";
echo "<br><input type=submit name=submit value=Submit>\n";
echo "</form>\n";
exit;
// insert client's name
$query = "INSERT INTO client (name) VALUES ($data)";
// connect to Oracle
$username = "xxxx";
$paswd = "yyyyyy";
$dbstring = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)".
"(HOST=patriot.gmu.edu)(PORT=1521))".
"(CONNECT_DATA=(SID=COSC)))";
$db_conn = ocilogon($username, $paswd, $dbstring);
$stmt = OCIParse($db_conn, $query);
OCIExecute($stmt, OCI_DEFAULT);
OCIFreeStatement($stmt);
OCILogoff($db_conn);
?>
Thanks for your help. I will also appreciate a better was to do it.
Tonyresumption and jer,
Sorry I cannot format the code for easy reading!
The page is submitting to itself. See action = \"$uri\". I used the same logic to enter SELECT querries into the database. It pulls and displays data back on the webpage. The code I used for this is below. Compare it with the one above for inserting data into the table.
<?php
// connect to oracle
$username = "xxxxx";
$paswd = "yyyyy";
$dbstring = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)".
"(HOST=patriot.gmu.edu)(PORT=1521))".
"(CONNECT_DATA=(SID=COSC)))";
$db_conn = ocilogon($username, $paswd, $dbstring);
// username and password will be unset if they weren't passed,
// or if they were wrong
if( !isset($query)) {
// just print form asking for account details
echo "<form action=\"$uri\" method=post>\n";
echo "<p>Enter Query: ";
echo "<input type=text size=100 maxlength=200 name=query value=\"$query\">\n";
echo "<br><input type=submit name=submit value=Submit>\n";
echo "</form>\n";
exit;
// remove unwanted slashes from the query
$query = stripslashes($query);
// run the query
$stmt = OCIParse($db_conn, $query);
OCIExecute($stmt, OCI_DEFAULT);
// Open the HTML table.
print '<table border="1" cellspacing="0" cellpadding="3">';
// Read fetched headers.
print '<tr>';
for ($i = 1;$i <= ocinumcols($stmt);$i++)
print '<td class="e">'.ocicolumnname($stmt,$i).'</td>';
print '</tr>';
// Read fetched data.
while (ocifetch($stmt))
// Print open and close HTML row tags and columns data.
print '<tr>';
for ($i = 1;$i <= ocinumcols($stmt);$i++)
print '<td class="v">'.ociresult($stmt,$i).'</td>';
print '</tr>';
// Close the HTML table.
print '</table>';
OCIFreeStatement($stmt);
OCILogoff($db_conn);
?> -
Insert data into sql database where the values are in an array
Hello Experts,
using vbscript i want to store data in MS SQL. i have prepared a script which works fine when i provide the static value but in actual i get the values in an array and now want to store values from there.
Below is not complete code but the block in question.
oRecordset_Working.Open "INSERT INTO tbl_work (release, version, state, Arch)" & _
"VALUES ('5.2', '11.25' , 'Active', 'XYZ')", _
oConnection, adOpenStatic, adLockOptimistic
i verified the database and can see the information is feeded.
What i really want to make work is:
for i=0 to UBound (arrValues)
oRecordset_Working.Open "INSERT INTO tbl_work (release, version, state, Arch)" & _
"VALUES ('arrValues(i)')", _
oConnection, adOpenStatic, adLockOptimistic
Next
logically it is incorrect as INSERT query comes inside the loop but then how can someone make it work?
can someone help me with this?
-KAKA-Here is the preferred method of inserting multiple values into multiple fields. It is very fast and very easy to set up.
Const adBSTR = 8
Const adInput = 1
Const CONNECTION_STRING = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\temp\test.mdb;Persist Security Info=False"
Const SQL_INSERT = "INSERT INTO Table1(ID, Name, Notes) VALUES(?, ?, ?)"
Set conn = CreateObject("ADODB.Connection")
conn.Open(CONNECTION_STRING)
Set cmd = CreateObject("ADODB.Command")
With cmd
.ActiveConnection = conn
.CommandText = SQL_INSERT
.Prepared = True
' create parameter object and assign to command object
.Parameters.Append .CreateParameter("ID", adBSTR, adInput)
.Parameters.Append .CreateParameter("Name", adBSTR, adInput)
.Parameters.Append .CreateParameter("Notes", adBSTR, adInput)
End With
' bind and insert values
For i = 2 To 10
cmd.Parameters("ID") = "ID" & i
cmd.Parameters("Name") = "Joe" & i
cmd.Parameters("Notes") = "My notes"
cmd.Execute
Next
conn.Close
¯\_(ツ)_/¯ -
Error while loading data to ASO database using rules files and buffer id
Hello all,
While loading the data to our ASO cube from a data file and using a server rules file, I am getting a warning: "Incorrect Syntax near ['$'] ". But my script no where mentions the usage of $. Also the console throws no error while loading the data. It displays the progress bar 0-100% while the data is being loaded, but actually no data is getting loaded (when retrieval is checked). Also the script is unable to form any log file or error file. Can anyone throw some light what might be the reason behind this kind of data load behaviour.
Thanks in advance.
Amitis that the real script? I don't see you using any parameter. (That's where $ comes to play). Try a double quote with echo (I never used echo in MaxL)
Also don't post passwords and server names on a forum.
Regards
Celvin
http://www.orahyplabs.com -
Re: Insert data into oracle database using a PHP form
Hai its different for me, i want to display a data based on the input from php form. I see and trying your script but it didn't work.
<?php
// just print form asking for name if none was entered
if( !isset($query)) {
echo "<form action=\"$uri\" method=post>\n";
echo "<p>Enter Name: ";
echo "<input type=text size=100 maxlength=200 name=data value=\"$data\">\n";
echo "<br><input type=submit name=submit value=Submit>\n";
echo "</form>\n";
exit;
$data=$_POST;
stripslashes($data);
// Select statement
$query = "SELECT * FROM animal WHERE skin=$data";
// connect to Oracle
$username = "xxxxxx";
$paswd = "xxxxxx";
$dbstring = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)".
"(HOST=yyyyyyyy)(PORT=1521))".
"(CONNECT_DATA=(SID=COSC)))";
$db_conn = ocilogon($username, $paswd, $dbstring);
//$stmt = OCIParse($db_conn, $query);
//OCIExecute($stmt, OCI_DEFAULT);
//OCIFreeStatement($stmt);
//OCILogoff($db_conn);
$stmt = OCIParse ($db_conn, $sql);
OCIBindByName ($stmt, ":name", &$data, -1);
OCIExecute ($stmt);
OCIFreeStatement($stmt);
OCILogoff ($db_conn);
?>
Could you please advice me ? whats wrong with that script ?What is the error you get? What solutions have you tried already?
-
Error while insert data using execute immediate in dynamic table in oracle
Error while insert data using execute immediate in dynamic table created in oracle 11g .
first the dynamic nested table (op_sample) was created using the executed immediate...
object is
CREATE OR REPLACE TYPE ASI.sub_mark AS OBJECT (
mark1 number,
mark2 number
t_sub_mark is a class of type sub_mark
CREATE OR REPLACE TYPE ASI.t_sub_mark is table of sub_mark;
create table sam1(id number,name varchar2(30));
nested table is created below:
begin
EXECUTE IMMEDIATE ' create table '||op_sample||'
(id number,name varchar2(30),subject_obj t_sub_mark) nested table subject_obj store as nest_tab return as value';
end;
now data from sam1 table and object (subject_obj) are inserted into the dynamic table
declare
subject_obj t_sub_mark;
begin
subject_obj:= t_sub_mark();
EXECUTE IMMEDIATE 'insert into op_sample (select id,name,subject_obj from sam1) ';
end;
and got the below error:
ORA-00904: "SUBJECT_OBJ": invalid identifier
ORA-06512: at line 7
then when we tried to insert the data into the dynam_table with the subject_marks object as null,we received the following error..
execute immediate 'insert into '||dynam_table ||'
(SELECT887684 wrote:
ORA-00904: "SUBJECT_OBJ": invalid identifier
ORA-06512: at line 7The problem is that your variable subject_obj is not in scope inside the dynamic SQL you are building. The SQL engine does not know your PL/SQL variable, so it tries to find a column named SUBJECT_OBJ in your SAM1 table.
If you need to use dynamic SQL for this, then you must bind the variable. Something like this:
EXECUTE IMMEDIATE 'insert into op_sample (select id,name,:bind_subject_obj from sam1) ' USING subject_obj;Alternatively you might figure out to use static SQL rather than dynamic SQL (if possible for your project.) In static SQL the PL/SQL engine binds the variables for you automatically. -
Error while trying to insert data on a database through a mediator
I have build a simple project on 11g TP$, which consists of a mediator, a file adapter, that reads an xml file and a DB adapter that inserts data on a database.
The mediator connects the file adapter to the DB adapter and through a routing rule it inserts data on a table of the database.
When I try to run this project the input file is consumed by the file adapter, but after that I get the following error
SEVERE: Part {body} return null from the message :in
Dec 5, 2008 2:24:55 PM oracle.tip.mediator.service.transformation.XSLTransformer getPartDocument
SEVERE: payload map source message :{opaque=oracle.xml.parser.v2.XMLElement@19b0076}
Dec 5, 2008 2:24:55 PM oracle.tip.mediator.service.transformation.MediatorTransformationHandler transform
SEVERE: Transformation failed
oracle.tip.mediator.infra.exception.MediatorException: Error occured while transforming payload!
Please review the XSL or source payload.Contact Oracle Support if error not fixable
at oracle.tip.mediator.service.transformation.XSLTransformer.getPartDocument(XSLTransformer.java:191)
at oracle.tip.mediator.service.transformation.XSLTransformer.transform(XSLTransformer.java:102)
at oracle.tip.mediator.service.transformation.MediatorTransformationHandler.transform(MediatorTransformationHandler.java:103)
at oracle.tip.mediator.service.transformation.MediatorTransformationHandler.transform(MediatorTransformationHandler.java:196)
at oracle.tip.mediator.service.DataActionHandler.getNextPayload(DataActionHandler.java:145)
at oracle.tip.mediator.service.BaseActionHandler.requestProcess(BaseActionHandler.java:74)
at oracle.tip.mediator.service.BaseActionHandler.requestProcess(BaseActionHandler.java:53)
at oracle.tip.mediator.service.OneWayActionHandler.oneWayRequestProcess(OneWayActionHandler.java:67)
at oracle.tip.mediator.service.OneWayActionHandler.process(OneWayActionHandler.java:34)
at oracle.tip.mediator.service.ActionProcessor.onMessage(ActionProcessor.java:61)
at oracle.tip.mediator.dispatch.MessageDispatcher.executeCase(MessageDispatcher.java:103)
at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCase(InitialMessageDispatcher.java:465)
at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases(InitialMessageDispatcher.java:361)
at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases(InitialMessageDispatcher.java:254)
at oracle.tip.mediator.dispatch.InitialMessageDispatcher.dispatch(InitialMessageDispatcher.java:149)
at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.process(MediatorServiceEngine.java:533)
at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.post(MediatorServiceEngine.java:634)
at oracle.integration.platform.blocks.mesh.AsynchronousMessageHandler.doPost(AsynchronousMessageHandler.java:138)
at oracle.integration.platform.blocks.mesh.MessageRouter.post(MessageRouter.java:152)
at oracle.integration.platform.blocks.mesh.MeshImpl.post(MeshImpl.java:159)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy70.post(Unknown Source)
at oracle.integration.platform.blocks.adapter.fw.jca.mdb.AdapterServiceMDB.onMessage(AdapterServiceMDB.java:574)
at oracle.integration.platform.blocks.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage(MessageEndpointImpl.java:295)
at oracle.tip.adapter.file.inbound.ProcessWork.publishMessage(ProcessWork.java:2127)
at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork.java:1719)
at oracle.tip.adapter.file.inbound.ProcessWork.translateAndPublish(ProcessWork.java:677)
at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:320)
at oracle.integration.platform.blocks.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
at oracle.integration.platform.blocks.adapter.fw.common.ThreadPool.run(ThreadPool.java:283)
at java.lang.Thread.run(Thread.java:595)
Dec 5, 2008 2:24:55 PM oracle.tip.mediator.serviceEngine.MediatorServiceEngine process
SEVERE: Updating fault processing DMS metrics
Dec 5, 2008 2:24:55 PM oracle.tip.mediator.serviceEngine.MediatorServiceEngine process
SEVERE: Got an exception: Error occured while transforming payload!
Please review the XSL or source payload.Contact Oracle Support if error not fixable
oracle.tip.mediator.infra.exception.MediatorException: Error occured while transforming payload!
Please review the XSL or source payload.Contact Oracle Support if error not fixable
at oracle.tip.mediator.service.transformation.XSLTransformer.getPartDocument(XSLTransformer.java:191)
at oracle.tip.mediator.service.transformation.XSLTransformer.transform(XSLTransformer.java:102)
at oracle.tip.mediator.service.transformation.MediatorTransformationHandler.transform(MediatorTransformationHandler.java:103)
at oracle.tip.mediator.service.transformation.MediatorTransformationHandler.transform(MediatorTransformationHandler.java:196)
at oracle.tip.mediator.service.DataActionHandler.getNextPayload(DataActionHandler.java:145)
at oracle.tip.mediator.service.BaseActionHandler.requestProcess(BaseActionHandler.java:74)
at oracle.tip.mediator.service.BaseActionHandler.requestProcess(BaseActionHandler.java:53)
at oracle.tip.mediator.service.OneWayActionHandler.oneWayRequestProcess(OneWayActionHandler.java:67)
at oracle.tip.mediator.service.OneWayActionHandler.process(OneWayActionHandler.java:34)
at oracle.tip.mediator.service.ActionProcessor.onMessage(ActionProcessor.java:61)
at oracle.tip.mediator.dispatch.MessageDispatcher.executeCase(MessageDispatcher.java:103)
at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCase(InitialMessageDispatcher.java:465)
at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases(InitialMessageDispatcher.java:361)
at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases(InitialMessageDispatcher.java:254)
at oracle.tip.mediator.dispatch.InitialMessageDispatcher.dispatch(InitialMessageDispatcher.java:149)
at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.process(MediatorServiceEngine.java:533)
at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.post(MediatorServiceEngine.java:634)
at oracle.integration.platform.blocks.mesh.AsynchronousMessageHandler.doPost(AsynchronousMessageHandler.java:138)
at oracle.integration.platform.blocks.mesh.MessageRouter.post(MessageRouter.java:152)
at oracle.integration.platform.blocks.mesh.MeshImpl.post(MeshImpl.java:159)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy70.post(Unknown Source)
at oracle.integration.platform.blocks.adapter.fw.jca.mdb.AdapterServiceMDB.onMessage(AdapterServiceMDB.java:574)
at oracle.integration.platform.blocks.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage(MessageEndpointImpl.java:295)
at oracle.tip.adapter.file.inbound.ProcessWork.publishMessage(ProcessWork.java:2127)
at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork.java:1719)
at oracle.tip.adapter.file.inbound.ProcessWork.translateAndPublish(ProcessWork.java:677)
at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:320)
at oracle.integration.platform.blocks.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
at oracle.integration.platform.blocks.adapter.fw.common.ThreadPool.run(ThreadPool.java:283)
at java.lang.Thread.run(Thread.java:595)
Dec 5, 2008 2:24:55 PM oracle.integration.platform.blocks.adapter.fw.log.LogManagerImpl log
SEVERE: JCABinding=> Read ReadAdapter Service Read was unable to perform delivery of inbound message to the composite due to: oracle.tip.mediator.infra.exception.MediatorException: Error occured while transforming payload!
Please review the XSL or source payload.Contact Oracle Support if error not fixable
Dec 5, 2008 2:24:55 PM oracle.integration.platform.blocks.adapter.fw.log.LogManagerImpl log
SEVERE: JCABinding=> Read
oracle.fabric.common.FabricInvocationException: oracle.tip.mediator.infra.exception.MediatorException: Error occured while transforming payload!
Please review the XSL or source payload.Contact Oracle Support if error not fixable
at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.process(MediatorServiceEngine.java:599)
at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.post(MediatorServiceEngine.java:634)
at oracle.integration.platform.blocks.mesh.AsynchronousMessageHandler.doPost(AsynchronousMessageHandler.java:138)
at oracle.integration.platform.blocks.mesh.MessageRouter.post(MessageRouter.java:152)
at oracle.integration.platform.blocks.mesh.MeshImpl.post(MeshImpl.java:159)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy70.post(Unknown Source)
at oracle.integration.platform.blocks.adapter.fw.jca.mdb.AdapterServiceMDB.onMessage(AdapterServiceMDB.java:574)
at oracle.integration.platform.blocks.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage(MessageEndpointImpl.java:295)
at oracle.tip.adapter.file.inbound.ProcessWork.publishMessage(ProcessWork.java:2127)
at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork.java:1719)
at oracle.tip.adapter.file.inbound.ProcessWork.translateAndPublish(ProcessWork.java:677)
at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:320)
at oracle.integration.platform.blocks.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
at oracle.integration.platform.blocks.adapter.fw.common.ThreadPool.run(ThreadPool.java:283)
at java.lang.Thread.run(Thread.java:595)
Caused by: oracle.tip.mediator.infra.exception.MediatorException: Error occured while transforming payload!
Please review the XSL or source payload.Contact Oracle Support if error not fixable
at oracle.tip.mediator.service.transformation.XSLTransformer.getPartDocument(XSLTransformer.java:191)
at oracle.tip.mediator.service.transformation.XSLTransformer.transform(XSLTransformer.java:102)
at oracle.tip.mediator.service.transformation.MediatorTransformationHandler.transform(MediatorTransformationHandler.java:103)
at oracle.tip.mediator.service.transformation.MediatorTransformationHandler.transform(MediatorTransformationHandler.java:196)
at oracle.tip.mediator.service.DataActionHandler.getNextPayload(DataActionHandler.java:145)
at oracle.tip.mediator.service.BaseActionHandler.requestProcess(BaseActionHandler.java:74)
at oracle.tip.mediator.service.BaseActionHandler.requestProcess(BaseActionHandler.java:53)
at oracle.tip.mediator.service.OneWayActionHandler.oneWayRequestProcess(OneWayActionHandler.java:67)
at oracle.tip.mediator.service.OneWayActionHandler.process(OneWayActionHandler.java:34)
at oracle.tip.mediator.service.ActionProcessor.onMessage(ActionProcessor.java:61)
at oracle.tip.mediator.dispatch.MessageDispatcher.executeCase(MessageDispatcher.java:103)
at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCase(InitialMessageDispatcher.java:465)
at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases(InitialMessageDispatcher.java:361)
at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases(InitialMessageDispatcher.java:254)
at oracle.tip.mediator.dispatch.InitialMessageDispatcher.dispatch(InitialMessageDispatcher.java:149)
at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.process(MediatorServiceEngine.java:533)
... 24 more
Dec 5, 2008 2:24:55 PM oracle.integration.platform.blocks.adapter.fw.log.LogManagerImpl log
WARNING: JCABinding=> Read ReadonReject: The resource adapter 'File Adapter' requested handling of a malformed inbound message. However, the following Service property has not been defined: 'rejectedMessageHandlers'. Please define it and redeploy the module. Will use the default Rejection Directory file://jca\Read\rejectedMessages for now.
Dec 5, 2008 2:24:55 PM oracle.integration.platform.blocks.adapter.fw.log.LogManagerImpl log
WARNING: JCABinding=> Read ReadonReject: Sending invalid inbound message to Exception Handler:
Dec 5, 2008 2:24:55 PM oracle.tip.mediator.common.error.ErrorMessageEnqueuer$EnqueuerThread run
SEVERE: Failed to enqueue error message
javax.jms.TransactionInProgressException: Cannot call commit on a XA capable JMS session.
at oracle.j2ee.ra.jms.generic.RAUtils.make(RAUtils.java:595)
at oracle.j2ee.ra.jms.generic.RAUtils.toTransactionInProgressException(RAUtils.java:846)
at oracle.j2ee.ra.jms.generic.RAUtils.toTransactionInProgressException(RAUtils.java:840)
at oracle.j2ee.ra.jms.generic.SessionWrapper.commit(SessionWrapper.java:197)
at oracle.tip.mediator.common.error.ErrorMessageEnqueuer$EnqueuerThread.run(ErrorMessageEnqueuer.java:187)
at java.lang.Thread.run(Thread.java:595)
I have checked the .xsd file and my xml several times and it seems that they are correct. Moreover, the .xsl file is also correct.
Does anyone have any idea of what may produce this problem?
ThanksI was finally able to get my project working. Heidi - You were right, there was a problem with the XSL generated by the XSL map editor.
I am trying to locate if this issue has already been reported, but I am highlighting it here, in case someone else faces the same.
The XSL generated was as follows:
<xsl:stylesheet version="1.0"
xmlns:dvm="[http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue]"
xmlns:bpws="[http://schemas.xmlsoap.org/ws/2003/03/business-process/]"
xmlns:ns1="[http://xmlns.oracle.com/pcbpel/adapter/db/ReadEmps/Read/DB/]"
xmlns:plt="[http://schemas.xmlsoap.org/ws/2003/05/partner-link/]"
xmlns:ns0="[http://www.w3.org/2001/XMLSchema]"
xmlns:hwf="[http://xmlns.oracle.com/bpel/workflow/xpath]"
xmlns:xp20="[http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20]"
xmlns:xref="[http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions]"
xmlns:tns="[http://xmlns.oracle.com/pcbpel/adapter/file/ReadEmps/Read/Read/]"
xmlns:xsl="[http://www.w3.org/1999/XSL/Transform]"
xmlns:ora="[http://schemas.oracle.com/xpath/extension]"
xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance]"
xmlns:imp1="[www.TargetNameSpace.com/EmpTrack|http://www.targetnamespace.com/EmpTrack]*"*
xmlns:top="[http://xmlns.oracle.com/pcbpel/adapter/db/top/DB]"
xmlns:ids="[http://xmlns.oracle.com/bpel/services/IdentityService/xpath]"
xmlns:orcl="[http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc]"
xmlns:mhdr="[http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.GetRequestHeaderExtnFunction]"
exclude-result-prefixes="xsl plt ns0 tns imp1 ns1 top dvm bpws hwf xp20 xref ora ids orcl mhdr">
<xsl:template match="/">
<top:EmployeeTrackingCollection>
<xsl:for-each select*="/imp1:ROWSET/imp1:ROW*">
<top:EmployeeTracking>
<top:locationId>
<xsl:value-of select="*imp1:LOCATION_ID*"/>
</top:locationId>
<top:employeeId>
<xsl:value-of select="*imp1:EMPLOYEE_ID*"/>
</top:employeeId>
<top:employeeX>
<xsl:value-of select="*imp1:EMPLOYEE_X*"/>
</top:employeeX>
<top:employeeY>
<xsl:value-of select="*imp1:EMPLOYEE_Y"*/>
</top:employeeY>
</top:EmployeeTracking>
</xsl:for-each>
</top:EmployeeTrackingCollection>
</xsl:template>
</xsl:stylesheet>
The Xpath included the "imp1:" tag to reference the namespace. I tested this XSL and it didn't work. However, on removing the namespace "imp1:" from the Xpath, the XSL works fine and I am able to insert into the database. "No suitable driver" still appears in the log, but all rows from the XML are inserted into the database.
Heidi - do you think this is a bug? -
Insert Fixed Width data into SQL database.
I have a file sent from a client that I need to get into a SQL database.
The file name is ELIG and it is in a flat file, fixed width format.
I am just going round and round how to get the data into a database using SSMS.
Because another user is going to be doing this in the future it needs to be easy.
I tried tasks, import data, flat file, file path and then "Fixed Width", but it puts all of it in one field.
the data does NOT have headers either.
I'm not good at this kind of thing so would appreciate any help I can get.
GeeYes I saw Uri's request and I'd love to comply, since this is giving me such a hard time, but the data is too sensitive and I would be shunned by my employer and thrown out into the street.
I've been all over google trying to find a solution. I'm still a bit of a novice, but even so, I have never found data that is so hard to normalize. Just error after error.
Gee
Hi Gee,
I can understand your issue :-)
it is a common issue that people think that we can read minds, troubleshoot issues without having the option to test it and without any information regarding the issues. It is like going to the children doctor and ask him to treat your children without taking
the your children to the doctor. If you can not take the children to the doctor, then you might need to take a doctor to the your children!
Troubleshooting can be tedious, because there may be quite some information you will need to supply. If you can not post the information in public, then maybe you need to get a private supporting, but this will cost you (your boss/company).
Option 1: Create a case study which is based on your real issue. Use different DDL and DML (database structure and data) than the real database, and reproduce the issue in a way that you can post us the information that we need. We have
to get the ability to reproduce the issue in our server as well, if you need our support.
Option 2: Use the real database information with private support,
after the supporter sign a Confidentiality agreement. If you check people profiles in the forum, then you will find that most of the supporters here are actually work as consultants and they give support on a daily
bases. This is our job. In the forum we come to help volunteer, but
there is a reason why people continue to pay for support. free public support do not fit all :-)
Ronen Ariely
[Personal Site] [Blog] [Facebook] -
Error while inserting records in sqlLite database
Hi all
I am building a hybrid web app in SMP using phonegap and html.
I am trying to insert records in sql database but i get an error with an undefined error code
Please see below :
function openDatabaseFoo() {
db = window.openDatabase(clientDBName, clientDBVersion, clientDBDisplayName, clientDBMaxSize);
function createDBTables() {
db.transaction(function(tx) {
// Create mine table
var fooCreate = 'CREATE TABLE IF NOT EXISTS ' + fooTable+ ' (empNo, empName)';
tx.executeSql(fooCreate , [],
function (tx, resultSet) {
//success
var msg = 'Sucessfully created';
alert(msg);
logSuccessMessage(msg);
function (err) {
//error code
var msg = "Error creating table = " + err.code;
alert(msg);
logErrorMessage(msg);
the creation of tables is happening properly because i am getting a success message in the alerts.
I am getting the error when i am trying to insert records in the above table
function insertDataTable(){
db.transaction(function(tx) {
var insertSql = 'INSERT INTO ' + fooTable + ' (empNo, empName) VALUES ("1603","baker")';
tx.executeSql(insertSql, [],
function (tx, resultSet) {
//success
var msg = 'Sucessful insertingdata.';
alert(msg);
logSuccessMessage(msg);
function (err) {
//error code
var msg = "Error inserting data sql = " + insertSql + " Error code = " + err.code;
alert(msg);
logErrorMessage(msg);
can some one please help.Also guide me where can i check the sqlLite database logs to see more about the error.
I would really appreciate the help.I have been onto this since past few days now
Regards
ShwetaWhat is err.code, or the value of msg when the error occurs?
Thanks,
Andrew. -
Updating array data in sql database
HI,
Im facing problems in updating array data in SQL database.
As of now, i am able to write an "insert" query and insert array data in an image datatype field. Im using image datatype because the array size is very big(around 80,000 x and y values).
Althoug inserting data is easy im unable to write a query to update this data.
Referring to the help of SQL server and Labview database connectivity toolkit, i came across a method of accessing image datatype....using textpointers, which are 16 bit binary values and using the WRITETEXT function instead of the UPDATE function.
but the problem im facing is that ive to pass the array as a 2d string array in the query as a result the updated array is retrieved in the form of a string a
nd not as an array. how do I get over this problem?Hi Pavitra,
I'm not very clear on how you have inserted the data into your application, but I do know that when you call the UPDATETEXT or WRITETEXT function you use the TEXTPOINTERS to point to the first location of a 1d array. So, depending on how you've stored the data, you may have problems updating your data if you're looking at it as a 1d array instead of how you originally formatted it. If you are able to successfully access the data as a 1d array, you can use the database variant to data type vi and pass in a string array constant for the data type. This will convert the variant datatype into whatever you specify. You may have to index the row and column of the variant (you receive a 2d array of variant) first before you convert. If possible, can yo
u provide some more detail and maybe some example code of how you perform the insert and plan to do the update? I can probably give you a better solution if I know how you are formatting the data. Thanks!
Jeremy L.
National Instruments
Jeremy L.
National Instruments
Maybe you are looking for
-
It is trying to restore my new ipod from the backup cloud, but it keeps asking me for the passwords of three different itunes accounts, two i know are my friends accounts and I don;t even know whoose the third is. I must have some of their music on
-
I just recently got a new laptop with windows 8 and downloaded itunes 11.0.2. I downloaded my tv shows from the cloud to the laptop and the playback was awful...the audio was fine but the video is choppy and couldn't keep up with the audio. I thou
-
Not able to consume Web Services that are in Service Registry
Hi Experts, I am trying to consume the web services that are published into the Service Registry of CE 7.1 Server. Previously, I was able to consume the web services.But now I found the following error in VC Console, When i try to consume the same we
-
Altova StyleVision 2013 - APEX PDF Report
Hello, I read this tutorial for create report : http://www.oracle.com/technetwork/developer-tools/apex/learnmore/custom-pdf-reports-1953918.pdf But I have a problem when I create report for APEX with Altova StyleVision. I use Oracle XE 11gR2, APEX 4.
-
Connecting 2 RV042 to different subnet and DSL connections
Small office, 2 RV042, 2 DSL connections. 1 is used striclty for the business side, and the other is for our CCTV network. They also have seperate DSL connections as we have 2 external IP address for clients to connect remotely. We don't want to take