Problem with parsing a date
Hello!
I am new in java programing. I have the code below:
import java.sql.*;
import java.math.BigDecimal;
import java.sql.Date;
public class TestActualizariJDBC
public ResultSet CrsPersoane;
public Statement StmtPersoane;
public Connection conn;
public TestActualizariJDBC()
try
conexiune();
catch(Exception e)
e.printStackTrace();
System.out.println("Erori la conectare BD");
public void conexiune() throws SQLException
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
this.conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","scott","tiger");
this.StmtPersoane = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
this.CrsPersoane=StmtPersoane.executeQuery("select p.* from personal p");
System.out.println("INITIAL");
this.afiseazaInregistrarile();
public static void main(String[] args)
try
TestActualizariJDBC objTest = new TestActualizariJDBC();
objTest.diverseModificari();
//close connections
objTest.CrsPersoane.close();
objTest.StmtPersoane.close();
objTest.conn.close();
catch (Exception err)
if (err instanceof SQLException)
SQLException errSQL=(SQLException)err;
javax.swing.JOptionPane.showMessageDialog(null,errSQL.getErrorCode()+"--"+err.getMessage(),
"Eroare actualizari!",javax.swing.JOptionPane.ERROR_MESSAGE);
else
System.out.println("A aparut o eroare non-SQL");
err.printStackTrace();
public void diverseModificari() throws SQLException
//second record
this.CrsPersoane.absolute(2);
//modifiy colaborator
this.CrsPersoane.updateString("colaborator","D");
this.CrsPersoane.updateRow();
//next record
if(this.CrsPersoane.next())
//modify the date
java.util.Date dataJava = new java.text.SimpleDateFormat("dd/mm/yyyy").parse("04/10/2006");
java.sql.Date dataSql = new java.sql.Date(dataJava.getTime());
this.CrsPersoane.updateDate("datasv",dataSql);
this.CrsPersoane.updateRow();
//new record
this.adaugareDefaultPerson();
//print again
System.out.println("DUPA UPDATE SI INSERT:");
this.afiseazaInregistrarile();
//delete last record
this.CrsPersoane.last();
this.CrsPersoane.deleteRow();
//print again
System.out.println("DUPA STERGERE");
this.afiseazaInregistrarile();
public void afiseazaInregistrarile() throws SQLException
this.CrsPersoane.beforeFirst();
while(this.CrsPersoane.next())
System.out.println("INREGISTRAREA: "+CrsPersoane.getRow()+"-->"+CrsPersoane.getString("marca")+" "
+CrsPersoane.getString(2)+" "+CrsPersoane.getDate(4));
public void adaugareDefaultPerson() throws SQLException
//new insert
this.CrsPersoane.moveToInsertRow();
this.CrsPersoane.updateInt("marca",9999);
this.CrsPersoane.updateString("numepren","Persoana Noua");
this.CrsPersoane.updateInt("compartid",1011);
java.sql.Date dataDef = new java.sql.Date();
this.CrsPersoane.updateString("datasv",dataDef);
this.CrsPersoane.updateString("colaborator","N");
//commit
this.CrsPersoane.insertRow();
System.out.println("Am inserat ?"+CrsPersoane.rowInserted());
this.CrsPersoane.last();
System.out.println("Ultima linie: "+CrsPersoane.getString("marca"));
this.CrsPersoane.close();
this.CrsPersoane=StmtPersoane.executeQuery("select p.* from personal p");
}The problem appears in diverseModificari() and adaugareDefaulPerson and outputs this errors:
Error(78,85): unreported exception: java.text.ParseException; must be caught or declared to be thrown
Error(114,44): method <init> not found in class java.sql.Date
Error(115,24): method updateString(java.lang.String, java.sql.Date) not found in interface java.sql.ResultSet
Any help is appreciate ! Thanks in advance !
Well, the first error is in this part of the code:
public void diverseModificari() throws SQLException
//second record
this.CrsPersoane.absolute(2);
//modifiy colaborator
this.CrsPersoane.updateString("colaborator","D");
this.CrsPersoane.updateRow();
//next record
if(this.CrsPersoane.next())
//modify the date
java.util.Date dataJava = new java.text.SimpleDateFormat("dd/mm/yyyy").parse("04/10/2006");
java.sql.Date dataSql = new java.sql.Date(dataJava.getTime());
this.CrsPersoane.updateDate("datasv",dataSql);
this.CrsPersoane.updateRow();
..........As i can see the method has an throws SQLException, so where's the problem ?
Similar Messages
-
How can I debug a problem with the 3g data connection on my iPhone 4s?
This question didn't get any answers in the "Using iPhone" forum. Thought I would re-ask here. Note, I had to reset the network again today 2 days after the last reset:
I've been having intermittent problems with my 3g data connection on my iPhone 4s on ATT. Whenever this happens I see full bars etc, but can't browse from safari or get any data in other apps. My wife's iPhone 4 right next to me has no issues at all. Switching on/off airplane mode and turning off/on Cellular Data does not help. The only thing that helps is resetting the Network Settings or hard restarting the phone.
I figured my problems were hardware related so I took my phone in for a replacement the other day. Things started out fine but after I upgraded it to 5.01 and restored my backup and now I am back to having the same issue today. I assume the issue is with something coming from my backup / restore but is there any way for me to pinpoint what could be causing the issue. I have a lot of apps, I'd rather not have to reinstall and set them all backup manually, but I would if I knew that would fix the problem... but for all I know one of the apps could be causing it.
Anyone have any logs I can check or testing I can do on my end?
Thanks!Unfortunately, Apple does not make any logs available to the average schmoe (like us) for networking, kernel dumps, or anything else (assuming, of course, it is not jailbroken).
Your best bet is to take it back into the store. Ask them to look at the notes in GCRM regarding the last time this occured, then explain after upgrading to 5.01 it is occuring again. Then ask them for a phone swap since it is a reoccuring issue and doesn't sound like an OS/SW issue. Good luck! -
Problem with displaying chart data
Hello everybody,
I have problem with displaying chart data correctly. I'm using a cartesian chart with DateTimeAxis. The stockdata I'm using is for half a year and
with ticks for every day. The problem is, that Flex displays the data of february in march together with the data of march. I have added a picture
to show the result. The second column of the grid is for february and the third for march.
Could anybody help me with this problem. Thanks in advance.
ThomasHi Chris,
thanks for your reply. Here you get the source code:
The following method creates the LineChart:
public function init():void
model.upperChart = this;
model.upperChartStyle.setChartViewStyle(this);
this.hAxis = new MyDateTimeAxis();
model.upperChartData.configureHAxis(this.hAxis);
this.vAxis = new LinearAxis();
model.upperChartData.configureVAxis(this.vAxis);
this.vAxisTitle = new Label();
this.vAxisTitle.text = model.upperChartData.getVAxisTitle();
model.upperChartStyle.setVAxisTitleLabelStyle(this.vAxisTitle);
this.vAxisTitle.x = 10
this.vAxisTitle.y = 0;
this.addChild(this.vAxisTitle);
this.myChart = new CartesianChart();
//remove default datatip
this.myChart.showDataTips = false;
this.myChart.x = 10;
this.myChart.y = 0;
this.myChart.width = 768;
this.myChart.height = 196;
model.upperChartStyle.setChartStyle(this.myChart);
this.addChild(this.myChart);
//Remove line shadow
this.myChart.seriesFilters = null;
this.myChart.horizontalAxis = this.hAxis;
this.myChart.verticalAxis = this.vAxis;
this.hAxisRenderer = new AxisRenderer();
model.upperChartData.configureHAxisRenderer(this.hAxisRenderer);
this.hAxisRenderer.axis = this.hAxis;
model.upperChartStyle.setHAxisRendererStyle(this.hAxisRenderer);
this.myChart.horizontalAxisRenderers.push(this.hAxisRenderer);
this.vAxisRenderer = new AxisRenderer();
model.upperChartData.configureVAxisRenderer(this.vAxisRenderer);
this.vAxisRenderer.axis = this.vAxis;
model.upperChartStyle.setVAxisRendererStyle(this.vAxisRenderer);
this.myChart.verticalAxisRenderers.push(this.vAxisRenderer);
model.upperChartStyle.setVAxisDataLabelStyle(this.vAxisMinLabel);
this.addChild(this.vAxisMinLabel);
model.upperChartStyle.setSeriesStyle(model.upperChartData.series, model.upperChartData.shares);
this.myChart.dataProvider = model.upperChartData.dataProvider;
this.myChart.series = model.upperChartData.series;
The data for dataprovider and series you can see in attached file dataprovider.xml.
xfield is equivalent to timestamp
yfield is equivalent to absolute
I think the problem could be the configuration of the datetimeaxis. The following method shows the parameter for the datetimeaxis:
public function configureHAxis(axis:MyDateTimeAxis):void
axis.parseFunction = UtilityClass.parseYYYYMMDDHHNNSSString2Date;
axis.dataUnits = "days";
axis.dataInterval = 1;
axis.title = "";
axis.minimum = new Date(UtilityClass.parseYYYYMMDDHHNNSSString2Date("2009-01-07 00:00:00").time);
axis.maximum = new Date(UtilityClass.parseYYYYMMDDHHNNSSString2Date("2009-07-06 00:00:00").time);
And finally you get the function, that I'm using for string to date conversion:
public static function parseYYYYMMDDHHNNSSString2Date(input:String):Date
var result:Date = new Date();
var year:Number = Number(input.substring(0,4));
var month:Number = Number(input.substring(5,7));
var date:Number = Number(input.substring(8,10));
var hours:Number = Number(input.substring(11,13));
var minutes:Number = Number(input.substring(14,16));
var seconds:Number = Number(input.substring(17,19));
result.setUTCFullYear(year);
result.setUTCMonth(month-1);
result.setUTCDate(date);
result.setUTCHours(hours);
result.setUTCMinutes(minutes);
result.setUTCSeconds(seconds);
return result;
I hope that will help to locate the reason for the wrong chart visualization.
Thanks for any help. -
Sql Devloper 4.0.0.13 - problems with displaying user data types
Hi,
I have installed new version of sqldeveloper and have discovered some problems with displaying user data types. The data that is described as VARCHAR2 are displayed with ‘???’.
The problem persist in table view, script output and exported files.
My type is described as follows:
create or replace TYPE "DPTY_ADRESA" AS OBJECT
ID_DPSF_OPCINE NUMBER,
ID_DPSF_MJESTA NUMBER,
OPCINA VARCHAR2(100),
MJESTO VARCHAR2(100),
ULICA VARCHAR2(200),
BROJ VARCHAR2(20),
SPRAT VARCHAR2(20),
OSTALO VARCHAR2(100),
CONSTRUCTOR FUNCTION dpty_adresa RETURN SELF AS RESULT
add MEMBER FUNCTION dajAdresu RETURN VARCHAR2 cascade;
when make select column from table that contains this type I get next results:
CASE 1:
SQLDeveloper Version 3.2.20.09; Build MAIN-09.87; JDK 1.6.0_43; Windows 7 64 bit
Select:
select id, adresalokacija
from dptr_saglasnosti
where id = 1;
Result:
ID ADRESALOKACIJA
1 COMP.DPTY_ADRESA(124,4913,'TRAIK','TURBE','BABANA','3452','0',NULL)
END CASE 1;
CASE 2:
SQLDeveloper Version 4.0.0.13; Build MAIN-13.80; JDK 1.7.0_40; Windows 7 64 bit
Select1:
select id, adresalokacija
from dptr_saglasnosti
where id = 1;
Result1:
ID ADRESALOKACIJA
1 COMP.DPTY_ADRESA(124,4913,'???','???','???','???','???',NULL)
But if I select one element it is displayed normal.
Select2:
select id, a.adresalokacija.opcina
from dptr_saglasnosti a
where id = 1;
Result2:
ID ADRESALOKACIJA.OPCINA
1 TRAVNIK
END CASE 2;
I have tried this scenario on three different pc with same output.
Pleas help me to get rid of the '???' in result.
Best Regards,
OmerI tried on SQLDeveloper Version 4.0.0.13; Build MAIN-13.80; JDK 1.7.0_45; Windows 7 64 bit; NLS setting is default
all data can show,No ??? in result
Test step as following:
create or replace TYPE "DPTY_ADRESA" AS OBJECT
ID_DPSF_OPCINE NUMBER,
ID_DPSF_MJESTA NUMBER,
OPCINA VARCHAR2(100),
MJESTO VARCHAR2(100),
ULICA VARCHAR2(200),
BROJ VARCHAR2(20),
SPRAT VARCHAR2(20),
OSTALO VARCHAR2(100),
CONSTRUCTOR FUNCTION dpty_adresa RETURN SELF AS RESULT
alter TYPE "DPTY_ADRESA" add MEMBER FUNCTION dajAdresu RETURN VARCHAR2 cascade;
CREATE TABLE dptr_saglasnosti (
adresalokacija DPTY_ADRESA,
id number);
INSERT INTO dptr_saglasnosti VALUES (
DPTY_ADRESA (65,225,'Vrinda Mills', '1-800-555-4412','sss','aaaa','eeeee','attta'),1 );
select id, adresalokacija from dptr_saglasnosti where id = 1;
ID ADRESALOKACIJA
1 HRCP.DPTY_ADRESA(65,225,'Vrinda Mills','1-800-555-4412','sss','aaaa','eeeee','attta') -
When I try and restore from iCloud it says problem with back up data help !!!
Can anyone help me back up my phone from iCloud. It is saying there is a problem with my data
Hey Shopaholic1181,
Thanks for using Apple Support Communities.
iCloud: Understanding alert messages when restoring from an iCloud Backup
http://support.apple.com/kb/TS4585
"Your iPhone cannot be restored because there is a problem with your backup data. Choose a different backup to restore from."
Your backup does not appear to be usable. If you receive this alert, you should check the iCloud System Status at the iCloud Support website to make sure there are not any issues occurring with iCloud Backup. If there is not a widespread issue notated on the iCloud System Status, the error may self-resolve if you wait several minutes and try again. If issues persist, you should contact iCloud Support via the iCloud Support website.
Have a nice day,
Mario -
Hi gurus, need your help.
When we run the query for the report we get an error in Web Intellegence .
This error may be two types. And their rotation occurs randomly.
First error: There is no memory available. Please close document to free memory (WIO 30280)
Second error: An internal error occurred while calling the 'processDPCommands' API. (ERR_WIS_30270)
When we try reopen WEB Intelligence, or reloading servers or machine, we have no any results and get error again.
I was try change different parametrs in universe designer for connection and universe, in central managment console for WEBI, but it's not solve problem
This query select data from huge table (4,7 million rows), and when I use limit for maximum rows in WEBI my report working correctly.
Is there any way to solve these problems associated with large data? What is invoke this problem when we try to get full data?
We use Business Objects Enterprise XI 3.1 version 12.4.0.966
Our system Windows Server R2 Enterprise 2008 SP1 (64-bit system), Processor Intel 2.67 GHz (2 processors), RAM 8 Gb.
Thanks.
RuslanHi Brad,
here we are talking about XI3.1 which has the limitations inherited from the operating system. as this blog post explains with plenty of details.
In BI4.0 you can leverage larger datasets without any problems however you need to properly size and configure the services.
There are several documents out there:
How to configure the APS http://scn.sap.com/docs/DOC-31711
Companion Guide
https://service.sap.com/~sapdownload/011000358700000307202011E/SBO_BI_4_0_Companion_V4.pdf
Web Intelligence Sizing Guide
https://service.sap.com/~sapdownload/011000358700001403692011E/BI_4_0_WEBI_NEW.pdf
Best regards,
Simone -
Problem with logminer in Data Guard configuration
Hi all,
I experience strange problem with applying of the logs in DataGuard configuration on the logical standby database side.
I've set up the configuration step by step as it is described in documentation (Oracle Data Guard Concepts and Administration, chapter 4).
Everything went fine until I issued
ALTER DATABASE START LOGICAL STANDBY APPLY;
I saw that log applying process was started by checking the output of
SELECT NAME, VALUE FROM V$LOGSTDBY_STATS WHERE NAME = 'coordinator state';
and
SELECT TYPE, HIGH_SCN, STATUS FROM V$LOGSTDBY;
but in few minutes it stoped and quering DBA_LOGSTDBY_EVENTS I saw the following records:
ORA-16111: log mining and apply setting up
ORA-01332: internal Logminer Dictionary error
Alert log says the following:
LOGSTDBY event: ORA-01332: internal Logminer Dictionary error
Wed Jan 21 16:57:57 2004
Errors in file /opt/oracle/admin/whouse/bdump/whouse_lsp0_5817.trc:
ORA-01332: internal Logminer Dictionary error
Here is the end of the whouse_lsp0_5817.trc
error 1332 detected in background process
OPIRIP: Uncaught error 447. Error stack:
ORA-00447: fatal error in background process
ORA-01332: internal Logminer Dictionary error
But the most useful info I found in one more trace file (whouse_p001_5821.trc):
krvxmrs: Leaving by exception: 604
ORA-00604: error occurred at recursive SQL level 1
ORA-01031: insufficient privileges
ORA-06512: at "SYS.LOGMNR_KRVRDREPDICT3", line 68
ORA-06512: at line 1
Seems that somewhere the correct privileges were not given or smth like this. By the way I was doing all the operations under SYS account (as SYSDBA).
Could smb give me a clue where could be my mistake or what was done in the wrong way?
Thank you in advance.Which is your SSIS version?
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
Problem with writing continuous data to excel using using Report Generation vi's
Hey Everyone,
I am trying to read the data from DAQ and write to excel continuously using Report Generation vi's.
But when I run the VI, it writes only one interation of the while loop (gathering data from DAQ continuously) and doesn't append the data into the same file when I run it again after stoping the VI.
I have attached the VI i created. Please let me know if you have any idea to solve this issue.
Thanks
Attachments:
sample 5.vi 35 KBThere are two problems with your VI. First, the basic logic of writing/appending to a file (Excel, TDMS, anything) should go something like this: Open the file, position yourself at the end of the file, then, in the loop, acquire data and write it to the file until you are finished with data acquisition. When you exit the acquire/write to file loop, then close the file. In particular, the opening and the closing of the file should not be inside the loop.
As others have pointed out, writing to Excel might not be optimal, particularly if you are acquiring data at a high rate (and would therefore be writing a lot of data). We actually use Excel in our data acquisition routine, mainly reading from a WorkSheet to get the parameters of a particular stimulus, but also writing the outcome of the response to the stimulus. As it happens, our "acquisition rate" in this example is on the order of several samples per minute, so there's no problem using Excel (we also sample 16 channels of analog data at 1 KHz -- this gets written as a binary file).
Second, if you really do want to use Excel, use the (existing) Excel file to which you want to append as the "template" argument of the New Report function. Then use the Excel Get Last Row function to position yourself at "end of file", as noted above.
Good Luck.
Bob Schor -
Problem with transferring of data to non sap
Hi all,
I am doing program of creating excise invoice details and those are transfering to non sap.and I am successfully passing text file to that non sap by using FTP connection.
like FTP_CONNECT
FTP_COMMAND
FTP_R3_TO_CLIENT
FTP_DISCONNECT
But text file details are coming like this
means even line items are all displaying in one row.means continously all line items are coming just like this.
0001000264,070914,,,1000,Steel (pune) Plant,
Retail Outlet 1,0001000265,070914,,,1000,Steel (hyderabad) Plant,Retail Outlet 1
Actually here problem is text file data is continously coming with ','
means actually those values has to come as
0001000264,070914,,,1000,ESSAR Steel (Hazira) Plant,Retail Outlet 1
0001000264,070914,,,1000,ESSAR Steel (Hazira) Plant,Retail Outlet 1
How to split those records when sending the text file.
This is very big issue.I am unable to complete this issue.
Please if any one knows the solution please guide me.
please help me.
Thanks & Regards,
J.GoudHi all,
My problem was solved.But I have used GUI_DOWNLOAD.
But i want to place the file name with increasing order number.
Just like suppose 1st i am placing file name as PO000051.txt
next time the file name has to be placed with increasing order like PO000052.txt
I am generating the number in my program actually i am using like this.If i keep file name as
190.0.18.65\qdls\ITGSAP_P\PO000052.txt means only it will place only that file how to increment that number. i am not getting.
If i am keeping
190.0.18.65\qdls\ITGSAP_P\g_file like this means file is not placing.
pls help me if any one knows solution.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = ' '
CODEPAGE = ' '
FILENAME = '
190.0.18.65\qdls\ITGSAP_P\g_file'
FILETYPE = ' '
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
importing
filelength =
TABLES
DATA_TAB = ist_file
FIELDNAMES =
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TABLE_WIDTH = 4
INVALID_TYPE = 5
NO_BATCH = 6
UNKNOWN_ERROR = 7
OTHERS = 8.
regards,
J.Goud -
Re: Problem with transferring of data to non sap by using FTP funtion modul
Hi all,
I am doing program of creating excise invoice details and those are transfering to non sap.and I am successfully passing text file to that non sap by using FTP connection.
like FTP_CONNECT
FTP_COMMAND
FTP_R3_TO_CLIENT
FTP_DISCONNECT
But text file details are coming like this
means even line items are all displaying in one row.means continously all line items are coming just like this.
0001000264,070914,,,1000,Steel (pune) Plant,
Retail Outlet 1,0001000265,070914,,,1000,Steel (hyderabad) Plant,Retail Outlet 1
Actually here problem is text file data is continously coming with ','
means actually those values has to come as
0001000264,070914,,,1000,ESSAR Steel (Hazira) Plant,Retail Outlet 1
0001000264,070914,,,1000,ESSAR Steel (Hazira) Plant,Retail Outlet 1
How to split those records when sending the text file.
This is very big issue.I am unable to complete this issue.
Please if any one knows the solution please guide me.
please help me.
Thanks & Regards,
J.GoudHi all,
I am doing program of creating excise invoice details and those are transfering to non sap.and I am successfully passing text file to that non sap by using FTP connection.
like FTP_CONNECT
FTP_COMMAND
FTP_R3_TO_CLIENT
FTP_DISCONNECT
But text file details are coming like this
means even line items are all displaying in one row.means continously all line items are coming just like this.
0001000264,070914,,,1000,Steel (pune) Plant,
Retail Outlet 1,0001000265,070914,,,1000,Steel (hyderabad) Plant,Retail Outlet 1
Actually here problem is text file data is continously coming with ','
means actually those values has to come as
0001000264,070914,,,1000,ESSAR Steel (Hazira) Plant,Retail Outlet 1
0001000264,070914,,,1000,ESSAR Steel (Hazira) Plant,Retail Outlet 1
How to split those records when sending the text file.
This is very big issue.I am unable to complete this issue.
Please if any one knows the solution please guide me.
please help me.
Thanks & Regards,
J.Goud -
Problem with transferring of data to non sap by using FTP funtion modul
Hi all,
I am doing program of creating excise invoice details and those are transfering to non sap.and I am successfully passing text file to that non sap by using FTP connection.
like FTP_CONNECT
FTP_COMMAND
FTP_R3_TO_CLIENT
FTP_DISCONNECT
But text file details are coming like this
means even line items are all displaying in one row.means continously all line items are coming just like this.
0001000264,070914,,,1000,Steel (pune) Plant,
Retail Outlet 1,0001000265,070914,,,1000,Steel (hyderabad) Plant,Retail Outlet 1
Actually here problem is text file data is continously coming with ','
means actually those values has to come as
0001000264,070914,,,1000,ESSAR Steel (Hazira) Plant,Retail Outlet 1
0001000264,070914,,,1000,ESSAR Steel (Hazira) Plant,Retail Outlet 1
How to split those records when sending the text file.
This is very big issue.I am unable to complete this issue.
Please if any one knows the solution please guide me.
please help me.
Thanks & Regards,
J.GoudHi,
Thanks for reply.
Hi all,
My problem was solved.But I have used GUI_DOWNLOAD.
But i want to place the file name with increasing order number.
Just like suppose 1st i am placing file name as PO000051.txt
next time the file name has to be placed with increasing order like PO000052.txt
I am generating the number in my program actually i am using like this.If i keep file name as
190.0.18.65\qdls\ITGSAP_P\PO000052.txt means only it will place only that file how to increment that number. i am not getting.
If i am keeping
190.0.18.65\qdls\ITGSAP_P\g_file like this means file is not placing.
pls help me if any one knows solution.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = ' '
CODEPAGE = ' '
FILENAME = '
190.0.18.65\qdls\ITGSAP_P\g_file'
FILETYPE = ' '
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
importing
filelength =
TABLES
DATA_TAB = ist_file
FIELDNAMES =
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TABLE_WIDTH = 4
INVALID_TYPE = 5
NO_BATCH = 6
UNKNOWN_ERROR = 7
OTHERS = 8.
Regards,
j.Goud -
Problem with a XML Data Server
Hello,
I am facing a problem in defining the data server for an XML File.
This Xml File is well build and I can open it with IE.
In this file I have a namespace define.
I define the url driver as following : jdbc:snps:xml?f=C:/Temp/dossiers_suisse.xml&s=XML_DOS_HAB_S
but I always have the following error message :
java.sql.SQLException: The model generated by the model mapper was not accepted by a validator: Modèle non accepté: Namespace not found:
When I remove the namespace of the xml file the test works well.
I was searching for the driver documentation but I just find few informations on the webhelp.
Maybe there is a parameter to pass to the Driver URL to define the namespace but there is not in the web help.
So if someone know how to do with this sort of file ?
Or if someone know where I can find the real documentation for this driver ?
Thanks in advance...
BMI am able now to test my connexion succesfully after having restart my ODI.
I can reverse my XML file too.
But my datastores are empty except the first datastore genrated which correspond to the first Tag (the one after the root).
Please Help... -
Problems with 2 transaction data getting intermixed !!!
Hi,
i am using weblogic in my project both as a webserver and as the application server.
But i am facing problems with requests being sent to the server. Basically i have
a form in my jsp which, if submitted by multiple clients at the same instant in
time, the server gets confused and mixes up the data in the requests !! the form
is submitted to another jsp which in turn calls a SLSB which in turn calls various
entity Beans to fulfill the request.
Now if 2 or more clients hit the submit button together, the server is mixing
the data from the requestsand i get corrupted output as a result.
That if i submit values (a,b,c) from one client machine and values (x,y,z) from
another machine, the server puts one of the transactions properly and in the other
it picks up the data from the other request and takes something like (x,y,c) !!
Is this a bug in Weblogic 6.1 or am doing something wrong ??
Any help would be appreciated. Anyone faced something similar ?
RajaHi.
Please open a case with support if you haven't already done so.
Regards,
Michael
Raja wrote:
Hi,
i am using weblogic in my project both as a webserver and as the application server.
But i am facing problems with requests being sent to the server. Basically i have
a form in my jsp which, if submitted by multiple clients at the same instant in
time, the server gets confused and mixes up the data in the requests !! the form
is submitted to another jsp which in turn calls a SLSB which in turn calls various
entity Beans to fulfill the request.
Now if 2 or more clients hit the submit button together, the server is mixing
the data from the requestsand i get corrupted output as a result.
That if i submit values (a,b,c) from one client machine and values (x,y,z) from
another machine, the server puts one of the transactions properly and in the other
it picks up the data from the other request and takes something like (x,y,c) !!
Is this a bug in Weblogic 6.1 or am doing something wrong ??
Any help would be appreciated. Anyone faced something similar ?
Raja--
Michael Young
Developer Relations Engineer
BEA Support -
Hi,
I bought a new iPhone 4 last month, totally fell in love with it untill there was this problem regarding the apn disappearing. I manually added the apn info and it worked fine for some time but soon after I disabled the mobile data/3g connection and enabled it later I always use to get a msg saying "Could not activate mobile data network" even after it being active( 3g symbol always used to be poped up at the top). Though the apn is filled with a valid data it shows me the same msg over and over again. It some times works on rebooting but the rebooting the handset everytime i want to use the connection sounds very pestering. Please suggest me with somehting to get rid of this problem...https://discussions.apple.com/message/21946322#21946322
-
Problem with Real Time Data Acquisition
Hello,
I tried to built a RDA data flow according to the SAP-Help and this blog (/people/kamaljeet.kharbanda/blog/2006/11/13/real-time-data-acquisition-bi2004s), but I ran into a problem. Everything seems to be fine, but even though the daemon is running no new data is added to the DSO. I'll explain in detail what steps I took and hope someone can pinpoint my error(s).
System is BW4 on SPS 17. My datasource as well as my DSObject are in the same system
1.) Created a transparent table with a timestamp-field for generic delta as a local object.
2.) Created a generic datasource from view/table (used the above table), marked it as realtime-enabled and used timestamp as delta-specific field.
3.) Replicated the metadata for my datasource and activated it.
4.) Created a Data Storage Object with infoobjects corresponding to the table fields
5.) Created a transformation between DataSource and DSO
6.) Created a DTP from Data Source to DSO. The type is realtime-DTP.
7.) Created an InfoPackage for Delta-Initial Load. Update mode: Initialize Delta Process -> Initialization with Data Transfer.
8.) Then I changed my DTP (step 6) to "normal DTP" and executed it. Then activated the data in the DSO. The datasets from the table (which i filled with an ABAP-program) were successfully loaded and activated. So now my DSO contains 5 datasets.
9.) Changed the DTP back to "realtime DTP"
10.) Created an InfoPackage for RDA. Adapter is set to "Realtime extraction from SAP System"
11.) Created a daemon, assigned the IP for RDA and the DTP to the daemon and started it up.
12.) Executed my ABAP program to added 3 datasets to the table which is used as a datasource.
So now in my source table there are 8 datasets, but the daemon won't load them. In my RDA-Monitor (trx rsrda) it shows my daemon, the assigned IP and the assigned DTP (status green). Under the IP there's one yellow request (that should be right according to the help), but unlike the picture in the blog (link see above) there's no request under the DTP.
Job overview (sm37) shows an active batch job and some jobs that are ready (every 10minutes a new batch starts and the old one is closed). the job log shows, that the daemon runs, but loads no data...
i think it might be a problem with the delta extraction somewhere, because the intial load works fine and there are no errors anywhere.
Edit: perhaps my settings in the data source unter tab: extraction are wrong?
Delta process: AIE After Images By Extractor (can't change that)
Direct Access: Allowd
real Time: Real-Time DA Supported
Adapter: realtime data extraction (also tried Access to SAP Data through Service API which seems senseless)
Data Format: Fixed Lenght
Anyone can explain what those fileds mean and which one i should use?
Edited by: Christoph Jender on Apr 10, 2008 2:48 PM
Edited by: Christoph Jender on Apr 10, 2008 3:33 PMHi again, another thing i'd like to try is to just active a business content datasource which is realtime-enabled and has the ability to dynamically add some values so that i can test if it works. but i have no idea what business content would be applicable here, any ideas on that perhaps?
Maybe you are looking for
-
How can I access my pictures.
When I go into my Adobe Photoshop Elements 8 I get Organize and Edit on my screen. When I click on Organize (which I have done many times) it goes back to main menu. If I press on Edit the edit program it comes up OK but not the Organize. Can I acc
-
I was reviewing the Verizon FIOS post titled "Entering DNS settings in the Actiontec MI424WR router to opt out of DNS Assistance", when I noticed a difference with my actiontect 424w rev g settings. In my case, I do not have any broadband connection
-
XSU and CURSOR expression in the sql query
Platform: oracle 8.X on ibm aix and java client code from windows NT. JDBC DRIVER: JDBC Oracle thin driver version 1.2. when i execute a Sql satement with Cursor expression from the java client code with XSU it returns an XML DOM But if the CURSOR EX
-
Help on Time type 0903, Identifying Schema and Rule configuration?
Can you please help me with the following: 1. What is time type 0903? 2. How to identify schema and rule configuration? 3. How do I identify the number of employees affected in case I have to make a configuration change? Thanks
-
Hi all, OK this may get bumped to another board but it could go anywhere. I was in John Lewis in Bristol the other night and I noticed that all the Mac's on display were running this neat little video screensaver of what makes Mac's so great. I did a