Problem retrive data from a a class
Well I again. I got the follow class.
public class Rhcp
public int docID;
public java.lang.String name;
public java.util.Date initialDate;
public java.util.Date finalDate;
public void setRhcp()
this.name = rs.getString(1);
this.initialDate = rs.getDate(2);
When I try to use this class on a JFrame.
Rhcp rhcp = new Rhcp();
java.text.DateFormat data = java.text.DateFormat.getDateInstance();
rhcp.setRhcp();
jtxtDF.setText(data.format(doc.finalDate));
//here the doc.finalDateis null
}
Sorry
Let me explain better.
I got a class
public class A
public java.util.Date dt;
public void doNothing()
dt = rs.getDate(2) ;
Then I need to show the value of dt.
java.text.DateFormat data = java.text.DateFormat.getDateInstance();
A aa= new A();
aa.doNothing();
jtxtText.setText(data.format(aa.dt));
But here the aa.dt dont has a value.
why?
If not understanding I will try to explain more....
Similar Messages
-
Problem retriving data from TLF
I 'm having problem retrieving the data i need to from TLF, please have a look at the post i made over at stackoverflow that explains the problem i am having: http://stackoverflow.com/questions/6198736/data-from-tlf-textline. Thanks!
rawTextLength : int
[read-only] The length of the raw text in the text block that became the line, including the U+FDEF characters representing graphic elements and any trailing spaces, which are part of the line but not are displayed.
Your code seems good. I did not tried to get the atom of textline ago, so I can only share the experience I had.
1.textline.y give me the bottom of the textline not the top. So you need to differ textline.y from textLine.getAtomBounds(atomIndex).y;
2.When you use TLF, code like "_source.interactionManager.getCommonCharacterFormat"is not recommended.
You need to write the code as follows to skip the call of getter function when you will use _source.interactionManager many times. Because when you run "a.b", you call the "get b()" in class "a". "get b()" may be a large function and cost a lot.
var editManager:SelectionManager = _source.interactionManager as SelectionManager;
editManager.getCommonCharacterFormat() -
Problem retriving data from OSA MS9710 with GPIB interface
Hi all,
I'm trying to read data from Anritsu OSA MS9710 using a GPIB interface and a terminal software in computer. However, I am not having sucess with it. Anyone know how can I do this? or another way to read this data without needing a floopy disk?
Thank a lot!Anritsu has a LabVIEW driver. I don't know what kind of terminal software you are talking about. Most terminal emulators are only useful for RS-232. You can use MAX (Measurement & Automation Explorer) to communicate. Nor do I understand how a floppy disk could help.
-
Problem when simultaneously retriving data from berkeleydb using web applic
Hi all
Plz Help
i am using jboss server .
my problem is :
i have 2lacks recodrs in berkeleydatabase
when i try to retrive data it working properly for one browser
if i start retrive data simultaneously using two IES it getting this exception
how to solve this problem,i mean separeate session for separate client
in java session trking techique i applied ,but here not working retriving data from berkeleydb.collision occur
11:47:08,468 ERROR [STDERR] Database handles still open at environment close
11:47:08,468 ERROR [STDERR] Open database handle: smscsucc.db
11:47:08,468 ERROR [STDERR] java.lang.IllegalArgumentException: Invalid argument
11:47:08,468 ERROR [STDERR] at com.sleepycat.db.internal.db_javaJNI.DbEnv_cl
ose0(Native Method)
11:47:08,468 ERROR [STDERR] at com.sleepycat.db.internal.DbEnv.close0(DbEnv.
java:208)
11:47:08,468 ERROR [STDERR] at com.sleepycat.db.internal.DbEnv.close(DbEnv.j
ava:76)
11:47:08,468 ERROR [STDERR] at com.sleepycat.db.Environment.close(Environmen
t.java:39)
11:47:08,468 ERROR [STDERR] at daos.RetriveDao.getData(RetriveDao.java:131)
11:47:08,468 ERROR [STDERR] at controllers.MainServlet.getData(MainServlet.j
ava:47)
11:47:08,468 ERROR [STDERR] at controllers.MainServlet.serviceHelper(MainSer
vlet.java:76)
11:47:08,468 ERROR [STDERR] at controllers.MainServlet.doGet(MainServlet.jav
a:101)
11:47:08,468 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:697)
11:47:08,468 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:810)
11:47:08,468 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:252)
11:47:08,468 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:173)
11:47:08,468 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilte
r.doFilter(ReplyHeaderFilter.java:96)
11:47:08,468 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:202)
11:47:08,468 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:173)
11:47:08,468 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve
.invoke(StandardWrapperValve.java:213)
11:47:08,468 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve
.invoke(StandardContextValve.java:178)
11:47:08,468 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssocia
tionValve.invoke(SecurityAssociationValve.java:175)
11:47:08,468 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValv
e.invoke(JaccContextValve.java:74)
11:47:08,468 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.in
voke(StandardHostValve.java:126)
11:47:08,468 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.i
nvoke(ErrorReportValve.java:105)
11:47:08,468 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.
invoke(StandardEngineValve.java:107)
11:47:08,468 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.s
ervice(CoyoteAdapter.java:148)
11:47:08,468 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.proc
ess(Http11Processor.java:869)
11:47:08,468 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$H
ttp11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
11:47:08,468 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.pr
ocessSocket(PoolTcpEndpoint.java:527)
11:47:08,468 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerT
hread.run(MasterSlaveWorkerThread.java:112)
11:47:08,468 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
# An unexpected error has been detected by HotSpot Virtual Machine:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x29693a05, pid=832, tid=3776
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# C [libdb44.dll+0x33a05]
# An error report file with more information is saved as hs_err_pid832.log
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
Press any key to continue . . .
Thnking you
Thanks & Regards
Venkat GadarlaHello,
Your question is about Berkeley DB -- this is the Berkeley DB Java Edition forum. Please repost this over at:
Berkeley DB
Thanks.
Charles Lamb -
"evdre encountered a problem retrieving data from the webserver"
Hi
We are using a big report which takes very long time to expand and sometimes we get the error message "evdre encountered a problem retrieving data from the webserver" when expanding the report, but not very often for most of our users. But we have one user who gets this error message almost every second time he expands the report. This user have a computer with same capacity as the rest of us, can there be some setting on the computer or in the client installtion the cause this problem?
We are using BPC 5.1 SP 5
/FredrikHi,
This error occurs usually if we have huge data in combination of our dimensions.
Even, if the selection of your memberset is not apt to the combination of the data present in the back end, you may encounter a data retrival error.
regards
sashank -
Client Socket Problem: retrieving data from my Simple http Server...
here's the main part of the "sending" of data from my server class:
write(b.getBytes());
outtStream.write(version.getBytes());
outStream.write(replyCode.getBytes());
here the server sends the data back to the client...i've tested this on a webbrowser and got a correct response...
now in my client side, I'm having problems...
1) I dont know how to retrieve the data from the outStreams above...
2) Can anyone give me some help plz...or descriptive sample code
here's the main part of the client sending its data first from the user input(client) and then sending the data...(ive created the socket)
input = new BufferedReader(new InputStreamReader(System.in));
output = new PrintWriter(socket.getOutputStream(),true);
while((message = input.readLine()) != null)
output.println(message);//sends the client's input to server?
System.out.println(input.readLine());//retrieves server's response
//then outputs italso i tried adding
input = new BufferedReader(new InputStreamReader(socket.getInputStream()));
after the System.in one and still no luck :[ -
Hi Experts,
How to retrive data from HR tables for custom screen & store in custom table? I need Employee number, employee name, department, their location & mail id. When employee number is given, all other details must be fetched. Can you give a solution for this problem?
Thanks,
KavithaHi Kavitha,
in HR you could get data from different tables based on infotypes. lets say if any data need to get from infotype 0001 (Org assignment), add "PA" before the infotype number so it would be PA0001.
you could get the Employee no, name, department, location(i guess personal area or personal subarea) from PA0001 table and email id from PA105 infotype.
Regards
Raju -
EVDRE encountered an error retriving data from web server in PROD
Hi friends,
We are checking Evdre reports in BPC production system. We checked few application' EVdre input templates & reports and are fine.
But yesterday evening onwards we are facing below error message.
EVDRE encountered an error retriving data from web server. This message we are getting for all BPC applications in BPC production. There is no short dump in backend.
But when i checked in BPC developement there is no probelm.
We are on BPC7.5 NWsp04 and BI7.01.
In BPC, production,when i try to create evdre template(just after filling
information in evdre builder), immediately getting same error information.
I read few notes, did as per that but sill problem exists. In note, mentioned process dim of particular application and process application. Logout from bpc admin & excel. I did this and, that error message not received for upto 20min. After that i'm getting error. We checked communciation between ABAP layer and bpc, reset IIS also. Still same probelm exists.
Any suggestions pls.
thanks,
nareshHi frineds,
SAP OSS team resolved along with our basis guy.
Initially SAP supported notes:
1.1475233 and 1378705 Process all dimensions and applications.
2.1355954 Drop SAP temp tables.
3.1428764 confilict only if you use Oracle 10 g, if you don't, then forget it.
I used 1378705 and problem resolved temporarly, but still exists after 1 day.
There are different reasons for getting the error message. In our case, problem is at backend BW and, BW system running on HP unix OS.
Checked librfc32.dll in the
directory /usr/sap/BP1/DVEBMGS00/exe.
Executed the following MDX statment in MDXTEST transcaction, and it
executed in both the available instances.
SELECT
{[Measures].MEMBERS} ON COLUMNS,
[0MATERIAL].[LEVEL00].MEMBERS ON ROWS
FROM [$ZCO_CDPC].
Even i also don't have clue how SAP resolved this issue.
Regards,
Naresh -
Problem reading data from oracle database 11g using OleDbDataReader
Hi everyone I work with Visual Studio 2010 and C# programming language. I have a problem reading data from the oracle database. I created a WPF application with my main Window Xaml and class files and 1 more class called DataFiles. The thing I want is to read some data from the database on my grid in my WPF window. Problem is even though it connects to the database the grid is always empty. It isn't the connection string as I tested it and it connects to the database the problem seems to be in showing the LASTNAME (PREZIME in my native tongue) on the grid which is what it's supposed to do.
Here is the code:
Data Files Code
using System;
using System.Collections.ObjectModel;
using System.Data.SqlClient;
using System.Data.OleDb;
namespace SQLKonekcija
public class clsEmployee
public string Prezime { get; set; }
public class DataAccess
OleDbConnection oleCon;
OleDbCommand oleComd;
public DataAccess()
string connectionString = "provider=ORAOLEDB.ORACLE; data source=ORCL; password=****; user id=****;";
oleCon = new OleDbConnection(connectionString);
public ObservableCollection<clsEmployee> GetAllEmployee()
ObservableCollection<clsEmployee> EmpCol = new ObservableCollection<clsEmployee>();
oleComd = new OleDbCommand();
oleComd.Connection = oleCon;
oleComd.CommandText = "Select PREZIME from UPOSLENICI";
oleCon.Open();
OleDbDataReader Reader = oleComd.ExecuteReader();
Reader.Read();
while (Reader.Read())
EmpCol.Add(new clsEmployee()
Prezime = Reader["PREZIME"].ToString()
oleCon.Close();
return EmpCol;
}And here is my main window.cs code
public partial class MainWindow : Window
clsEmployee objEmpToAdd;
DataAccess objDs;
public MainWindow()
InitializeComponent();
private void Window_Loaded(object sender, RoutedEventArgs e)
objDs = new DataAccess();
dgEmp.ItemsSource = objDs.GetAllEmployee();And the XAML
<Window x:Class="SQLKonekcija.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded">
<Grid>
<DataGrid AutoGenerateColumns="False" Height="237"
HorizontalAlignment="Left" Margin="18,66,0,0" Name="dgEmp"
VerticalAlignment="Top" Width="466" ColumnWidth="*"
>
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding PREZIME}" Header="Prezime"></DataGridTextColumn>
</DataGrid.Columns>
</DataGrid>
<TextBlock Height="42" HorizontalAlignment="Left" Margin="18,15,0,0" Name="textBlock1" Text="TEST CONNECTION" VerticalAlignment="Top" Width="462" TextAlignment="Center" FontSize="28" FontWeight="ExtraBold" />
</Grid>
</Window>
The guys on the MSDN forums told me I should ask the question here so sorry if it's not your field.
Hope u guys can help, thanks.I tried it, commented out the reader.read and have the following connection string
string connectionString = "provider=ORAOLEDB.ORACLE; data source=ORCL; password=****; user id=****; OLEDB.NET=True"
Unfortunately the result is the same.
Edited by: Dino2dy on Nov 24, 2011 12:53 AM -
BAPI or FM needed to retrive data from SNP Planning Area
Hi All,
There is a planning area created for SNP ,now I need to retrive key figure values present in this SNP Planning area.Does any know of BAPI or FM which can be used to retrive data from SNP Planning Area?
Thanks,
VenuHi Venu,
A) Please try this BADI Implementation
/SAPAPO/EXTRACT_EX Sample implementation
/SAPAPO/SDP_EXTRACT Definition name
/SAPAPO/IF_EX_SDP_EXTRACT Interface name
/SAPAPO/CL_IM_EXTRACT_EX Class name
The Uses of this BADI are;
1) You can interrrupt the data extraction process from the planning area.
2) You can use the CHANGE_INPUT method to override the input parameters for the extractor (sent from the requesting system).
3) You can use the CHANGE_OUTPUT method to alter the extracted data, derive the values of certain InfoObjects , for example.
4) You can use the CHANGE_SELECTION method to modify the selection table that is used for extracting data using a BAdI method. This is particularly useful when extracting data from an SNP planning area because you cannot specify a location product in the standard selection.
B) You can also try the below function modules
/SAPAPO/CL_IM_EXTRACT_EX - Load key figures of Demand Planning
/SAPAPO/CDI_TSDMID_KEYFS_LOAD - Load key figure data from TSDM
Regards
R. Senthil Mareeswaran. -
Database.LoadDataSet() method is throwing error during retriving data from empty table of IBM DB2 database. It is giving error code "SQL0100W".
“Error Message: 0NO_DATA [02000] [IBM] [DB2 / NT] SQL0100W FETCH, whether there is a line to be UPDATE or DELETE, or of the query result is an empty table .
SQLSTATE = 02000”Hello SharayuPandit,
For issues regarding DB2, i suggest that you could post it to DB2 related forum:
https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000842
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Problems transferring data from MacBook Pro to MacBook Pro
I just bought a new MacBook Pro and I am having problems transferring data from my old MacBook Pro. I am using an Apple Thunderbolt to FW adapter to hook both computers and I am using the Migration Assistant. Everything looked ok until the "Transferring Your Information" screen got stuck. It says that it is "Transferring your Application folder..." And it has been stuck for at least the last two hours giving a message that says "About 3 minutes remaining..." This is starting to get ridiculously annoying. Options?
I guess I am finding my own way as time progresses and frustration increases but these are two things that I have found so far:
1. Transfering from one machine to another does not seem to be the most efficient way to do this so using the TimeMachine backup must be the way to go...
HOWEVER
2. In this process I also found another "complication" called: Legacy FaultVault - My computer is encripted and I used this now so called "Legacy FaultVault" app to do it (when it was no a Legacy!). The thing is that you can not transfer documents from your TimeMachine backup to your new Mac if the Legacy Fault Valut is active on your old machine so you first need to desactivate the encription. HOWEVER, this brought another issue...when I tried to desactivate the encription using the Legacy FaultVault screen I got a message saying that I did not have enough disk space to allow me to do that....Isn't that great??? This is a problem by itself and it seems to have some sort of solution I was reading about (not straight forward at all). What I am trying to do now is to copy the folder that contains my files and just paste them on my new machine to see if that works....it looks like my apps are on my new machine, unsure if they are working...need to test this next....
I guess the transfer machine to machine could have sorted out the conflict eventually...after tens of hours or maybe not! Who knows....
A very frustrated Apple fan...
I love Apple products but this is an ISSUE...I feel like there is lack of adecuate documentation around to deal with this or the data transfering apps should be able to deal with this on a more efficient way....just saying... -
Using Get Data From Aggregation event class in SQL Profiler - SSAS 2012
Hi,
I'd like to understand better the use of the Get data from aggregation event class in SQL Profiler to monitor a MDX query and which info provide. Fe, does it return the MDX query? Is it possible to use this event class in order to monitor MDX query vs a
Tabular model?
In the TechNet documentation, this event class is handled briefly.
ThanksHi pscorca,
This event is raised when the storage engine reads data from an aggregation, it may have a negative impact on performance when turned on. If you need to monitor SSAS instance status, we can also use dynamic management view:
Use Dynamic Management Views (DMVs) to Monitor Analysis Services:
http://msdn.microsoft.com/en-us/library/hh230820.aspx
Regards,
Elvis Long
TechNet Community Support -
Migration Assistant: Problems transferring data from PC (XP SP3) to new Mac Pro 2012 - can not get Migration Assistant to work as PC will not display verfify passcode
Hello, I am having problems migrating data from my old PC running XP (SP3) to my new Mac Pro 2012 using the Migration Assistant.
- I downloaded and installed the Windows Migration Assistant from Apple
- My Mac recognized PC and displays passcode
- The sasscode does not show / display on my PC
- My Mac is then stuck in "authenticating" loop and the PC is stuck "waiting for Mac to connect."
- Both computers are connected on same network (have connected PC on WIFI and using ethernet to Reuter)
I have looked on support site and only response I saw says to reinstall Windows Migration Assistant (which I have done)
Any ideas? If cant get this to workare there instructions for manually bring across relevant data eg itunes music and apps, photos, picasa data etc?Why not turn off the Windows firewall and uninstall any other firewall software you have installed?
If you are using a Norton product uninstall it and discard it. To fully unistall most Norton products you have to go to the Norton website and download a soecial program to completely get rid of it. The normal uninstall feature built into the program will not remove all of it. -
Retriving data from database using JDBC and mysql.
st=con.createStatement();
st.executeUpdate("INSERT INTO temperature(`temp`) VALUES ('"+name+"')"); ResultSet rs = st.executeQuery("Select * from temperature");
String s1="";
while(rs.next())
s1= rs.getString(1);
document.write(s1+"-----------------------------");
}when i am retriving data from data base i am getting data which i inserted before.how to display present inserted data? i heard we should use scrollable.can any one how to do this.
Date&time: Thu Feb 28 18:41:40 PST 2008 -----------------------------NANDA----------------------------
[[email protected]----1name=2name=3name=4name=5name=6-----------------------------
1123456-----------------------------123456-----------------------------1,2,3,4,5,20-----------------------------Hi,
st=con.createStatement();
st.executeUpdate("INSERT INTO temperature(`temp`) VALUES ('"+name+"')");
//Changes in the query
ResultSet rs = st.executeQuery("Select * from temperature where temp ='"+name+"' ");
String s1="";
while(rs.next())
s1= rs.getString(1);
document.write(s1+"-----------------------------");
//Select * from temperature where temp ='"+name+"'
The above query which results the last updated information
Maybe you are looking for
-
Cannot delete more than 4 e-mails from trash folder in one go
When I try to delete more than 4 e-mails in one go from the trash folder on my Sony Xperia Z2, the e-mail software crashes with the message: 'Unfortunately, E-mail has stopped'. Is this a bug everyone is experiencing on the Z2?
-
Setting up TC on N (5 GHz), with older AirPort Extreme and Express on B/G
Hi there, I've done a search through the forums (and the net) to see if I can find a solution to my query, but the answer currently escapes me so I thought I'd ask outright.... I have recently purchased a Time Capsule. Previously my wireless network
-
So, about a week ago I did a fresh install of 64-bit Windows 7 Ultimate on a new PC, and subscribed to the Adobe Creative Cloud, installing After Effects CS6 and Photoshop CS6 from the Adobe Application Manager, then doing all updates (and I just che
-
i have native elements i wish to include in one of my JApplets I've tested the DLL using a command line style program, and it connects fine. Hence I am confident the DLL itself was built properly. However, when i use an init() method instead of a mai
-
Resetting default name/location for published SWFs - how?
I have several FLA files that have had the default name and location for the published SWF changed from the default (which normally saves the published SWF with the same file name as the originating FLA and in the same location). I want to use these