Problem in accessing data to remote pc
Hi,
I have a problem on accessing file on the remote pc, im using
coldfusion
then im trying to get file from a remote pc but its not
working im using
cfdirecrtory can somebody help me in my problem please...
Thanks in advance,,
john
check that the user CF is running under has proper
permissions to access
the remote location. CF runs as a local user, so would not
normally
have access rights to remote locations...
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
Similar Messages
-
Performance problem when accessing data reside in sql server2005
I'm using oracle 11g installed on windows 2008 R2 platform .
i was created link to sql 2005 using gateway 11g and it work normal .
my problem is when I'm trying to access data using where clause containing OR operator like this :
select * from tb@dg4msql where field1 = 'a' or field2 = 'a'
this query takes long times to be respond .
but this problem does not appear when using AND operator .
please if any body can help me to resolve this problem .you need to check if the query using the OR operator is post processed. Post processing means ALL records from the remote foreign database stored in the affected table are transferred into the local Oracle db and the result is then processed locally. Depending on the amount of data this might take a while.
A way to check the statement sent to the remote database if it includes the OR operater is to use explain plan or you can also set the gateway tracing to status ON. -
Problem while accessing object in remote database
Hi All,
We have a procedure "UPDATE_CONV_DETAILS" created in the remote databse in the "apps" schema. The synonym for the procedure is created in the billing schema(present in the remote database). A dblink is created the local database through which we are tring to access the remote object "UPDATE_CONV_DETAILS".
Dblink script:
create public database link PRE_TO_CEL
connect to BILLING
identified by BILLING
using 'MAP1';
When trying to access the object from the local machine using the schema name.object_name it works fine:
SQL> DESC APPS.UPDATE_CONV_DETAILS@PRE_TO_CEL
PROCEDURE APPS.UPDATE_CONV_DETAILS@PRE_TO_CEL
Argument Name Type In/Out Default?
IN_MOBILE VARCHAR2 IN
IN_SERVICE_CODE VARCHAR2 IN
IN_STATUS VARCHAR2 IN
OUT_ERROR_CODE NUMBER OUT
But when trying the access the same object using the synonym_name it gives the error:
SQL> DESC UPDATE_CONV_DETAILS@PRE_TO_CEL
ERROR:
ORA-04043: object APPS.UPDATE_CONV_DETAILS does not exist
Regards,
KirtiYou have two schema.
apps
billing
both reside in remote database.
there on procedure and on procedure u create one synonym and u want to access it.
ur remote database name is "map1"
on ur local database ur create one dblink to access remote database.
ORA-04043: object string does not exist
Cause: An object name was specified that was not recognized by the system. There are several possible causes:
- An invalid name for a table, view, sequence, procedure, function, package, or package body was entered. Since the system could not recognize the invalid name, it responded with the message that the named object does not exist.
- An attempt was made to rename an index or a cluster, or some other object that cannot be renamed.
Action: Check the spelling of the named object and rerun the code. (Valid names of tables, views, functions, etc. can be listed by querying the data dictionary.) -
Problem in accessing Data Source Deployed in JBoss using JNDI
Hi everybody!
I need your help in the next question:
I have created a data source to connect to my MySql data base using the following entry in mysql-ds.xml (JBOSS 3.2.5)
<datasources>
<local-tx-datasource>
<jndi-name>MySqlDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/mytest</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>1</password>
</local-tx-datasource>
</datasources> in Eclipse SDK 3.1.2 i trying get access to the datasource
InitialContext initialContext = new InitialContext();
DataSource ds = (DataSource)initialContext.lookup("java:/MySqlDS");
if (ds != null) {
result = ds.getConnection();
System.out.println("OK");
else {
System.out.println("Failed to lookup datasource.");
} http://localhost:8080/jmx-console service = JNDI name equal "java:/MySqlDS"
I have error "Cannot get connection: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial"
Error happen in
DataSource ds = (DataSource)initialContext.lookup("java:/MySqlDS");I trying
DataSource ds = (DataSource)initialContext.lookup("MySqlDS");and i had such error.
Can anybody help me?hi,
please check is your error corrected
public class DBConnection {
static DataSource dataSource = null;
* To get the datsource
public static DataSource getDatasource() {
InitialContext ctx=null;
if (dataSource == null){
try {
ctx=new InitialContext();
dataSource = (DataSource) ctx.lookup("java:/MySqlDS");
} catch (Exception e) {
System.out.println("eror in DataSource class"+e);
try {
ctx.close();
} catch (Exception e) {
System.out.println("eror in DataSource class context closing"+e);
return dataSource;
* To get connection from Database.
public static Connection getConnection() {
Connection con = null;
DataSource dataSource = null;
try {
dataSource =getDatasource();
con = dataSource.getConnection();
} catch (SQLException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
return con;
if you want a connetion then call Connection con=DBConnection .getConnection()
hope this helps you -
Having problem with accessing data in CRM machine
Hi,
I have a search functionality which searches for the records existing depending on the Id number passed... But every time i am trying to execute the BAPI it is giving me an
"Internal Server Error" if there are records existing for the given ID number...
But for any other ID number which does not have any records, the BAPI is executed.. Can anyone help me out with this...hi,
Quite literally an "Internal Server Error" is an error on the server that you're trying to access. That server is misconfigured in some way that is preventing it from responding properly to what you're asking for.
sometime it may arise due to cache, but i am not sure about your case.
try accessing bapi from r/3 for both the condition, if it gets executed well then it is some server error or cache error
hope it helps
regards -
Problem running Access 2013 on a Remote Desktop
Folks:
We have Office 2013 Pro installed on a Windows 2008 R2 server running Remote Desktop Services. Multiple people log into the server through Citrix XenApp and use the Office applications without problem. Every few weeks (and sometimes few days),
the Access 2013 gets funky -- buttons disappear, tables and queries don't show up in the navigation bar after they are created. Has anyone else seen this and is there a solution to this problem? Please advise.
Thanks,
DDD
Debbie Data ArchitectDoes this only happen when you access via a remote desktop connection? what if you access it locally?
Probably install all available updates and then try again. Also, troubleshooting on the add-ins aspect and see if any of the third party add-in is causing the issue. -
Problem while accessing a complex data type
hi,
I am getting a problem while accessing a complex data type
I have a wsdl as:
<?xml version="1.0" encoding="UTF-8" ?>
- <definitions name="OutlookReminderService" targetNamespace="http://ws.aftek.com/outlook-reminder" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns2="http://ws.aftek.com/outlook-reminder/schemas" xmlns:ns3="http://java.sun.com/jax-rpc-ri/internal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ws.aftek.com/outlook-reminder" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <types>
- <schema targetNamespace="http://ws.aftek.com/outlook-reminder/schemas" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://ws.aftek.com/outlook-reminder/schemas" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<import namespace="http://java.sun.com/jax-rpc-ri/internal" />
- <complexType name="TaskVO">
- <sequence>
<element name="dueDate" type="long" />
<element name="percentageComplete" type="int" />
<element name="priorty" type="int" />
<element name="reminderDate" type="long" />
<element name="reminderSet" type="boolean" />
<element name="startDate" type="long" />
<element name="status" type="int" />
<element name="subject" type="string" />
<element name="taskId" type="string" />
</sequence>
</complexType>
- <complexType name="NoSuchUserException">
- <sequence>
<element name="message" type="string" />
</sequence>
</complexType>
- <complexType name="ArrayOfContactVO">
- <complexContent>
- <restriction base="soap11-enc:Array">
<attribute ref="soap11-enc:arrayType" wsdl:arrayType="tns:ContactVO[]" />
</restriction>
</complexContent>
</complexType>
- <complexType name="ContactVO">
- <sequence>
<element name="birthDate" type="long" />
<element name="companyAddress" type="string" />
<element name="companyName" type="string" />
<element name="emailID1" type="string" />
<element name="emailID2" type="string" />
<element name="emailID3" type="string" />
<element name="faxNumber" type="string" />
<element name="firstName" type="string" />
<element name="homeAddress" type="string" />
<element name="lastName" type="string" />
<element name="middleName" type="string" />
<element name="mobileNumber" type="string" />
<element name="phoneNumber" type="string" />
<element name="workContactNumber" type="string" />
</sequence>
</complexType>
</schema>
- <schema targetNamespace="http://java.sun.com/jax-rpc-ri/internal" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://java.sun.com/jax-rpc-ri/internal" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<import namespace="http://ws.aftek.com/outlook-reminder/schemas" />
- <complexType name="arrayList">
- <complexContent>
- <extension base="tns:list">
<sequence />
</extension>
</complexContent>
</complexType>
- <complexType name="list">
- <complexContent>
- <extension base="tns:collection">
<sequence />
</extension>
</complexContent>
</complexType>
- <complexType name="collection">
- <complexContent>
- <restriction base="soap11-enc:Array">
<attribute ref="soap11-enc:arrayType" wsdl:arrayType="anyType[]" />
</restriction>
</complexContent>
</complexType>
</schema>
</types>
<message name="OutlookServer_addTaskResponse" />
- <message name="OutlookServer_getListResponse">
<part name="result" type="ns3:arrayList" />
</message>
- <message name="OutlookServer_getContactListResponse">
<part name="result" type="ns2:ArrayOfContactVO" />
</message>
- <message name="NoSuchUserException">
<part name="NoSuchUserException" type="ns2:NoSuchUserException" />
</message>
- <message name="OutlookServer_getContactList">
<part name="String_1" type="xsd:string" />
</message>
- <message name="OutlookServer_getList">
<part name="String_1" type="xsd:string" />
</message>
- <message name="OutlookServer_addTask">
<part name="String_1" type="xsd:string" />
<part name="TaskVO_2" type="ns2:TaskVO" />
</message>
- <message name="OutlookServer_reminderOccurredResponse">
<part name="result" type="xsd:boolean" />
</message>
- <message name="OutlookServer_reminderOccurred">
<part name="String_1" type="xsd:string" />
<part name="TaskVO_2" type="ns2:TaskVO" />
</message>
- <portType name="OutlookServer">
- <operation name="addTask" parameterOrder="String_1 TaskVO_2">
<input message="tns:OutlookServer_addTask" />
<output message="tns:OutlookServer_addTaskResponse" />
<fault message="tns:NoSuchUserException" name="NoSuchUserException" />
</operation>
- <operation name="getContactList" parameterOrder="String_1">
<input message="tns:OutlookServer_getContactList" />
<output message="tns:OutlookServer_getContactListResponse" />
<fault message="tns:NoSuchUserException" name="NoSuchUserException" />
</operation>
- <operation name="getList" parameterOrder="String_1">
<input message="tns:OutlookServer_getList" />
<output message="tns:OutlookServer_getListResponse" />
<fault message="tns:NoSuchUserException" name="NoSuchUserException" />
</operation>
- <operation name="reminderOccurred" parameterOrder="String_1 TaskVO_2">
<input message="tns:OutlookServer_reminderOccurred" />
<output message="tns:OutlookServer_reminderOccurredResponse" />
<fault message="tns:NoSuchUserException" name="NoSuchUserException" />
</operation>
</portType>
- <binding name="OutlookServerBinding" type="tns:OutlookServer">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="addTask">
<soap:operation soapAction="" />
- <input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
</input>
- <output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
</output>
- <fault name="NoSuchUserException">
<soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="NoSuchUserException" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
</fault>
</operation>
- <operation name="getContactList">
<soap:operation soapAction="" />
- <input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
</input>
- <output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
</output>
- <fault name="NoSuchUserException">
<soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="NoSuchUserException" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
</fault>
</operation>
- <operation name="getList">
<soap:operation soapAction="" />
- <input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
</input>
- <output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
</output>
- <fault name="NoSuchUserException">
<soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="NoSuchUserException" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
</fault>
</operation>
- <operation name="reminderOccurred">
<soap:operation soapAction="" />
- <input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
</input>
- <output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
</output>
- <fault name="NoSuchUserException">
<soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="NoSuchUserException" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
</fault>
</operation>
</binding>
- <service name="OutlookReminderService">
- <port binding="tns:OutlookServerBinding" name="OutlookServerPort">
<soap:address location="http://truptid:8080/outlook-reminder-service/outlook" />
</port>
</service>
</definitions>
My client is :
private static String BODY_NAMESPACE_VALUE = "http://ws.abc.com/outlook-reminder";
private static String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri";
private static String NS_XSD = "http://www.w3.org/2001/XMLSchema";
private static String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
try{
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(new QName("OutlookReminderService"));
QName port =new QName("OutlookReminderService","OutlookServerPort");
Call call =service.createCall(port);
call.setTargetEndpointAddress("http://localhost:8080/outlook-reminder-service/outlook?wsdl");
call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
call.getReturnType();
call.setOperationName(new QName(BODY_NAMESPACE_VALUE, "getList"));
QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");
call.addParameter("String_1", QNAME_TYPE_STRING, ParameterMode.IN);
//http://ws.aftek.com/outlook-reminder/schemas
QName QNAME_TYPE_VO = new QName("http://schemas.xmlsoap.org/soap/encoding/", "Array");
System.out.println("Before Add Parameter");
// call.addParameter("result", QNAME_TYPE_VO, ParameterMode.OUT);
call.setReturnType(QNAME_TYPE_VO,ArrayList.class);
System.out.println("After Add Parameter");
Object[] params ={oUserVO.getUserName()};
oArrayList =(ArrayList)call.invoke(params);
System.out.println("After Invoked");
//System.out.println("invoked"+ arrayList);
catch(SOAPFaultException faultException)
moLogger.debug("SOAPFaultException : ", faultException);
catch(RemoteException oremoteException)
moLogger.debug("RemoteException", oremoteException);
catch(ServiceException oServiceException)
moLogger.debug("ServiceException", oServiceException); }
Error got is :
trailing block elements must have an id attribute
at com.sun.xml.rpc.encoding.SOAPDeserializationContext.deserializeMultiRefObjects(SOAPDeserializationContext.java:81)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:239)
at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:103)
at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:492)
at com.ail.dhg.poc.business.dao.ContactDAO.getList(ContactDAO.java:255)
at com.ail.dhg.poc.business.facade.ContactFacade.getList(ContactFacade.java:189)
at com.ail.dhg.poc.business.AcceptInput.main(AcceptInput.java:72)
java.lang.NullPointerException
at com.ail.dhg.poc.business.dao.ContactDAO.getList(ContactDAO.java:277)
at com.ail.dhg.poc.business.facade.ContactFacade.getList(ContactFacade.java:189)
at com.ail.dhg.poc.business.AcceptInput.main(AcceptInput.java:72)
Message was edited by:
trupti_dUse lower case letters for your variable names (name, pwd). The code works then.
package com.bluenile.bean;
import java.io.*;
public class Bean1 implements Serializable
private String name="Uname";
private String pwd="Pword";
public String getName()
return name;
public String getPwd()
return pwd;
void setName(String name)
this.name = name;
void setPwd(String pwd)
this.pwd = pwd;
<HTML>
<BODY BGCOLOR="#FFFFFF">
<%@ page language="java" contentType="text/html" %>
<jsp:useBean id="b1" class="com.bluenile.bean.Bean1" />
<ul>
<li>Name : <jsp:getProperty name="b1" property="name" />
<li>Pwd : <jsp:getProperty name="b1" property="pwd" />
</ul>
</BODY>
</HTML> -
How can I notify staff of updated data if they do not have access to the remote data?
We have a shortcoming on one of our major programs that will not be fixed for at least one year. I want to create a notice for staff when there are pending requests for local offices. I am using a remote view to check if there are new requests from
local offices:
SELECT xxx_yyyyy_request_queue.COMMENTS;
FROM xxx_yyyyy_REQUEST_QUEUE xxx_yyyyy_request_queue;
WHERE xxx_yyyyy_request_queue.MODIFIED_BY IS NULL
I use the remote view as the data source for a table and have a small window that stays on top that I can see if there is an order. I trigger the remote view using a timer event.
This is fine as a stop-gap. However, I cannot run this on the machines of the staff that need the notice: they do not have the correct version of Oracle, they do not have access to that remote data, we do not want multiple machines triggering the same query
every 15 seconds, etc.
Is there a way that I can notify other users of the change in the data fro the remote view. My original thought was to update a local table with the view reults and have a companion routine notify them of changes to that table. However, I do not see how
the SQL used by VFP accomodates the "INTO" clause.
Your help is appreciated.data.
At least your query seems to get data where MODIFIED_BY IS NULL, doesn't it?
So if the reccount is>0 there is a reason to inform your employees.
Bye, Olaf.
Olaf Doschke - TMN Systemberatung GmbH
http://www.tmn-systemberatung.de -
ADS, Problem accessing data from Destination
Hello All,
I'm facing an error when executing transaction TRIP.
If I use the standard Adobe form it's OK no error.
If I use a Z-form copy of this standard form (after doing customizing in PE03) I have an error message: Error while initiating travel form
When I was deeper in the debugging I found that there was an exception rose which is:
ADS: com.adobe.ProcessingException: com.adobe.ProcessingException: Problem accessing data from Destination: ...
I found some threads talking about ADS and transaction SM59u2026
When testing the connection in tx SM59 I have an error message 403: forbidden access
Is it the cause of the error generated in TRIP tx?
If yes why using the standard form works fine??
Thank you in advance for your help.
Regards,
Moez.Hello Otto,
Yes I'm using the same user for the two forms.
It works for the standard form and not for the Z-form.
That's why I'm expecting a customizing issue to resolve this problem.
All solution that I found are talking about administration and Visual Admin tool.
Regards,
Moez. -
SYSTEM ERROR : com/adobe.processingexception:Problem accessing data from De
Hi SAP Guru,
We have configured ADOBE for separate ABAP server and Java Server.
But when I am execution report FP_TEST_00 getting below error
ADS: com.adobe.ProcessingException: Problem accessing d(200101) Message no. FPRUNX001
FP_CHECK_DESTINATION_SERVICE
FP_CHECK_HTTP_DATA_TRANSFER giving error
SYSTEM ERROR : com/adobe.processingexception:Problem accessing data from Destination dest :FP_ICF_DATA_IP1//sap/bc/fp/form/layout/FP_FORM_SECURITY_TEST.XDP?fp-language=DE
But report fp_pdf_test_00 is giving postive response.
I have troubles hooted according to note 944221 , my configuration is ok but no success.
Please help to resolve this issue.Hi,
Check your ADS Connection .
Do one thing
Go to T-code "SM59" - "RFC Destinations (Display/Maintain)"
select "HTTP Connections to External Server" - > ADS
Double click there and check the all the settings " Administrations " , Technical setting , Logon and security , Special option .
Please check the log on and pass word with the help of your SAP BASIS consultant it will work fine . -
Com.adobe.processingException : Problem accessing data from destination
hi guys,
i have an ECC 6.0 server(db : sql) and i am getting the below error while testing the destination service
(((com.adobe.processingException:Problem accessing data from destination
dest: fp_icf_data_isp)))
i checked rfc connection and it is working fine .
i dont remember the ADS_AGENT password for checking the user.but i have provided all the required roles for that.
please guide me to resolve this issueHi
When you say you checked the rfc are you refering to the one in SM59? The fp_icf_data_isp should be an entry in the visual admin of the server that runs the ADS. In the visual admin under server->services->destinations goto to the http folder and check that there is an entry with that name there. Also the address should be http://<host of abap system>:<abap http port> and the client field and username field should be filled in.
Regards
Thashin -
This error message has many threads. However, I have not seen any postings for NW CE 7.1. The configuration for this version of JAVA and ADS is very different from any of the documentation that we have found. We suspect a config issue but cannot find any pertinent documentation for ADS configuration and NW CE 7.1 (we are SP11).
Where can we find ADS configuration documentation for NW CE 7.1?
Please help.
So far, we are mainly using test FP_CHECK_DESTINATION_SERVICE which seems to prove that the destination configuration is the problem. Fortunately, some of the configuration was automated. But not all.Thanks for the help, so far. I have gotten one step closer by manually starting all processes and services related to Adobe Document Services. CE 7.1 is quite a bit different.
I can now get a byte count returned with the test FP_CHECK_DESTINATION_SERVICE in SE38 without checking the "with destination service" box. When I check the box, I still get the "Problem accessing data from Destination: dest:FP_ICF_DATA_<SID>//sap/bc/fp/ message".
The problem is related to the return of the rendering service from the Java side via the Java destination service.
Note that the ABAP side with the problem is ECC 6.0 EHP3 SP1. -
Problem getting correct data from MS Access after doing an Update
Hi all,
I have a problem getting correct data after doing an update. This is the scenario
I am selecting some(Eg: All records where Column X = �7� ) records and update a column with a particular value (SET Column X = �c� ) in all these records by going through a while loop. In the while loop I add these records to a vector too, and pass it as the return value.
After getting this return value I go through a for loop and get each record one by one from the DB and check if my previous update has actually happened. Since No errors were caught while updating DB, I assume all records are updated properly but my record set shows one after another as if it has not been updated. But if I open the DB it is actually updated.
This does not happen to all records, always it shows like this
1st record Mode = �c�
2nd record Mode = �7�
3st record Mode = �c�
4nd record Mode = �7�
9th record Mode = �c�
10th record Mode = �7�
I am relatively new to java and this is someone elses code that I have to modify,So I am not sure if there some thing wrong in the code too
//Here is the method that gets records and call to update and add to vector
public static Vector getCanceledWorkOrders() throws CSDDBException{
//Variable declaration
try {
objDBConn = DBHandler.getCSDBCon();
strSQL = "SELECT bal bla WHERE [Detailed Mode])=?)";
objStmt = objDBConn.prepareStatement(strSQL);
objStmt.setString(1, '7');
objWOPRs = objStmt.executeQuery();
while (objWOPRs.next()) {
//Add elements to a vector by getting from result set
//updating each record as PROCESSING_CANCELLED_WO(c)
iRetVal = WorkOrderDetailingPolicy.updateRecordStatus(objPWODP.iWorkOrderNumber, objPWODP.strPersonInformed, EMSConstants.PROCESSING_CANCELLED_WO);
if (iRetVal == -1) {
throw new NewException("Updating failed");
catch (Exception e) {
vecWONumbers = null;
throw new CSDDBException(e.getMessage());
}finally{
try {
objWOPRs.close();
objStmt.close();
DBHandler.releaseCSDBCon(objDBConn);
catch (Exception ex) {}
//return vector
//here is the code that actually updates the records
public static int updateRecordStatus(int iWONumber, String strPerInformed , String strStatus) throws CSDDBException{
PreparedStatement objStmt = null;
Connection objDBConn = null;
String strSQL = null;
int iRetVal = -1;
try{
objDBConn = DBHandler.getCSDBCon();
objDBConn.setAutoCommit(false);
strSQL = "UPDATE Table SET [Detailed Mode] = ? WHERE bla bla";
objStmt = objDBConn.prepareStatement(strSQL);
objStmt.setString(1, strStatus);
objStmt.execute();
objDBConn.commit();
iRetVal = 1;
}catch(Exception e){
iRetVal = -1;
}finally{
try{
objStmt.close();
DBHandler.releaseCSDBCon(objDBConn);
}catch(Exception ex){}
return iRetVal;
//Here is the code that call the records again
public static WorkOrderDetailingPolicy getWorkOrders(int iWorkOrderNo) throws CSDDBException{
Connection objDBConn = null;
PreparedStatement objStmt = null;
ResultSet objWOPRs = null;
WorkOrderDetailingPolicy objPWODP = null;
String strSQL = null;
try {
objDBConn = DBHandler.getCSDBCon();
strSQL = "SELECT * FROM [Work Order Detailing] WHERE [Work Order No] = ?";
objStmt = objDBConn.prepareStatement(strSQL);
objStmt.setInt(1, iWorkOrderNo);
objWOPRs = objStmt.executeQuery();
if (objWOPRs.next()) {
objPWODP = new WorkOrderDetailingPolicy();
objPWODP.iWorkOrderNumber = objWOPRs.getInt("Work Order No");
//......Get Record values
catch (Exception e) {
objPWODP = null;
throw new CSDDBException(e.getMessage());
}finally{
try {
objWOPRs.close();
objStmt.close();
DBHandler.releaseCSDBCon(objDBConn);
catch (Exception ex) {}
return objPWODP;
}Hello,
Can you put an example of your problem online?
Are you sure you're not having problems with case sensitive data?
Thanks,
Dimitri -
Problem while displaying all the table names from a MS Access Data Source.
I started preparing a small Database application. I want to display all the Table Names which are in the 'MS Access' Data Source.
I started to executing by "Select * from Tab" as if in SQL.
But i got an error saying that "Not able to resolve Symbol 'Tab' in the query".
Please let me know how can i display all the table Names in the MS Access Dats Source.Here i am developing the application in Swing using JDBC for accessing the database.
I want to display all the Table names from the data source in a ListBox for easy selection of tables to view their details. -
Access MS Access database on remote computer (shared folder)
Hello,
I need some help.
I've made a program and it works fine on my computer, but multiple users will be using program simultaneously, each one on his own computer conected over local network to mine computer (database is on my computer in shared folder).
When I try to access data on database (path is path of shared folder) i'm getting error 5013 (no database). The problem occurs only when I'm trying to read something from MS access database but not if I try to read data from .txt file, then it works fine...
I'm using ADO Tools
Can someone help me, I would be very greatful?
Solved!
Go to Solution.Thanks to you Dennis I've managed to figure it out.
I'll explain this for future generations
1) I've created DSN. To do that open ODBC Data Source Administrator:
- for 64 bit app C:\Windows\System32\odbcad32.exe
- for 32 bit app C:\Windows\SysWOW64\odbcad32.exe
In System DSN tab click Add.. then choose Microsoft Access Driver (*.mdb) (If you do not have this on list download that drivers from web) --> FINISH.
Enter Data Source Name (mine is Test2) --> Select... --> now because the MS Access database is on shared folder on remote PC go to Network... --> Browse... and select that shared folder --> Finish. Now you'll see all .mdb files on that folder and you choose your database --> OK --> OK --> OK
2) Now in block diagram you connect string "DSN=your_dsn_name;" (mine was Test2) to ConnectionString connector of ADO Connection Open.vi
It worked for me.
Pis
Attachments:
MS Access database on remote computer (local network).jpg 114 KB
Maybe you are looking for
-
All, If this isn't the best forum to post in, please let me know. I am having an issue when I accept calendar invites in the native/modern application for calendaring in Win 8.1. Whenever I then go back to open and view the contents of a meeting, all
-
can anybody please help me ive read most articles about this topic but nothing seems to work my ipods battery died and i got sent a replacement one and i installed the software again but i have not been able to load the new on onto itunes. when i con
-
Should SE03 be given to developers or consultant ?
hi, should SE03 be given to developers or consultant ? because i find that they can actually access to "client setting" (SCC4) from SE03. SE03 --> Set System Change Option --> Client setting comment and advice will be highly appreciated. thanks. rega
-
APEX and ORA-24247: network access denied by access control list (ACL)
Hi, I try to send email with APEX. I have enter the parameters of my mail server and activate the email on my application. I have follow the APEX installation guide and apply the script given in the "Granting Connect Privileges" section. When I try t
-
My Blackberry Torch has Java error - cannot start it
Every time I try to start up my blackberry, I get the following error message: "Uncaught exception; java.lang.ArrayIndexOutofBounds Exception ". As soon as I hit okay, the error message comes up again. Eventually, the phone just reboots and starts