Pls help: R16 AccountId Missing?!
We have been using the same code for almost a year. Recently it stopped working. As far as i know these are the changes that were made (told to me by administrator):
1. The instance was upgraded by OnDemand to R16
2. Authentication Type changed to “User ID/PWD or Single Sign-On”
3. at the user level we have the Authentication Type not set
Again this code was workign for a year. Is there some problem with R16?
ALL the properties come back fine (account name, address, OwnerID etc..) however for AccountId we're getting an empty string...
We're using C# with the 1.0 WSDL (it wasn't called 1.0 before obviously)
Any help is truly truly appreciated.
After a ton of testing we have identified that the old service stopped working properly. This is very bad... as the theory would be any changes moving forward would leave the legacy app working... but as illustrated it does not. As far as we can tell, the ONLY thing affected was the Account.AccountId
If we use a more-recent 1.0 WSDL the ID is returned properly, but if we use the original WSDL we obtained from Oracle then the ID does not appear.
Digging into the autogenerated Reference.cs we can see that:
AccountWS_AccountQueryPage_Output AccountQueryPage(--bracket--System.Xml.Serialization.XmlElementAttribute(Namespace="urn:crmondemand/ws/account/10/2004")--bracket-- AccountWS_AccountQueryPage_Input AccountWS_AccountQueryPage_Input) { }
STOPPED WORKING
and
public AccountWS_AccountQueryPage_Output AccountQueryPage(--bracket--System.Xml.Serialization.XmlElementAttribute(Namespace="urn:crmondemand/ws/account/")--bracket--AccountWS_AccountQueryPage_Input AccountWS_AccountQueryPage_Input) { }
Works
So the ws/account/10/2004 stopped working (no longer returns AccountId), we assume this was messed up with the R16 upgrade.
Hopefully this will help someone save a ton of stress... though for us it meant reviewing, testing and re-deploying code that was working for over a year.
Edited by: user2696391 on Apr 22, 2009 12:22 PM
Similar Messages
-
PLS HELP - Column value missing when calling procedure from Oracle OLEDB provider
When calling procedure 'sp_a(?,?,?)' from SQL_PLUS and using
DBMS.OUTPUT to print the result
It returns a result set as
C0, C1, C2
But When I call the same procedure 'sp_a(?,?,?)' with same
parameter value from MS VB6,
It returns the a result set as
C0, Null,C2
The 2nd value became Null.
Any ideas?
Please Help.See http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/forms-personalization-execute-a-procedure-1778674
-
Hi,
first one is old query ,I re write this query as second query with using WITH clause,Both are returning same rows but Oder is missing,
Java developers need same order.Could you pls help to get same order for second query as 1st query .And i tried Order by clause for second query all possibilities but i did't get same order as 1st.
*1st query*
SELECT a.test_session_id, c.roster_domain_name, a.sem
FROM test_session_detail a, test_session b, test_detail c
WHERE a.test_session_id = b.test_session_id
AND c.test_detail_id = a.test_detail_id
AND EXISTS
(SELECT td.test_detail_id
FROM test_detail td
WHERE domain_map_id IS NOT NULL
AND c.test_detail_id = td.test_detail_id
AND domain_map_id IN ('303', '306', '305', '304'))
AND b.test_session_id IN ('4047','4086','4087','4165','4167','4169')
AND domain_group_id NOT IN
(SELECT domain_group_id
FROM test_session_detail a, test_session b
WHERE a.test_session_id = b.test_session_id
AND a.domain_group_id IS NOT NULL
AND b.test_session_status_id = 4
AND a.test_session_status_id <> 3
AND b.test_session_id IN
('4047','4086','4087','4165','4167','4169'))
sample output of 1st query
TEST_SESSION_ID ROSTER_DOMAIN_NAME SEM
4047 AR - Integers and Fractions 2
4047 AR - Integers and Fractions 2
4047 AR - Decimal Numbers 1
4047 AR - Decimal Numbers 1
4047 AR - Percent 1
4047 AR - Percent 1.52
4047 AR - Estim, Ordering, Numb. Sense 11.34
4047 AR - Estim, Ordering, Numb. Sense 11.34
4047 AR - Word Problems 0.401
4047 AR - Word Problems 1
4086 AR - Integers and Fractions 1.5
4086 AR - Decimal Numbers 1.342
4086 AR - Percent 1
4086 AR - Estim, Ordering, Numb. Sense 11.34
4086 AR - Word Problems 2second query
WITH exist_1 AS
(SELECT td.test_detail_id
FROM test_detail td
WHERE domain_map_id IS NOT NULL
AND domain_map_id IN ('303', '306', '305', '304')),
domain_group AS
(SELECT domain_group_id
FROM test_session_detail a, test_session b
WHERE a.test_session_id = b.test_session_id
AND a.domain_group_id IS NOT NULL
AND b.test_session_status_id = 4
AND a.test_session_status_id <> 3
AND b.test_session_id IN
('4047','4086','4087','4165','4167','4169'))
SELECT a.test_session_id, c.roster_domain_name, a.sem
FROM test_session_detail a, test_session b, test_detail c,exist_1 ex, domain_group dg
WHERE a.test_session_id = b.test_session_id
AND c.test_detail_id = a.test_detail_id
AND dg.domain_group_id(+) =A.DOMAIN_GROUP_ID
AND dg.domain_group_id IS NULL
AND ex.test_detail_id = c.test_detail_id
AND b.test_session_id IN ('4047','4086','4087','4165','4167','4169')
sample output of second query
TEST_SESSION_ID ROSTER_DOMAIN_NAME SEM
4086 AR - Word Problems 2
4086 AR - Estim, Ordering, Numb. Sense 11.34
4086 AR - Percent 1
4086 AR - Decimal Numbers 1.342
4086 AR - Integers and Fractions 1.5
4047 AR - Word Problems 0.401
4047 AR - Estim, Ordering, Numb. Sense 11.34
4047 AR - Percent 1.52
4047 AR - Decimal Numbers 1
4047 AR - Integers and Fractions 2
4047 AR - Word Problems 1
4047 AR - Estim, Ordering, Numb. Sense 11.34
4047 AR - Percent 1
4047 AR - Decimal Numbers 1
4047 AR - Integers and Fractions 2Hi,
user575115 wrote:
Hi,
Even if i give order by a.test_session_id in both queries not ordering properly in second query as 1st query.When you say
ORDER BY a.test_session_id DESCin your main query, then you can be sure that all the rows where a.test_session_id=4086 will be together, before any rows with a.test_session_id=4047. But if you have 5 rows where a.test_session_id=4086, there is no telling what order those 5 rows will be in, and it will not necessarily be the same every time you run the exact same query with the exact same data. You can ORDER BY additional columns or expressions, even columns or expressions that are not in the SELECT clause.
For example, if you say:ORDER BY a.test_session_id DESC
, a.test_detail_idthen you can be sure the rows where a.test_session_id=4086 will be together, before any rows with a.test_session_id=4047, as before, but you can also be sure that the rows where a.test_session_id=4086 will be in order by a.test_detail_id. If that is not unique, keep adding more columns.
If the ORDER BY clause includes the primary key (or any unique key) from each table, then you can be sure that the results will always be in the same order. -
My video camera button where i can record my own video is missing.pls help!
On camera button.the video recording is missing.pls help where is it now?
i just selected files and imported them on to my external hard drive ( few months ago) 7 deleted trash (lack of space)
A few month ago and lack of space? Then it is unlikely, that data recovery software will be able to restore your movies from areas on your hard drive, that have not yet been overwritten by new data. It's been too long ago.
Do you have a Time Machine backup of your iPhoto library? Restoring from the backup would be the safest option.
when i had time yesterday to go through my drive, i wanted to play some old videos and i realized the video is blank, shows how many minutes long ( 0:45) etc but when i play it its BLACK blank no audio, no video
Please clarify. Which export option did you use exactly, if you can remember after the long time? And what was the format of the movies? How did you take them?
It looks like the videos had been exported as video, in spite of your export setting "jpeg", but the resource fork in the file were missing. This can be caused by moving them to a different drive. If the resource fork is just a link, this can be broken, if a QuickTime movie is moved to a different drive. I have not much hope, but try with one of videos, if it will play, if you move it back to your system drive. If the original movie is still somewhere on your internal drive, that could work. -
My iphone 4 missing idont know ime number pls help me
sir i want your help my iphone missing i dontknow ime and serial number pls help me
Help you what?
You should be able to find your own serial number. it will not help you find the iphone.
iPhone: Locating the serial number, IMEI, ICCID, or MEID -
Just bought iPad mini 2 last week. FaceTime is missing under settings. i can't even find it under restrictions. I have reset it but it's still the same, no facetime. Pls help me...
FaceTime is not available on devices purchased or used in certain countries, including Saudi Arabia and the United Arab Emirates. This is by government decree. The FaceTime app can't be downloaded or installed on these iPads.
Cheers, Tom -
Ava/lang/IllegalArgumentException: Missing protocol separator--pls help
hi guys
i have encounter this error in my coding.i 'm a novice in j2me programming, so pls help me .thanks
Uncaught exception java/lang/IllegalArgumentException: Missing protocol separator.
i think the error is somewhere in that code.
try{
SocketConnection sc = (SocketConnection) Connector.open("socket://localhost:5678",Connector.READ_WRITE);
String uri = "file:c:/commands.txt";
System.out.println("r");
InputConnection conn = (InputConnection)Connector.open( uri,Connector.READ );
int ch;
InputStream in = sc.openInputStream();
OutputStream out=sc.openOutputStream();
while( ( ch = in.read() ) != -1 ){
System.out.print( (char) ch );
out.close();
in.close();
sc.close();
catch(ConnectionNotFoundException e ){}
catch(IOException ioe){}i would really appreciate it if someone would advise me on it.thanksChange the "file:c:/..." to "file://c:/..."
-
Minimise,maximise close icons and task .bar are missing.pls help.
my home page is google.but when i open firefox i dont see it.i cannot see maximise minimise andclose icons too. pls help.
thanks a lot . hitting f11 solved my problem. now may i know how should i make my google home page?pls help.
veena -
Hi - I recently backed up my ipad , then reset it to default settings, now after restoring it on iTunes - I can't find my book and PDF collection in iBooks . Pls help
A backup on your computer's iTunes doesn't include the contents of the iBooks app. Did you do File > Devices > Transfer Purchases to copy your iTunes purchases (that would also copy PDFs and epubs if they were in the iBooks app) over to your computer's iTunes prior to resetting it ? If you did then your books and PDFs should be in the Books part of your computer's iTunes library (or the iBooks app if you are using a Mac with OS X Mavericks on it) - in which case you should be able to sync them back to your iPad.
If you don't have them on your computer then you should (if they are still in your country's store) be able to redownload your ibooks via the Purchased tab in the ibookstore in the app. For your PDFs do you have them anywhere on your PC and/or on a backup drive ? -
pls help me for this issue
You are not addressing Adobe here in the user forums.
BOILERPLATE TEXT:
Note that because this is boilerplate text.
If you give complete and detailed information about your setup and the issue at hand,
such as your platform (Mac or Win),
exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
your settings in Photoshop > Preference > Performance
the type of file you were working on,
machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
what troubleshooting steps you have taken so far,
what error message(s) you receive,
if having issues opening raw files also the exact camera make and model that generated them,
if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
etc.,
someone may be able to help you (not necessarily this poster).
a screen shot of your settings or of the image could be very helpful too.
Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
http://forums.adobe.com/thread/419981?tstart=0
Thanks! -
Java Web Start- Cannot launch Application. Pls help
HI
Ia m beginner in java web start. I creaate a simple swing application and try to launch it through web start. But I failed. My application jar file (sample.jar)contains only class files. No menifest file. Then I sign my "sample.jar" file and placed inside tomcat server: "webapps/root/WebStart/Sample". I also placed the "sample.jnlp" file in the above directory.The name of my main class is :"Sample" .Here is the content of sample.jnlp:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
codebase="http://165.231199.164:8080"
>
<information>
<title>Sample Launching Test</title>
<vendor>FMO</vendor>
<homepage href="www.sun.com" />
<description>Demonstration of JNLP</description>
</information>
<offline-allowed/>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.2+" />
<jar href="/WebStart/Sample/sample.jar"/>
</resources>
<application-desc main-class="Sample" />
</jnlp>Whenever I try to launch this application from the browser , it shows me following :
An error occurred while launching/running the application.
Title: Sample Launching Test
Vendor: FMO
Category: Unexpected Error
RED
Anybody pls help me here about how to Launch my application. Am I missing something?I fixed the porblem by modifying the sample.jnlp file. Here is the latest version:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase=http://[my-ip-address]:8080/WebStart/Sample>
<href="sample.jnlp">
<information>
<title>Sample Launching Test</title>
<vendor>FMO</vendor>
<homepage href="www.sun.com" />
<description>Demonstration of JNLP</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version=1.4+ />
<jar href="sample.jar"/>
</resources>
<application-desc main-class="Sample" />
</jnlp> -
Download ALV to EXcel- Urgent pls help me
Please help me in this...
I have an ALV report around 120 column. The report is displayed perfectly on screen. But when I use the Export option to download as an excel file, some data is missing in SAP No field
For example
My report output is like this
sap No Name Jobdes. Dept
00021 AAA clerk1 FI
00022 BBB clerk1 FI
00023 CCC clerk1 FI
00024 DDD clerk1 FI
00025 EEE clerk1 FI
00026 FFF clerk1 FI
Excel output is
sap No Name Jobdes. Dept
00021 AAA clerk1 FI
Blank BBB clerk1 FI
Blank CCC clerk1 FI
Blank DDD clerk1 FI
00025 EEE clerk1 FI
Blank FFF clerk1 FI
Pls help meHi Kumar,
Pls try the below Function Modules to download the data to excel.
ALSM_EXCEL_TO_INTERNAL_TABLE
KCD_EXCEL_OLE_TO_INT_CONVERT Uploads data directly from Excel sheet
RH_START_EXCEL_WITH_DATA Starts Excel with contents of an internal table
or the below links also might help you.
For uploading Excel to Internal Table??????
Data from Excel sheet to my internal table
Check the following link:
http://www.sap-img.com/abap/upload-direct-excel.htm
or even the below code might be helpful.
Multiple excel sheets generation in a workbook
CREATE OBJECT EXCEL 'EXCEL.SHEET'.
GET PROPERTY OF EXCEL 'Application' = APPLICATION.
SET PROPERTY OF APPLICATION 'Visible' = 1.
CALL METHOD OF APPLICATION 'Workbooks' = BOOKS.
CALL METHOD OF BOOKS 'Add' = BOOK.
CALL METHOD OF BOOK 'WORKSHEETS' = SHEET.
CALL METHOD OF SHEET 'ADD'.
Fill all the sheets with relavant data
PERFORM SHEET1 TABLES ITAB1.
PERFORM SHEET2 TABLES ITAB2.
PERFORM SHEET3 TABLES ITAB3.
PERFORM SHEET4 TABLES ITAB4.
Quit the excel after use
CALL METHOD OF EXCEL 'QUIT'.
FREE OBJECT: COLUMN,SHEET,BOOK,BOOKS,APPLICATION,EXCEL. "NO FLUSH.
CLEAR V_SHEET.
FORM FILL_CELL USING ROW COL VAL.
CALL METHOD OF SHEET 'cells' = CELL NO FLUSH
EXPORTING #1 = ROW #2 = COL.
SET PROPERTY OF CELL 'value' = VAL.
FREE OBJECT CELL NO FLUSH.
ENDFORM. " FILL_CELL
FORM SHEET1 TABLES ITAB1 STRUCTURE ITAB1.
V_SHEET = Sheet Name.
V_NO = V_NO + 1.
CALL METHOD OF BOOK 'worksheets' = SHEET NO FLUSH EXPORTING #1 = V_NO.
SET PROPERTY OF SHEET 'Name' = V_SHEET NO FLUSH.
PERFORM FILL_SHEET1 TABLES ITAB1 USING V_NO V_SHEET.
CALL METHOD OF SHEET 'Columns' = COLUMN.
FREE OBJECT SHEET.
CALL METHOD OF COLUMN 'Autofit'.
FREE OBJECT COLUMN.
ENDFORM.
Repeat above procedure for all sheets you want to add
FORM FILL_SHEET1
TABLES ITAB1 STRUCTURE ITAB1
USING V_NO V_SHEET.
ROW = 1.
PERFORM FILL_CELL USING ROW 1 'Column1 Name'.
PERFORM FILL_CELL USING ROW 2 'Column2 Name'.
PERFORM FILL_CELL USING ROW 3 'Column3 Name'.
ROW = ROW + 1.
LOOP AT ITAB1.
PERFORM FILL_CELL USING ROW 1 ITAB1-Column1.
PERFORM FILL_CELL USING ROW 2 ITAB1-Column2.
PERFORM FILL_CELL USING ROW 3 ITAB1-Column3.
ROW = ROW + 1.
ENDLOOP.
ENDFORM.
Repeat above procedure for all sheets you want to add
Try this also
TYPE-POOLS: truxs.
DATA: it_raw TYPE truxs_t_text_data.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
field_name = 'P_FILE'
IMPORTING
file_name = p_file.
Upload Excel file
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
I_FIELD_SEPERATOR =
i_line_header = 'X'
i_tab_raw_data = it_raw
i_filename = p_file
TABLES
i_tab_converted_data = i_XCEL[]
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Pls reward if useful.
THanks,
Sirisha -
Pls Help me made big mistake !
hello,
here's what happened ... without reason my computer set itself back to factory settings .. so everything lost, my document, my settings in iphoto, itunes, you know the whole lot but luckily for my i was using my external hard drive for iphoto ... but now i wanted to import my pictures again in iphoto but it started to import to whole files which i don't want, i want to keep my big files on the hard drives and my smaller files on my computer ! but now when i tried to import again it says "unreadable files. the following file could not be imported (the file is in the iphoto library folder) /volumes/big brother (which is my hard drive btw)/iphoto library".
so anyone who can help me pls ...
and also while i'm here ... i have an ibook G4, with 30 GB of disk space but only 1.5 GB left and i don't have any big files on my computer, just some programs (no pictures or anything mayor) is there maybe something that i'm missing ... ?
so that's my story ... pls help me !Hi jeroen_maes,
I think you had your problem because you are so low on disk space. You need to clean out your hard drive and make more space. I think the case with iPhoto is just your preferences weren't saved so iPhoto forgot where your library was.
Launch iPhoto with the Option key depressed until you get a message window. In that window choose to open another library, then navigate to the external and highlight the iPhoto Library folder and click "open" Hopefully your library will open.
As for your disk space, check out this link;
Freeing space on your Mac OS X startup disk -
My dad would like to have a camera on his iPad 1 , he would not leave his iPad 1 for a new version. Pls solve my problem as he is emotionally attached to his iPad 1 since its the first tablet from Apple he won't let it go......pls help !!!!!
iPad 1 does not have a camera and there is no way to add one
tp the iPad. You have 2 choices: stay with iPad 1 without camera
or update to new version with camera.
If you are near an Apple store or Apple authorized retailer, take him
in so he can play with a newer model - that might change his mind
about upgrading. Or have a friend with a newer iPad visit your father
and show him what he is missing. -
Hi guys, i basically need to retrieve some data into a table from the database(mySql). but the data just cant be out. i need help from you all :).
basically i have a form package, entity package, controller package, sqlAction package(where it calls things form the sql) and lastly dbController package. pls help me to see what have i miss out or done wrong, thanks a million!
Form Package:
package form;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import sqlAction.EventLogAction;
import controller.EventLogController;
import entity.EventLog;
private JTable getJTable_viewLog() {
if (jTable_viewLog == null) {
jTable_viewLog = new JTable();
int row = 0;
int col = 0;
String [] colName = {"Event ID", "Source","Event Description","Date Time", "IP"};
EventLog newEventLog = new EventLog();
EventLogController EventLogController = new EventLogController();
for (int i =0; i < row; i++) {
for (int j = 0; j < col; j++) {
data[i][j] = newEventLog.getEID();
data[i][j] = newEventLog.getESource();
data[i][j] = newEventLog.getEEvent();
data[i][j] = newEventLog.getEDateTime();
data[i][j] = newEventLog.getEIPAdd();
EventLogAction e = new EventLogAction();
e.getViewLog(newEventLog);
jTable_viewLog = new JTable(new DefaultTableModel(data,colName)){
* Prevent table from being edited.
private static final long serialVersionUID = 1L;
public boolean isCellEditable(int row, int col) { return false; }
jTable_viewLog.setBounds(new java.awt.Rectangle(27,30,450, 230));
return jTable_viewLog;
}Entity Package:
package entity;
public class EventLog {
private String eID;
private String eSource;
private String eEvent;
private String eDateTime;
private String eIPAdd;
public String getEID() {
return eID;
public void setEID(String eid) {
eID = eid;
public String getESource() {
return eSource;
public void setESource(String source) {
eSource = source;
public String getEEvent() {
return eEvent;
public void setEEvent(String event) {
eEvent = event;
public String getEDateTime() {
return eDateTime;
public void setEDateTime(String dateTime) {
eDateTime = dateTime;
public String getEIPAdd() {
return eIPAdd;
public void setEIPAdd(String add) {
eIPAdd = add;
}Controller Package:
package controller;
import sqlAction.EventLogAction;
import entity.EventLog;
public class ViewEventLogController {
public void processGetViewLog(String eID,
String eSource,
String eEvent,
String eDateTime,
String eIPAdd)
EventLog viewEve = new EventLog();
EventLogAction va = new EventLogAction();
viewEve.setEID(eID);
viewEve.setESource(eSource);
viewEve.setEEvent(eEvent);
viewEve.setEDateTime(eDateTime);
viewEve.setEIPAdd(eIPAdd);
va.createEventPerform(viewEve);
}sqlAction Package:
package sqlAction;
import dbController.DBController;
import entity.EventLog;
import java.sql.*;
import java.util.*;
public class EventLogAction {
private String eID;
private String eSource;
private String eEvent;
private String eDateTime;
private String eIPAdd;
private static EventLog newEventLog;
public EventLogAction(){}
public EventLogAction(String eID, String eSource, String eEvent, String eDateTime, String eIPAdd){ this.eID = eID;
this.eSource = eSource;
this.eEvent = eEvent;
this.eDateTime = eDateTime;
this.eIPAdd = eIPAdd;
public EventLog getViewLog(EventLog viewEve){
// Code to access db
ResultSet rs = null;
String dbQuery = "SELECT * FROM EventLog";
DBController db = new DBController();
System.out.println(dbQuery);
db.setUp("cryptocrestSQL");
rs = db.readRequest(dbQuery);
try{
if (rs.next()){
String eID = rs.getString("eID");
String eSource = rs.getString("eSource");
String eEvent = rs.getString("eEvent");
String eDateTime = rs.getString("eDateTime");
String eIPAdd = rs.getString("eIPAdd");;
EventLog el = new EventLog();
el.setEID(eID);
el.setESource(eSource);
el.setEEvent(eEvent);
el.setEDateTime(eDateTime);
el.setEIPAdd(eIPAdd);
}catch (Exception e) {
e.printStackTrace();
db.terminate();
return newEventLog;
public String getEID() {
return eID;
public void setEID(String eid) {
eID = eid;
public String getESource() {
return eSource;
public void setESource(String source) {
eSource = source;
public String getEEvent() {
return eEvent;
public void setEEvent(String event) {
eEvent = event;
public String getEDateTime() {
return eDateTime;
public void setEDateTime(String dateTime) {
eDateTime = dateTime;
public String getEIPAdd() {
return eIPAdd;
public void setEIPAdd(String add) {
eIPAdd = add;
}dbController Package:
package dbController;
* Program Name : DBController.java
* Description: DBController class to access the database.
* Remember to set up the odbc using control panel.
import java.sql.*;
public class DBController {
private Connection con;
private ResultSet rs;
* Method Name : setUp Input
* Parameter : String (Data Source Name)
* Purpose : Load the database driver and establish connection
* Return : nil
public void setUp(String dsn) {
// load the database driver
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
} catch (Exception e) {
System.out.println("Load driver error");
// after loading the driver, establish a connection
try {
String s = "jdbc:odbc:" + dsn;
con = DriverManager.getConnection(s, "", "");
System.out.println("connection is " + s);
} catch (Exception e) {
e.printStackTrace();
* Method Name : getColumnNames
* Purpose : Obtain the column names of the result set
* Return : Array of String
public String[] getColumnNames() {
String[] columnNames = null;
try {
// Get result set meta data
ResultSetMetaData rsmd = rs.getMetaData();
columnNames = new String[rsmd.getColumnCount()];
// Get the column names; column indices start from 1
for (int i = 0; i < columnNames.length; i++) {
columnNames[i] = rsmd.getColumnName(i + 1);
} catch (SQLException e) {
System.out.println("Error in getColumnNames() in DBController");
e.printStackTrace();
return columnNames;
* Method Name : readRequest
* Input Parameter : String (database query)
* Purpose : Obtain the result set from the db query
* Return : resultset (records from the query)
public ResultSet readRequest(String dbQuery) {
ResultSet rs = null;
System.out.println("DB Query: " + dbQuery);
try {
// create a statement object
Statement stmt = con.createStatement();
// execute an SQL query and get the result
rs = stmt.executeQuery(dbQuery);
this.rs = rs;
} catch (Exception e) {
e.printStackTrace();
return rs;
* Method Name : updateRequest Input Parameter : String (database query) Purpose :
* Execute udpate using the db query Return : int (count is 1 if successful)
public int updateRequest(String dbQuery) {
int count = 0;
// System.out.println("DB: " + dbQuery);
try {
// create a statement object
Statement stmt = con.createStatement();
// execute an SQL query and get the result
count = stmt.executeUpdate(dbQuery);
} catch (Exception e) {
e.printStackTrace();
return count;
* Method Name : terminate
* Input Parameter : nil
* Purpose : Close db conection
* Return :nil
public void terminate() {
// close connection
try {
con.close();
System.out.println("Connection is closed");
} catch (Exception e) {
e.printStackTrace();
} // end of DBControllerEdited by: Titus-tan on Jul 9, 2008 1:33 AMFirst off, your code style sucks. Consistent indentation would be nice. Don't mix spaces and tabs.
package form;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.JLabel;
import javax.swing.JTextField;At this point, you've already imported JLabel and JTextField, no need to do it again.
jTable_viewLog.setBounds(new java.awt.Rectangle(27,30,450, 230));Don't use setBounds to set the size of a Swing component, it'll just get wiped out when the layout manager does its thing.
Use setPreferredSize instead.
As for your database class, why are you passing queries into it? It should know how to pull the data out of the database and keep its queries internal.
Not only will it be a cleaner design, you significantly reduce the possibility of executing bad queries. Also, PreparedStatements are almost always preferred
over normal Statements, especially when combined with parameterized queries. Go google "Bobby Tables" if you don't understand why.
Now then, what is it doing and what did you expect it to be doing?
Maybe you are looking for
-
I need help creating a list of vertical clickable buttons in an aside
OK so here is the setup for this site I am working on. http://www.bestmarketingnames.com/default2.php I need to change that list on the left side into real buttons with destination when you click them. Here is a link that i have been tinkering with.
-
CDs are not importing anymore!
Now I dont know if this is a hardware or software issue because this is a new laptop and I hadnt used iTunes 7 prior... But a lot of my CDs just wont import in iTunes. I put the disc in, the drive spins very fast, making lots of noise, then iTunes st
-
Placeholders in Email templates - Marketing
Hi everyone, Does anyone know if it's possible to add custom placeholders in the email templates for Marketing Campaigns? (menu: Marketing->Content->Email templates) If this is not possible, does anybody know if we can add code, through the SDK, duri
-
JMS adapters in a fault tolerant environment
Hi, I am working on some IDOC <> XI <> JMS scenario's in a SONICMQ fault tolerant invironment, meaning that on communication channel level hostname should be dynamic. XI is sending to SONIC when JMS system a is down send to system b.... Any suggestio
-
Using messaging gatewway in oracle
HI as we know Messaging Gateway defines canonical types to support message conversion between Advanced Queuing and non-Oracle messaging systems what are the different canonical types in oracle 9i rel2 as we have MGW_BASIC_MSG_T which supports convers