ImageIcons loaded from database don't appear
Hi,
I create a JavaBean to show images from filesystem and database (oracle9i) in a JTable.
The ImageIcons loaded from filesystem appears fine whith my defined DefaultTabelModel.
The ImageIcons read from database (jdbc2) with the same DefaultTabelModel appears in the correct count, but the fields or placholders of the Images, saved as blob, are blank.
The code of my resultset
BLOB myblob = null;
int bufsize = 0;
while(result.next())
myblob = ((OracleResultSet)result).getBLOB("image_container");
bufsize = myblob.getChunkSize();
byte[] buffer = new byte[bufsize];
ImageIcon icon = new ImageIcon(buffer);
Object [] row = {icon};
model1.addRow(row);
model1.fireTableDataChanged();
I don't get any errors.
Thanks
Klaus
Hi,
I changed the datatype from BLOB to 'LONG RAW' for the image in the database.
while(result.next())
byte[] bytes = result.getBytes(1);
String jd = String.valueOf(bytes);
System.out.println(jd);
//get:[B@153 [B@154
//or [B@155 [B@156 for the 2.result
String name = result.getString(2);
System.out.println(name);
//get the correct result
FileOutputStream file = null;
file = new FileOutputStream ("c:\\"+name+".jpg");
file.write(bytes);
//it works fine !!!
ImageIcon icon = new ImageIcon(bytes); //it is correct ?
String ls = String.valueOf(icon.getImageLoadStatus());
String h = String.valueOf(icon.getIconHeight());
String w = String.valueOf(icon.getIconWidth());
System.out.println(h+" : "+w);
//get: -1 : -1
System.out.println(ls);
//get: 4
Object [] row = {icon,name};
//icon is blank, name appears correct in jtable
//but when I need:
//ImageIcon icon = new ImageIcon(AW_Frame.class.getResource("images/emac.jpg"));
//icon and name appears correct in jtable
model1.addRow(row);
model1.fireTableDataChanged();
any ideas ?
Thanks in advance !
Similar Messages
-
ImageIcons read from database don't appear
Hi,
I create a JavaBean to show images from filesystem and database (oracle9i) in a JTable.
The ImageIcons loaded from filesystem appear fine whith my defined DefaultTabelModel.
The ImageIcons read from database (jdbc2) with the same DefaultTabelModel appear in the correct count, but the fields or placeholders of the Images, saved as blob, are blank.
The partcode of my resultset is
BLOB myblob = null;
int bufsize = 0;
while(result.next())
myblob = ((OracleResultSet)result).getBLOB("image_container");
bufsize = myblob.getChunkSize();
byte[] buffer = new byte[bufsize];
ImageIcon icon = new ImageIcon(buffer);
Object [] row = {icon};
model1.addRow(row);
model1.fireTableDataChanged();
I don't get any errors.
Thanks
KlausHi,
I changed the datatype from BLOB to 'LONG RAW' for the image in the database.
while(result.next())
byte[] bytes = result.getBytes(1);
String jd = String.valueOf(bytes);
System.out.println(jd);
//get:[B@153 [B@154
//or [B@155 [B@156 for the 2.result
String name = result.getString(2);
System.out.println(name);
//get the correct result
FileOutputStream file = null;
file = new FileOutputStream ("c:\\"+name+".jpg");
file.write(bytes);
//it works fine !!!
ImageIcon icon = new ImageIcon(bytes); //it is correct ?
String ls = String.valueOf(icon.getImageLoadStatus());
String h = String.valueOf(icon.getIconHeight());
String w = String.valueOf(icon.getIconWidth());
System.out.println(h+" : "+w);
//get: -1 : -1
System.out.println(ls);
//get: 4
Object [] row = {icon,name};
//icon is blank, name appears correct in jtable
//but when I need:
//ImageIcon icon = new ImageIcon(AW_Frame.class.getResource("images/emac.jpg"));
//icon and name appears correct in jtable
model1.addRow(row);
model1.fireTableDataChanged();
any ideas ?
Thanks in advance ! -
Jasper report on HTML when one image loaded from database and for the other
How to generate jasper report on HTML when one image loaded from database and for the other we give a image path
My code
ByteArrayOutputStream baos = new ByteArrayOutputStream();
exporter = new JRHtmlExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);
exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, strImageInputDirectory);
exporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME, strImageOutputPath == null ? "." : strImageOutputPath);
exporter.setParameter(JRHtmlExporterParameter.IS_OUTPUT_IMAGES_TO_DIR, Boolean.TRUE);
exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
exporter.setParameter(JRHtmlExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);
exporter.exportReport();
byte[] bdata = ((ByteArrayOutputStream) baos).toByteArray();
Can any one help pls
Message was edited by:
ameet.auhey sorry for posting it in this forum.
but do u have sample code for making it work.. since i am able to do it on PDF format(image from Database and another stored in the webserver) using
byte image[] =(byte[]) outData.get("image");
ByteArrayInputStream img = new ByteArrayInputStream(image);
hmimg.put("P_PARAMV3", img);
print = JasperFillManager.fillReport(reportFileName, hmimg, jrxmlds);
bdata= JasperExportManager.exportReportToPdf(print); -
I have a .wft file and two databases: Deploy and Production.
If I save the .wft file to Production it works fine but if I save it to Deploy I get when Uploading from database:
1300: Could not load.
1114: Could not load from database.
1115: Could not load all definitions referenced by 'CON_MAIL' item type.
1115: Could not load contents of 'CON_MAIL' item type.
1101: Could not load item types from database. FILTER=CON_MAIL
210: Oracle Error: ORA-01403: no data found
. SQL text: SELECT protect_level, custom_level, name, display_name, description, type, subtype, format, text_default, to_char(number_default), to_char(date_default, 'YYYY/MM/DD HH24:MI:SS') FROM wf_item_attributes_vl WHERE item_type = :type ORDER BY sequence
It did not create in deploy the row in the table wf_item_attributes and I think this is not a NLS_LANG problem because the same file worked in Production DB (they have the same environement).
Any solution? I could create process in Deploy until one month ago.
Thanks in advance JRJosé,
Por tu nombre asumo que hablas español por lo que te escribo en ese idioma.
En nuestro caso, como el mensaje de error indicaba que el siguiente query generaba problemas, lo analizamos
SELECT protect_level, custom_level, name, display_name, description,
type, subtype, format, text_default, to_char(number_default),
to_char(date_default, 'YYYY/MM/DD HH24:MI:SS')
FROM wf_item_attributes_vl
WHERE item_type = :type
ORDER BY sequence
Encontramos que la vista wf_item_attributes_vl se basa en las tablas WF_ITEM_ATTRIBUTES y WF_ITEM_ATTRIBUTES_TL
El problema se generaba porque en la tabla WF_ITEM_ATTRIBUTES había un registro que no tenía su correspondiente en la tabla WF_ITEM_ATTRIBUTES_TL (considerar que la vista wf_item_attributes_vl filtra los datos de acuerdo al lenguaje de la sesión, usando userenv('LANG') )
Creando el registro faltante en la tabla WF_ITEM_ATTRIBUTES_TL, los datos del atributo aparecieron en la vista wf_item_attributes_vl, y el problema desapareció.
En nuestro caso el verdadero problema se originó por haber manipulado los datos de definición de atributos directamente desde las tablas y no a través de WF Builder
Saludos
SV -
Data flow tasks faills while loading from database to excel
Hello,
I am getting error while loading from oledb source to excel and the error as shown below.
Error: 0xC0202009 at DFT - Company EX, OLE DB Destination [198]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
Error: 0xC0209029 at DFT - Company EX, OLE DB Destination [198]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "input "OLE DB Destination Input" (211)" failed because error code 0xC020907B occurred, and the error row
disposition on "input "OLE DB Destination Input" (211)" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the
failure.
Error: 0xC0047022 at DFT - Company EX: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "OLE DB Destination" (198) failed with error code 0xC0209029. The identified component returned an error from the ProcessInput
method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.
Error: 0xC02020C4 at DFT - Company EX, OLE DB Source 1 [1]: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
Error: 0xC0047021 at DFT - Company EX: SSIS Error Code DTS_E_THREADFAILED. Thread "WorkThread0" has exited with error code 0xC0209029. There may be error messages posted before this with more information on why the thread has exited.
Error: 0xC0047038 at DFT - Company EX: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "OLE DB Source 1" (1) returned error code 0xC02020C4. The component returned a failure code when the pipeline engine
called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
Error: 0xC0047021 at DFT - Company EX: SSIS Error Code DTS_E_THREADFAILED. Thread "SourceThread0" has exited with error code 0xC0047038. There may be error messages posted before this with more information on why the thread has exited.
Any help would be appreciated ASAP.
Thanks,
Vinay sYou can use this code to import from SQL Server to Excel . . .
Sub ADOExcelSQLServer()
' Carl SQL Server Connection
' FOR THIS CODE TO WORK
' In VBE you need to go Tools References and check Microsoft Active X Data Objects 2.x library
Dim Cn As ADODB.Connection
Dim Server_Name As String
Dim Database_Name As String
Dim User_ID As String
Dim Password As String
Dim SQLStr As String
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
Server_Name = "EXCEL-PC\EXCELDEVELOPER" ' Enter your server name here
Database_Name = "AdventureWorksLT2012" ' Enter your database name here
User_ID = "" ' enter your user ID here
Password = "" ' Enter your password here
SQLStr = "SELECT * FROM [SalesLT].[Customer]" ' Enter your SQL here
Set Cn = New ADODB.Connection
Cn.Open "Driver={SQL Server};Server=" & Server_Name & ";Database=" & Database_Name & _
";Uid=" & User_ID & ";Pwd=" & Password & ";"
rs.Open SQLStr, Cn, adOpenStatic
' Dump to spreadsheet
With Worksheets("sheet1").Range("a1:z500") ' Enter your sheet name and range here
.ClearContents
.CopyFromRecordset rs
End With
' Tidy up
rs.Close
Set rs = Nothing
Cn.Close
Set Cn = Nothing
End Sub
Also, check this out . . .
Sub ADOExcelSQLServer()
Dim Cn As ADODB.Connection
Dim Server_Name As String
Dim Database_Name As String
Dim User_ID As String
Dim Password As String
Dim SQLStr As String
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
Server_Name = "LAPTOP\SQL_EXPRESS" ' Enter your server name here
Database_Name = "Northwind" ' Enter your database name here
User_ID = "" ' enter your user ID here
Password = "" ' Enter your password here
SQLStr = "SELECT * FROM Orders" ' Enter your SQL here
Set Cn = New ADODB.Connection
Cn.Open "Driver={SQL Server};Server=" & Server_Name & ";Database=" & Database_Name & _
";Uid=" & User_ID & ";Pwd=" & Password & ";"
rs.Open SQLStr, Cn, adOpenStatic
With Worksheets("Sheet1").Range("A2:Z500")
.ClearContents
.CopyFromRecordset rs
End With
rs.Close
Set rs = Nothing
Cn.Close
Set Cn = Nothing
End Sub
Finally, if you want to incorporate a Where clause . . .
Sub ImportFromSQLServer()
Dim Cn As ADODB.Connection
Dim Server_Name As String
Dim Database_Name As String
Dim User_ID As String
Dim Password As String
Dim SQLStr As String
Dim RS As ADODB.Recordset
Set RS = New ADODB.Recordset
Server_Name = "Excel-PC\SQLEXPRESS"
Database_Name = "Northwind"
'User_ID = "******"
'Password = "****"
SQLStr = "select * from dbo.TBL where EMPID = '2'" 'and PostingDate = '2006-06-08'"
Set Cn = New ADODB.Connection
Cn.Open "Driver={SQL Server};Server=" & Server_Name & ";Database=" & Database_Name & ";"
'& ";Uid=" & User_ID & ";Pwd=" & Password & ";"
RS.Open SQLStr, Cn, adOpenStatic
With Worksheets("Sheet1").Range("A1")
.ClearContents
.CopyFromRecordset RS
End With
RS.Close
Set RS = Nothing
Cn.Close
Set Cn = Nothing
End Sub
Knowledge is the only thing that I can give you, and still retain, and we are both better off for it. -
Mulitnumeric limits loading from database
Hi, Sir,
I am trying to use property loader step in TestStand to load multinumeric limits from a database table for different measurements in multinumeric test step. The database table has several columns such as: stepname, measurementname, hi/low limits. To load the limits for different measurement correctly using single property loader step, I have to match both the step name and measurement name in its filtering page. My question is how should I do this? More specific, how can I access the measurement name attached with different loading properties during run time?
I do not find any example for this problem. Most examples seem to be for TestStand 1.0, which has no multinumerica test step type.
Thank you for your help.
YinYin,
In your database, you should have a column for each high and low limit and comparison for each multiple numeric limit test step. For example, if I have 2 measurements in my multiple numeric limit test step, I will have the following columns: StepName, Result_Measurement_0_Comp, Result_Measurement_0_Limits_High, Result_Measurement_0_Limits_Low,
Result_Measurement_1_Comp, Result_Measurement_1_Limits_High, Result_Measurement_1_Limits_Low.
After your database is set up, you would use the property loader step to read the values in during run-time. If you insert a property loader step and configure the Data Location to be a database, you can configure which database and table you want to read from. Then near the bottom of the property loader dialog, there are two fields. One is for Property Name and the other is for Column Name/Number. You use these fields to assign a certain column to a certain property. So for this case, we would choose one of the limit properties that we want to load from the database and assign that to a certain column. For example, the Property Name would be Result.Measurement[0].Comp and its corresponding Column Name/Number would be the database column Result_Measurement_0_Comp. The next Property Name would be Result.Measurement[0].Limits.High and its corresponding Column Name/Number would be the database column Result_Measurement_0_Limits_High. You would continue to assign a particular column to each property that you want to read in.
In using the Property Loader step type, it is immensely helpful to use the Import/Export Properties tool to create the database, Excel file, or text file because the tool will create these files with the correct format. You would then know exactly how many columns and their names because TestStand created them for you. Even if you plan to use a pre-existing source file, just creating the default source file will give you a better idea of how you will need to tailor your pre-existing database or excel or text file.
If you have other questions, let us know.
Regards,
Shannon R.
Applications Engineer
National Instruments -
Movies in MPEG1 from iPhoto don't appear in iMovie
Hi - in my iPhoto library I have most of the movies I took with my camera SONY T200 - in format Quick Time Movie. Past few movies (the ones I don't see in iMovie) are in MPEG1 format - which I have no idea how that change happened?
Can I change the format?
Is it camera issue or my computer?
I even tried to import the movie using File/import/movies from iMovie no luck.
Please helpFrom another post...
The issue is that most MPEG1 clips are not edit-compatible with quicktime, because of how the audio track is multiplexed with the video. But iMovie '09 supports several sony cameras that shoot MPEG1 movies. But only directly from the MPEG1 camera itself. If you've already sucked the movies into iPhoto, you'll have to trick iMovie into thinking its a camera archive, and cross your fingers.
Try this:
(1) create a new folder on your hard disk called FakeMPEG1Camera (the name here isn't too important).
(2) inside that folder, create a folder called DCIM (the name here, and capitol letters, is important)
(3) inside that folder, place a few of the MPEG1 movies (they need to end with .MPG)
(4) launch iMovie. Choose File > Import... > Camera Archive...
(5) navigate to the 'FakeMPEG1Camera' folder. If your clips are importable, the 'DCIM' folder should be grayed out, and the bottom of the window will say 'Camera Archive Detected.'
(6) click 'Import'. The camera import window will appear, and you can import the clips. iMovie will convert the movie to an edit-compatible format (audio turns into PCM).
Not every MPEG1 file I've tried works, but many do.
If you have a Sony camera that shoots MPEG1, it's easiest to import the footage directly into iMovie while it's still on the camera... do that in the future. -
Error while Image loading from database
I'am using generic handler for loading Image from data bases. Its work fine when when I hardcode the ImageID in QureyString when call Handler. But it's giving errors of different type when I dynamically pass value to qurey string(from datatable).
"There is already an open DataReader associated with this Command which must be closed first."
OR
"There is already an open DataReader associated with this Command which must be closed first."
here is a code of Handler
public void ProcessRequest(HttpContext context)
Int64 id = Convert.ToInt64(HttpContext.Current.Request.QueryString["adid"]);
// dt = obj_dalayer.GetRecpDetailsByID(id);
dt=GetRecpDetailsByID(id);
if (dt.Rows.Count > 0)
//context.Response.ContentType = "image/jpeg";
context.Response.BinaryWrite((byte[])dt.Rows[0][2]);
public DataTable GetRecpDetailsByID(Int64 reid)
try
obj_DB.Open();
obj_sqlcmd = new SqlCommand("GetRecpDetailsByID", obj_DB.GetDBConnection());
obj_sqlcmd.CommandType = CommandType.StoredProcedure;
obj_sqlcmd.Parameters.Add(new SqlParameter("@rid", reid));
obj_sqlda = new SqlDataAdapter();
obj_dt = new DataTable();
obj_sqlda.SelectCommand = obj_sqlcmd;
obj_sqlda.Fill(obj_dt);
return obj_dt;
finally
obj_DB.Close();
And here is a HTML and ServerSide code on ASPX page of call handler.
<img id="img2" alt="Image" runat="server" src='<%#"~/ImageReqHandler.ashx?adid="+Eval("ReID")%>' width="179" height="148" /
I'm using Eval("ReID") to get ID of Image from datatable.Ayez,
This is the VB forum, try it in the C# form.
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral
However, there they will probably tell you that although your problem is C#, it is ASP.Net some programmers become scared if it is Web you know.
Success
Cor -
Image Loaded From Database not Visible in JLabel
import java.sql.*;
import javax.swing.*;
import java.awt.*;
public class consqlimage
public consqlimage()
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:dsn","sa","manshu");
Statement stat = con.createStatement();
ResultSet rs = stat.executeQuery("Select pic from t_image");
byte b[];
b = new byte[1000];
while(rs.next())
b= rs.getBytes("pic");
for(int a=0;a!=b.length;a++)
System.out.println(b[a]);
JFrame f = new JFrame();
ImageIcon i1 = new ImageIcon(b+"jpeg");
JLabel l1=new JLabel("january",i1,SwingConstants.LEFT);
f.getContentPane().add(l1);
f.getContentPane().setLayout(new FlowLayout(FlowLayout.LEFT));
f.setSize(500,500);
f.setVisible(true);
con.close();
catch(Exception e)
System.out.println(e);
public static void main(String args[])
new consqlimage();
}Any reason why you are adding the "jpeg" to the end of the byte array?
You should only have to pass the byte array to the ImageIcon constructor. -
Hi, everybody...
I have to realize a videocommunication, whit Apache web server and FMS 3. This's ok...
I have a button that load an external .swf but, when the 2 client are into communication, when I push the button, the external .swf starts only on the local client and not on the other client.
Can someone help me?
Thanks.
Emiliano.Hi Csound1, thanks. The email host is 1and1.co.uk, however, i am going to fess up and make myself look like a plonker now -
the email account in question was set up in Outlook as POP - stupid, stupid, stupid me, wasted an afternoon on this! I have now changed the Outlook account to IMAP and Mail.app works perfectly - and looks much nicer than Outlook did. Im in the middle of converting from Windows to a Mac, and still finding my way around the Mac
The lesson learned, never assume - always double check! All my other email addresses with 1and1 are all imap, except this one, and it happened to be the first one I set up in the Mail.app. (bows head in disgrace!)
Thank you anyway for attempting to help me!
Cheers -
Emails sent from iPhone don't appear in Sent folder
This should be an easy one for you guys!
I have an iPhone 4s running the latest IOS. When I send emails from the phone they do not appear in the Sent folder on the phone. I can't find the setting to change this.
Thanks!!Has the Mobile Me account been set up on your iPhone as POP rather than IMAP? If it has been set up as POP then any message sent will not be mirrored. Your Mobile Me account should also be configured as IMAP on all your devices in order to see those messages in your Sent Items folder.
The idea of IMAP is to be device independent such that whatever you do is mirrored on all your devices as they each synchronize with Mobile Me. I suppose you could view the Mobile Me "cloud" as being the main repository. If you delete a message from your Inbox via your iPhone, the next time you connect your Mac that message will not appear in the associated Inbox in Mail.
Does that make sense?
Chris -
HT2518 My word files from pc don't appear to have complete figures on word for mac
Hello all,
I'm a professor and I'm accepting word files for student assignments.
When the assignments are made on a pc, when I receive them I get all the figures messed up.
Same thing happened with my word files from my old PC to my new MacBook Air.
It is very important for me to get this to work, because all my class notes are written on a pc word.
They are all in docx format and have been authored with word 2010 I believe for the pc, and are opened by MacOffice 2011 on the mac.
Note: I don't have any problems with my powerpoints - only the word files.
Thanks in advance.A very good morning John,
As far as I have understood, there is no problem with ExportPDF. You might need to check whether the fonts in your PDF are embedded or not.
For this, open the PDF in Reader/Acrobat and go into File>Properties and click on Fonts tab to check for the same.
If the fonts used in the PDF are not present in the system, then MS Word may not be able to retain the layout of the file.
Please check.
Regards,
Anubha -
I have one Apple ID for my MAC and iTunes account and another that is used for both my iTunes and iPad. When I purchased music from iTunes using the Mac ID, the music isn't available on my iTunes or iPad. Neither lets me change my ID so how do I fix this issue so I can play the music on all three?
Hello chlanli
You would need to use one Apple ID for purchases in order to get them across all of your devices and computer. If you want you can use one Apple ID for purchases and the other one to sync personal data. The article below will explain further.
Using your Apple ID for Apple services
http://support.apple.com/kb/ht4895
Regards,
-Norm G. -
Could not load data from database after adding a query
Dear all,
I have a working crystal reports 2011 report. This report get its data from a BW 7.01 system provided by three bex queries. Everything works as expected but not I have to add a fourth query to the report then I get the following messages:
I try to translate it because I user the german version:
INFORMATION: In this report a stored procedure is used. Ensure that no SQL expression was added and no grouping on server side will be done.
WARNING: Data could not be load from the database.
WANING: Invalid argument provided. Details: The key figure structure isn't a valid field for report generation. Use instead the real keyfigures with teir units.
Has anyone an idea what can be the reason for my issue?
Thanks and regards!hi Gerrit,
a couple of questions...
1) are you adding all 3 queries (and then the 4th) in the same data connection or are each of these additional queries in a subreport?
2) if all 3 queries (and then the 4th) are in the same data connection are you linking them?
3) most importantly, if you create a brand new report off of the 4th query, is it successful?
it's been quite a while since I've worked with bex queries but in general adding multiple queries (or stored procs or commands or combinations thereof) to the same report is probably not a good idea. there ends up being a lot of processing happening in the crystal reports designer itself as a large virtual record set is created by the individual queries.
-jamie -
Issue to load data from database to XML file. error: ODI-40768
Hi,
While I am trying to load data from database to XML following error is appearing.
ODI-1228: Task TEST_XML_DATA (Integration) fails on the target XML connection MyLOCALXSD.
Caused By: java.sql.SQLException: ODI-40768: Could not save the file <default>:C:\DATA_FILE\www.xml because a class java.io.IOException occurred and said: The filename, directory name, or volume label syntax is incorrect
at com.sunopsis.jdbc.driver.xml.SnpsXmlFile.writeToFile(SnpsXmlFile.java:751)
at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.internalExecute(SnpsXmlConnection.java:769)
at com.sunopsis.jdbc.driver.xml.SnpsXmlPreparedStatement.execute(SnpsXmlPreparedStatement.java:46)
at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:166)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:540)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
at java.lang.Thread.run(Thread.java:662)
jdbc url: jdbc:snps:xml?d=C:\test_xsd.xsd&s=TESTSQL&re=employeesX&ro=true
physical schema: TESTSQL
Knowledge modules are:
LKM: LKM SQL to SQL
IKM: IKM XML Control Append
CKM: CKM SQL
Parameters set are:
CREATE_XML_FILE: true
XML_PATH:<default>:C:\DATA_FILE\www.xml
I have tried to change the directory path but error is still there.
Could some one please help me to resolve the issue?
Regards,
user1672911Hi,
The trouble in "<default>:" - if you set XML_PATH as C:\DATA_FILE\www.xml instead <default>:C:\DATA_FILE\www.xml- it will work correctly.
Greetings,
Eugene
Maybe you are looking for
-
Hi I have a problem here that i need to be solved. I am using SDK to update the SO in a UDF field. Something like confirmation of the particular item in a text format after checking. But i keep getting this error <i>Violation of PRIMARY KEY constrain
-
How to see iPhone contacts (synced from Google) in Messages app on Mac
I use Google contacts as my master contacts My iPhone 7 (iOS 7) Contacts are synched with Google Contacts. The Messages app in the iPhone shows the names of the people I'm messaging with - however The Messages app in my iMac (Mavericks) does not show
-
I have 2monitors, Firefox reopens windows on wrong monitor when i exit private view
There are much of firefox windows on every screen.
-
Is there some multiplayer online games... but for three or more players?
Hi, somebody knows a multiplayer game but for more than 2 gamers? Thanks
-
Satellite M30: can't install Common Modules after OS update
Hi everyone, I have changed my OS from Win XP to Win XP Pro. Now I try to install Common Modules but when I try to launch it, the setup is visible in the Windows Task Manager but nothing happens. Do you have some idea to help me? Thanks