Client not passing data to server
ok so this time i'm up for a server/client basic connection. I get the codes to compile; however, when i run the server then the client (using 2 different cmd prompts) i get the inputdialog but it hangs from there and does nothing. Its something in the buffer but not sure what.
client:
import javax.swing.JOptionPane;
import java.io.*;
import java.net.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class PalindromeIgnoreNonAlphanumeric {
/** Main method */
public static void main(String[] args) {
try{
Socket socket = new Socket("localhost", 8000);
DataInputStream in = new DataInputStream(socket.getInputStream());
DataOutputStream out = new DataOutputStream(socket.getOutputStream());
// Prompt the user to enter a string
String s = JOptionPane.showInputDialog("Enter a string:");
out.writeChars(s);
out.flush();
boolean fromserver = in.readBoolean();
JOptionPane.showMessageDialog(null, "Your input" + s + "was sent to the server, and the server replied. Is it a palindrome? " + fromserver);
catch(IOException ex){
System.err.print(ex);
finally{
System.out.print("Connection to server closed");
}server:
import java.io.*;
import java.net.*;
import java.util.*;
import java.awt.*;
import javax.swing.*;
import java.io.InputStream.*;
public class PalindromeServer
public static void main(String[] args)
try{
/*set the port and tell the server to start accepting sockets*/
ServerSocket server = new ServerSocket(8000);
Socket socket = server.accept();
/* set the In and outputs */
BufferedReader input = new BufferedReader(new InputStreamReader(socket.getInputStream()));
DataOutputStream output = new DataOutputStream(socket.getOutputStream());
/*Read in the data from the client*/
String s = input.readLine();
output.writeBoolean(isPalindrome(s));
catch(IOException ex){
System.err.print(ex);
/** Return true if a string is a palindrome */
public static boolean isPalindrome(String s)
// Create a new string by eliminating non-alphanumeric chars
String s1 = filter(s);
// Create a new string that is the reversal of s1
String s2 = reverse(s1);
// Compare if the reversal is the same as the original string
return s2.equals(s1);
/** Create a new string by eliminating non-alphanumeric chars */
public static String filter(String s)
// Create a string buffer
StringBuilder strBuf = new StringBuilder();
// Examine each char in the string to skip alphanumeric char
for (int i = 0; i < s.length(); i++)
if (Character.isLetterOrDigit(s.charAt(i)))
strBuf.append(s.charAt(i));
// Return a new filtered string
return strBuf.toString();
/** Create a new string by reversing a specified string */
public static String reverse(String s)
StringBuilder strBuf = new StringBuilder(s);
strBuf.reverse(); // Use the reverse method for StringBuilder object
return strBuf.toString();
}
On the client side you send characters. No line break.
Meanwhile the server code is blocking waiting for a line break.
and do look into closing some resources.
Similar Messages
-
Can not pass data after while loop
Hello.
I have created a VI for my experiment and am having problem passing data outside a while loop to save on an excel file. The VI needs to first move a probe radially, take data at 1mm increment, then move axially, take data radially at 1mm increment, then move to the next axial position and repeat. It would then export these data to an excel file. The VI is a little complicated but it's the only way I know how to make it for our experiment. I have tested it and all the motion works correctly, however I can not get it to pass the data after the last while loop on the far right of the VI where I have put the arrows (Please see the attached VI ). Is it because I'm using too many sequence, case, and while loops? If so, what other ways can I use to make it export data to the excel file?
Any help would be appreciated.
Thank you,
Max
Attachments:
B.Dot.Probe.Exp.vi 66 KBUmmmm .... gee, I'm not even sure where to begin with this one. Your VI is well .... ummmm... You have straight wires! That's always nice to see. As for everything else. Well... Your fundamental problem is lack of understanding of dataflow programming. What you've created is a text program. It would look fantastic in C. In LabVIEW it makes my heart break. For a direct answer to your question: Data will not show up outside a while loop until the while loop has completed. This means your most likely problem is that the conditions to stop that specific loop are not being met. As for what the problem is, I don't even want to start debugging this code. Of course, one way to pass data outside of loops is with local variables, and hey, you seem to be having so much fun with those, what's one more?
This may sound harsh, and perhaps be somewhat insulting, but the brutal truth is that what I would personally do is to throw it out and to start using a good architecture like a state machine. This kind of framework is easy to code, easy to modify, and easy to debug. All qualities that your code seems to lack.
Message Edited by smercurio_fc on 08-17-2009 10:00 PM -
TCP Communication Problem - not passing data???
Hello.
I am working on TCP communication. I need to pass data from one PC to another and vise versa. I started with the shipped example TCP Communicator Active and Passive VI. Using the shipped example only with the Wireless Unit connected to both PC i am able to communicate and pass data between each PC.
Now, placing the shipped example VI to my Main VI (separate while loop), I am NOT able to make it run properly. What happens is even if i move the control data on one PC it does not update to the other PC.
I am attaching the example VI and I would appreciate for any advise.
Thank you very much.
regards,
jtc
Attachments:
TCP Communicator Active.vi 51 KB
TCP Communicator Passive.vi 53 KBHi jtc,
"if you need to share data aquiired rapidly, a work-around is to accumulate the acquired data and send larger "bundles" less frequently" - do you have a simple example VI for this?
No! - though we could develop something - but a solution for the current example, might not be helpful to your final program. For instance, we would capture & accumulate a "batch" of data "produced" by individual user actions, then send the "batch" of data to the other machine and what? Perform all the updates to the GUI in rapid succession (what's the point?.) Show the last user action/setting?
It might be a good time to develop the architecture for the Master and Slave applications.
This sounds like an interesting application! Do you mind sharing some detail? For instance, are the slaves generating data? Are there a fixed number of slaves? Is it necessary to mirror the Master's data on all the connected slaves?
Like Johnny-5 said: "Input, I need Input!"
Cheers!
Message Edited by tbd on 10-17-2008 08:29 PM
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare) -
Instant Client not working on Windows Server 2003
Hi everybody,
I have installed the Instant Client libraries on a machine running Windows Server 2003 in order to connect to a remote Oracle server. I also installed the sqlplus package. I copied them in a local directory, updated the Environment variable PATH and restarted. When I try to execute sqlplus to test if everything works fine, I get the following errors:
sqlplus user/[email protected]:1521/orcl
SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly
Also, when I try to use PHP OCI8 functions like oci_connect() I get an error like:
PHP Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries
I checked it and the PATH variable points to the instant client libraries.
Any ideas?
Thanks in advance!I get the following errors: sqlplus user/[email protected]:1521/orcl SP2-1503: Unable to initialize Oracle call interface SP2-0152: ORACLE may not be functioning properly Also, when I try to use PHP OCI8 functions like oci_connect......Like the error suggested, the instant client libraries does not include the Network Service required by SQLPLUS.
The connect string you are trying to use doesn't work for SQLPLUS. SQLPLUS will need proper TNS names configured.
In another words, instanct client libraries installation is not enough to use sqlplus. Use Runtime installation or Customized installation. -
Server 2012 R2 DHCP Failover - Hot Standby clients not renewing with standby server
In my test network I have a pair of Server 2012 R2 DHCP servers setup for Hot Standby and they will successfully service a client request for a new request.
What I am seeing is that when I test failover the clients will not renew with the Standby server. I have to release first and then renew.
When both DHCP servers are up the state is normal and replication of configuration from the Active to Standby is working. As far as I can tell it is configured correctly.
MaxClientLeadTime is 10 minutes.
StateSwitchInterval is 10 minutes.
AutoStateTransition is set to True.
Adding that manual renews fail with a message stating that it was unable to contact the dhcp server. However if I wait for the lease to expire/auto-renew the dhcp server does indeed change to the standby. Once the primary server comes back up and the state
returns to normal I am able to manually renew.
thanks in advance
Hi,
For test, we let the active DHCP down and the standby DHCP server will take place. But when we renew an IP, client send unicast to the former DHCP
server. That’s why the first request failed.
At 7/8 of the scope lease time, the client moves into a REBINDING state and broadcasts a lease renewal request.
For more information please refer to:
DHCP Failover Examples
http://technet.microsoft.com/en-us/library/dn338973.aspx
Hope this helps. -
Just similar to setup the Local/Group policy 'Don't remember last login information'
Please advise
Thanks in advance ...Hi,
The default server and the server lists are written by design in Windows, which is located in registry at:
HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default
You can delete them manually but this effect won’t persist after next remote desktop logon. The key will be recreated and save your choices of remote servers. Therefore, I’m afraid there is no policy or method to disable this feature. A possible workaround
is to save an empty .RDP file and deploy it to all the client sides, then let all the users use this one in order to avoid remote server being saved.
For more information on this behavior, please refer to:
How to Remove Entries from the Remote Desktop Connection Computer Box
http://support.microsoft.com/kb/312169
Remote Desktops always remembers “last server accessed”
http://social.technet.microsoft.com/Forums/en-US/w7itproui/thread/e608a423-ccfa-4207-b5d0-ff9605337f6c/
Regards,
Miya
Miya Yao
TechNet Community Support -
ICal clients not linking to iCal server after server migration to 10.6.1
Over the weekend I upgraded our server from 10.5.8 to 10.6.1. For almost everything the upgrade went flawlessly.
Except none of my iCal clients can connect. I get:
+"The server responded with an error.+
+The connection to the server (server name) was refused."+
Any ideas what might be causing it??I think we need more information on what troubleshooting steps you've tried. For example, what pertinent messages, if any, are showing in the caldavd logs? Have you tried to telnet to the appropriate port on the server to ensure that it's open? Is there an SSL mismatch between the server and client? If you open iCal on the server itself and try to set up a CalDAV account, does that work?
-
WSUS Windows 7 Client not connecting with WSUS SERVER 2012 R2 Error " 80072ee2"
Hi ,
I Have the Non- AD WSUS server 2012 R2 as WSUS server, and widnows 7 ent sp1 as WSUS Client , the server and client are in teh same ip range and able to ping both server from client and client from server, and both are in teh
same time zone(EST), But im getting the "80072ee2" when ever i tried to get the updates from client
Please help me on this
Thanks
Balaji KRecord the system time of the Windows 7 client.
Reboot the Windows 7 client.
Run this command from a command prompt: wuauclt /resetauthorization /detectnow.
Wait =30= minutes.
Post the entries from the WindowsUpdate.log starting at the time recorded in Step #1.
I have noted the time at 12:06 am and reboot the machine. and at 12:27 i have Run this command from a
command prompt: wuauclt /resetauthorization /detectnow. and taken the the logs from 11 am to 1 pm
2015-02-03 12:15:26:002
956 f84
Misc WARNING: Send failed with hr = 80072ee2.
2015-02-03 12:15:26:002
956 f84
Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
2015-02-03 12:15:26:002
956 f84
PT + Last proxy send request failed with hr = 0x80072EE2, HTTP status code = 0
2015-02-03 12:15:26:002
956 f84
PT + Caller provided credentials = No
2015-02-03 12:15:26:002
956 f84
PT + Impersonate flags = 0
2015-02-03 12:15:26:002
956 f84
PT + Possible authorization schemes used =
2015-02-03 12:15:26:002
956 f84
PT WARNING: GetConfig failure, error = 0x80072EE2, soap client error = 5, soap error code = 0, HTTP status code = 200
2015-02-03 12:15:26:002
956 f84
PT WARNING: PTError: 0x80072ee2
2015-02-03 12:15:26:002
956 f84
PT WARNING: GetConfig_WithRecovery failed: 0x80072ee2
2015-02-03 12:15:26:002
956 f84
PT WARNING: RefreshConfig failed: 0x80072ee2
2015-02-03 12:15:26:002
956 f84
PT WARNING: RefreshPTState failed: 0x80072ee2
2015-02-03 12:15:26:002
956 f84
PT WARNING: PTError: 0x80072ee2
2015-02-03 12:15:26:002
956 f84
Report WARNING: Reporter failed to upload events with hr = 80072ee2.
2015-02-03 12:27:05:651
956 ca8
AU Triggering AU detection through DetectNow API
2015-02-03 12:27:05:651
956 ca8
AU Triggering Online detection (non-interactive)
2015-02-03 12:27:05:652
956 930
AU #############
2015-02-03 12:27:05:652
956 930
AU ## START ## AU: Search for updates
2015-02-03 12:27:05:652
956 930
AU #########
2015-02-03 12:27:05:654
956 930
AU <<## SUBMITTED ## AU: Search for updates [CallId = {710EE50A-0397-4DC8-B33B-B97410B73C00}]
2015-02-03 12:27:05:654
956 f84
Agent *************
2015-02-03 12:27:05:654
956 f84
Agent ** START ** Agent: Finding updates [CallerId = AutomaticUpdates]
2015-02-03 12:27:05:654
956 f84
Agent *********
2015-02-03 12:27:05:654
956 f84
Agent * Online = Yes; Ignore download priority = No
2015-02-03 12:27:05:654
956 f84
Agent * Criteria = "IsInstalled=0 and DeploymentAction='Installation' or IsPresent=1 and DeploymentAction='Uninstallation' or IsInstalled=1 and DeploymentAction='Installation' and RebootRequired=1 or IsInstalled=0
and DeploymentAction='Uninstallation' and RebootRequired=1"
2015-02-03 12:27:05:654
956 f84
Agent * ServiceID = {3DA21691-E39D-4DA6-8A4B-B43877BCB1B7} Managed
2015-02-03 12:27:05:654
956 f84
Agent * Search Scope = {Machine}
2015-02-03 12:27:05:678
956 f84
Setup Checking for agent SelfUpdate
2015-02-03 12:27:05:678
956 f84
Setup Client version: Core: 7.5.7601.17514 Aux: 7.5.7601.17514
2015-02-03 12:27:29:233
956 f84
Misc WARNING: Send failed with hr = 80072ee2.
2015-02-03 12:27:29:233
956 f84
Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
2015-02-03 12:27:29:233
956 f84
Misc WARNING: WinHttp: SendRequestUsingProxy failed for <http://135.155.61.172:8530/selfupdate/wuident.cab>. error 0x80072ee2
2015-02-03 12:27:29:234
956 f84
Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072ee2
2015-02-03 12:27:29:234
956 f84
Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072ee2
2015-02-03 12:27:29:234
956 f84
Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072ee2
2015-02-03 12:27:52:795
956 f84
Misc WARNING: Send failed with hr = 80072ee2.
2015-02-03 12:27:52:795
956 f84
Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
2015-02-03 12:27:52:795
956 f84
Misc WARNING: WinHttp: SendRequestUsingProxy failed for <http://135.155.61.172:8530/selfupdate/wuident.cab>. error 0x80072ee2
2015-02-03 12:27:52:796
956 f84
Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072ee2
2015-02-03 12:27:52:796
956 f84
Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072ee2
2015-02-03 12:27:52:796
956 f84
Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072ee2
2015-02-03 12:28:16:363
956 f84
Misc WARNING: Send failed with hr = 80072ee2.
2015-02-03 12:28:16:363
956 f84
Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
2015-02-03 12:28:16:364
956 f84
Misc WARNING: WinHttp: SendRequestUsingProxy failed for <http://135.155.61.172:8530/selfupdate/wuident.cab>. error 0x80072ee2
2015-02-03 12:28:16:364
956 f84
Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072ee2
2015-02-03 12:28:16:364
956 f84
Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072ee2
2015-02-03 12:28:16:364
956 f84
Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072ee2
2015-02-03 12:28:39:920
956 f84
Misc WARNING: Send failed with hr = 80072ee2.
2015-02-03 12:28:39:920
956 f84
Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
2015-02-03 12:28:39:920
956 f84
Misc WARNING: WinHttp: SendRequestUsingProxy failed for <http://135.155.61.172:8530/selfupdate/wuident.cab>. error 0x80072ee2
2015-02-03 12:28:39:921
956 f84
Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072ee2
2015-02-03 12:28:39:921
956 f84
Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072ee2
2015-02-03 12:28:39:921
956 f84
Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072ee2
2015-02-03 12:28:39:921
956 f84
Misc WARNING: DownloadFileInternal failed for http://135.155.61.172:8530/selfupdate/wuident.cab: error 0x80072ee2
2015-02-03 12:28:39:921
956 f84
Setup WARNING: SelfUpdate check failed to download package information, error = 0x80072EE2
2015-02-03 12:28:39:921
956 f84
Setup FATAL: SelfUpdate check failed, err = 0x80072EE2
2015-02-03 12:28:39:922
956 f84
Agent * WARNING: Skipping scan, self-update check returned 0x80072EE2
2015-02-03 12:28:39:923
956 f84
Agent * WARNING: Exit code = 0x80072EE2
2015-02-03 12:28:39:923
956 f84
Agent *********
2015-02-03 12:28:39:923
956 f84
Agent ** END ** Agent: Finding updates [CallerId = AutomaticUpdates]
2015-02-03 12:28:39:923
956 f84
Agent *************
2015-02-03 12:28:39:923
956 f84
Agent WARNING: WU client failed Searching for update with error 0x80072ee2
2015-02-03 12:28:39:924
956 fec
AU >>## RESUMED ## AU: Search for updates [CallId = {710EE50A-0397-4DC8-B33B-B97410B73C00}]
2015-02-03 12:28:39:924
956 fec
AU # WARNING: Search callback failed, result = 0x80072EE2
2015-02-03 12:28:39:924
956 fec
AU # WARNING: Failed to find updates with error code 80072EE2
2015-02-03 12:28:39:924
956 fec
AU #########
2015-02-03 12:28:39:924
956 fec
AU ## END ## AU: Search for updates [CallId = {710EE50A-0397-4DC8-B33B-B97410B73C00}]
2015-02-03 12:28:39:924
956 fec
AU #############
2015-02-03 12:28:39:925
956 fec
AU Successfully wrote event for AU health state:0
2015-02-03 12:28:39:925
956 fec
AU AU setting next detection timeout to 2015-02-03 21:23:35
2015-02-03 12:28:39:926
956 fec
AU Successfully wrote event for AU health state:0
2015-02-03 12:28:39:928
956 fec
AU Successfully wrote event for AU health state:0
2015-02-03 12:29:03:495
956 f84
Misc WARNING: Send failed with hr = 80072ee2.
2015-02-03 12:29:03:495
956 f84
Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
2015-02-03 12:29:03:496
956 f84
PT + Last proxy send request failed with hr = 0x80072EE2, HTTP status code = 0
2015-02-03 12:29:03:496
956 f84
PT + Caller provided credentials = No
2015-02-03 12:29:03:496
956 f84
PT + Impersonate flags = 0
2015-02-03 12:29:03:496
956 f84
PT + Possible authorization schemes used =
2015-02-03 12:29:03:496
956 f84
PT WARNING: GetConfig failure, error = 0x80072EE2, soap client error = 5, soap error code = 0, HTTP status code = 200
2015-02-03 12:29:03:496
956 f84
PT WARNING: PTError: 0x80072ee2
2015-02-03 12:29:03:496
956 f84
PT WARNING: GetConfig_WithRecovery failed: 0x80072ee2
2015-02-03 12:29:03:496
956 f84
PT WARNING: RefreshConfig failed: 0x80072ee2
2015-02-03 12:29:03:496
956 f84
PT WARNING: RefreshPTState failed: 0x80072ee2
2015-02-03 12:29:03:496
956 f84
PT WARNING: PTError: 0x80072ee2
2015-02-03 12:29:03:496
956 f84
Report WARNING: Reporter failed to upload events with hr = 80072ee2.
2015-02-03 12:29:03:496
956 f84
Report REPORT EVENT: {B6636CDB-B0BF-4CDE-BEB3-D49C1CEC258F}
2015-02-03 12:28:39:921-0800 1
148 101
{D67661EB-2423-451D-BF5D-13199E37DF28}
1 80072ee2
SelfUpdate Failure
Software Synchronization Windows Update Client failed to detect with error 0x80072ee2.
2015-02-03 12:29:03:510
956 f84
Report CWERReporter::HandleEvents - WER report upload completed with status 0x8
2015-02-03 12:29:03:510
956 f84
Report WER Report sent: 7.5.7601.17514 0x80072ee2 D67661EB-2423-451D-BF5D-13199E37DF28 Scan 101 Managed
2015-02-03 12:29:03:510
956 f84
Report CWERReporter finishing event handling. (00000000)
2015-02-03 12:29:27:075
956 f84
Misc WARNING: Send failed with hr = 80072ee2.
2015-02-03 12:29:27:075
956 f84
Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
2015-02-03 12:29:27:075
956 f84
PT + Last proxy send request failed with hr = 0x80072EE2, HTTP status code = 0
2015-02-03 12:29:27:075
956 f84
PT + Caller provided credentials = No
2015-02-03 12:29:27:075
956 f84
PT + Impersonate flags = 0
2015-02-03 12:29:27:075
956 f84
PT + Possible authorization schemes used =
2015-02-03 12:29:27:075
956 f84
PT WARNING: GetConfig failure, error = 0x80072EE2, soap client error = 5, soap error code = 0, HTTP status code = 200
2015-02-03 12:29:27:075
956 f84
PT WARNING: PTError: 0x80072ee2
2015-02-03 12:29:27:076
956 f84
PT WARNING: GetConfig_WithRecovery failed: 0x80072ee2
2015-02-03 12:29:27:076
956 f84
PT WARNING: RefreshConfig failed: 0x80072ee2
2015-02-03 12:29:27:076
956 f84
PT WARNING: RefreshPTState failed: 0x80072ee2
2015-02-03 12:29:27:076
956 f84
PT WARNING: PTError: 0x80072ee2
2015-02-03 12:29:27:076
956 f84
Report WARNING: Reporter failed to upload events with hr = 80072ee2.
2015-02-03 12:53:05:793
956 930
AU AU received policy change subscription event
2015-02-03 12:58:26:707
956 8fc
Misc WARNING: Send failed with hr = 80072ee2.
2015-02-03 12:58:26:707
956 8fc
Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
2015-02-03 12:58:26:708
956 8fc
PT + Last proxy send request failed with hr = 0x80072EE2, HTTP status code = 0
2015-02-03 12:58:26:708
956 8fc
PT + Caller provided credentials = No
2015-02-03 12:58:26:708
956 8fc
PT + Impersonate flags = 0
2015-02-03 12:58:26:708
956 8fc
PT + Possible authorization schemes used =
2015-02-03 12:58:26:708
956 8fc
PT WARNING: GetConfig failure, error = 0x80072EE2, soap client error = 5, soap error code = 0, HTTP status code = 200
2015-02-03 12:58:26:708
956 8fc
PT WARNING: PTError: 0x80072ee2
2015-02-03 12:58:26:708
956 8fc
PT WARNING: GetConfig_WithRecovery failed: 0x80072ee2
2015-02-03 12:58:26:708
956 8fc
PT WARNING: RefreshConfig failed: 0x80072ee2
2015-02-03 12:58:26:708
956 8fc
PT WARNING: RefreshPTState failed: 0x80072ee2
2015-02-03 12:58:26:708
956 8fc
PT WARNING: PTError: 0x80072ee2
2015-02-03 12:58:26:708
956 8fc
Report WARNING: Reporter failed to upload events with hr = 80072ee2. -
WAP200E wireless bridge not passing data
Just setup two WAP200E's, the bridge is "Connected" as I look Status > System Performance in both WAP's. However, I cannot get to the LAN from one network to the next. Cannot even ping the WAP's from either side.
I already have two WAP200E's on this network, that have been working well for month (164 day uptime), and they are configured with a wireless bridge between them, both networks on the same LAN (same 192.168.2.x network on either side). The bridge names are different, different from the main WiFi in the building, too (if it makes a difference), and the static IPs the WAPs have don't appear to have any conflicts on the network.
This is actually three buildings, one is the main one with a Cisco SR520 for a router, and a Cisco SF 200-24P switch. So two WAP200E's go into this switch now, and I see them both fine when going into the management interface. Then each of the other buildings has one WAP200E, and a small Netgear 8 port PoE gigabit switch at each building to power the WAP.
The Netgear switches aren't managed, and I've made sure any features like STP, VLANs, etc. are turned off. And the Cisco SF 200 switch is set at auto and all the defaults mostly, particularly for the ports. I tried doing a SmartPort for this latest WAP200E and that didn't change anything, tried disabling STP for it too, and no change. The PoE port for the working WAP200E is identical in config to the PoE port for the new WAP200E, and both show forwarding, all VLANs admitted (none are enabled, no VLAN tagging, etc.).
So now I am wondering if I can have two WAP200E's into one switch? Or two bridges on the same LAN subnet? Or is there something else I am missing or should configure?I just resolved this after reading through the community posts on people not pinging across a wireless bridge. After reading one of them it was suggested to try another channel. Seemed odd since I would see success in and packets and bytes being sent and received in the WAPs.
I ended up changing the SSID name to some a little different an changed the channel from 3 to 10 in both units. Worked instantly and has been rock solid now.
Sent from Cisco Technical Support iPhone App -
RV082 Remote Clients not Able To Access Server
I have a RV082 and several of my remote laptops cannot access my server using its domain name. It can be accessed using its internal ip address. The issue is that you can log onto the server using remote access and the ip however you cannot use any shortcuts using the domain name. You can see the server with the domin name however no access path is available. This is only on a few remote user laptops. Others work perfectly. Does anyone have any advise?
Evans,
Please be details as possible when posting next.
You say some of your remote laptops can't access server via name and some can. How are the computers than can connect to servers name different from the ones that can't?
what connection type are the remote user using to connect to your network?
They using vpn software located on RV082?
IPsec / PPTP both ?
What's the subnet's that the remote computers are remote from ?
whats the local subnet of RV082?
Is the subnet's the same on remote computer as the RV082 ?
What's the WAN type (public) (private ) ip address ?
What's the topology of your network ?
You can also give the Cisco Small Business Support Center a call @ 1-866-606-1866 and get help with your issue as well.
Thanks,
Jasbryan
Cisco Support Engineer
.:|:.:|:. -
Clients not reporting to Site Server
Hi,
in CAS.log i found following error message on every client:
CacheManager: GetSWDistSiteSettings failed with 0x80004005. Default site settings will be used.
and only Computer and User Policy Retrieval Actions appear on Client.
Anyone an idea?ccmmessaging is full of http errors: "Post using <xxx> security context failed due to Integrated Windows Authentication failure ... Post to http://<MP>/ccm_system_windowsauth/request failed with 0x80070005."
Did it ever work? What does mpcontrol.log tell? Any errors in the IIS logfiles?
Torsten Meringer | http://www.mssccmfaq.de -
TCP Callback function passing data to teststand
Hi,
I'm trying to pass data via a TCP Callback function to teststand using the TCP steptype that I downloaded from Ni.
When I open a connection, container data is passed to the dll on which it creates a connection, the dll in part creates a TCP Callback function.
The handle obtained from the connection is then passed back through the container data, and the dll returns back to the sequence editor which will execute the next steps.
The problem is that when the TCP Callback function gets an TCP_READY event it can not pass data to TestStand because it can not access the container data.
How can this TCP Callback function pass/alter data to/in Testand?
Thank you...Yes ThiCop,
That's exactly what I want to establish!
Here is the example code:
//Function needed by the TCP functions
int CVICALLBACK MsgHandler (unsigned handle, int event, int error, void *callbackData)
char receiveBuf[256] = {0};
char displayBuf[7] = {0};
char * tempLookup;
int dataSize = sizeof (receiveBuf) - 1;
switch (event)
case TCP_CONNECT:
break;
case TCP_DISCONNECT:
break;
case TCP_DATAREADY:
if ((dataSize = ClientTCPRead (handle, receiveBuf, dataSize, 1000)) > 0)
// Send data from receiveBuf to a variable in teststand ????
// TS_PropertyGetValString (HandleObject, NULL, "Step.Result.Data", 0, &tempLookup);
// TS_PropertySetValString (HandleObject, NULL, tempLookup, 0, receiveBuf);
else
receiveBuf[dataSize] = '\0';
break;
return 0;
void __declspec(dllexport) TX_TEST TCPConnectF(tTestData * testData, tTestError * testError)
int error = 0;
int TCPerror;
double Port;
double Timeout;
char *HandleLookup;
char *ServerAdd;
char *CallbackData;
ErrMsg errMsg = {'\0'};
ERRORINFO errorInfo;
tsErrChk (TS_PropertyGetValString (testData->seqContextCVI, &errorInfo, "Step.Result.Handle", 0, &HandleLookup));
tsErrChk (TS_PropertyGetValNumber (testData->seqContextCVI, &errorInfo, "Step.Result.Port", 0, &Port));
tsErrChk (TS_PropertyGetValString (testData->seqContextCVI, &errorInfo, "Step.Result.IP", 0, &ServerAdd));
tsErrChk (TS_PropertyGetValNumber (testData->seqContextCVI, &errorInfo, "Step.Result.Timeout", 0, &Timeout));
tsErrChk (TS_PropertyGetValString (testData->seqContextCVI, &errorInfo, "Step.Result.Data", 0, &CallbackData));
TCPerror = ConnectToTCPServer (((unsigned int *) &ConnectionHandle), ((unsigned int) Port), ServerAdd, MsgHandler, 0, Timeout);
if (TCPerror != 0)
//Get TCP Error Message
sprintf(errMsg,"%s",GetTCPErrorString ( TCPerror ));
error = TCPerror;
goto Error;
tsErrChk (TS_PropertySetValNumber (testData->seqContextCVI, &errorInfo, HandleLookup, 0, ((double) ConnectionHandle)));
Error:
// FREE RESOURCES
CA_FreeMemory(HandleLookup);
CA_FreeMemory(ServerAdd);
// If an error occurred, set the error flag to cause a run-time error in TestStand.
if (error < 0)
testError->errorFlag = TRUE;
testError->errorCode = error;
testData->replaceStringFuncPtr(&testError->errorMessage, errMsg);
return; -
Server Socket does not read data input stream
Hi all,
I am very newbie to Java Network programming with sockets and multi-threading.
But I am obliged to develop a chat system written in Applets which can be placed on the website and used by visitors who come to my website.
In order to understand this, I have tested a basic web chat program I downloaded from the Internet which use sockets and multi-threadings. The program work fine, no bugs at all at both compilation and run time. I noticed that all three streams for Client side (i.e. first one is input stream used receiving data from User; the second one is socket input stream used for receiving data from Server socket, and the third is socket output stream used for writing data to server socket) were established. And the same, two socket streams (input & output) for Server side were also connected when running program giving right port number and IP address of the server.
The problem is both server and client sockets do not read data using the following stream classes:
1. DataStreamInput: I use input.readUTF() method
2. or BufferedReader: I use input.readLine() method
The example of the codes are below:
private BufferedReader input = null;
private PrintWriter output = null;
private Socket socket = null;
public void open() throws IOException
{ input = new BufferedReader(new
InputStreamReader(socket.getInputStream()));
System.out.println("Server socket input stream was created, and");
output = new PrintWriter(socket.getOutputStream());
System.out.println("Server socket output stream was created");
public void run()
{ System.out.println("Server Thread " + clientPort + " running.");
while (true)
{ try
System.out.println("Server is reading data from Client, wait...");
String fromClient = input.readLine();
System.out.println("Server received a message on " + clientPort + ".");
catch(IOException ioe)
{ System.out.println(clientPort + " ERROR reading: " + ioe.getMessage());
server.remove(clientPort);
stop();
The problem is at the line: String fromClient = input.readLine(); in the run() method? What is wrong with the codes above?
Note: I also try to use original codes which use readUTF() method in DataStreamInput class instead using readLine() in BufferedReader. Both methods dont read data from inputstream socket?
I very appreciate any help/advice from experienced developers.
Best regardsHi,
Yes. The readLine() method hangs! After the test, the execuation of the program is stopped at the line of readLine() method; it does not pass it?
There is no problem with writing to Server socket. After the test, the program pass through flush() method. Here is the code for writing to sever socket within ChatClient (client side socket) class:
private BufferedReader input = null;
private PrintWriter output = null;
public ChatClient(String serverName, int serverPort)
{ System.out.println("Establishing connection. Please wait ...");
try
{ socket = new Socket(serverName, serverPort);
System.out.println("Connected: " + socket);
start();
catch(UnknownHostException uhe)
{ System.out.println("Host unknown: " + uhe.getMessage()); }
catch(IOException ioe)
{ System.out.println("Unexpected exception: " + ioe.getMessage()); }
public void start() throws IOException
{ input = new BufferedReader (new
InputStreamReader(System.in));
System.out.println("Client User input stream was created,");
output = new PrintWriter(socket.getOutputStream());
System.out.println("Client Socket output stream was established, and");
if (thread == null)
{ client = new ChatClientThread(this, socket);
thread = new Thread(this);
thread.start();
public void run()
while (thread != null) {
String fromUser;
try{
while((fromUser = input.readLine())!= null)
System.out.println("Client wasreading a data from User, and");
output.println(fromUser);
output.flush();
System.out.println("Client has written a data to Server");
catch(IOException ioe)
{ System.out.println("Sending to server error: " + ioe.getMessage());
stop();
etc.
Here is a piece of codes for reading data from the Client Socket in the ChatServer Class (Server Side socket):
public void run()
{ System.out.println("Server Thread " + clientPort + " running.");
while (true)
{ try
{ //server.handle(clientPort, input.readLine());
System.out.println("Server is reading data from Client, wait...");
String fromUser = input.readLine();
//while((fromUser = input.readLine()) != null)
System.out.println("Server received a message on " + clientPort + ".");
catch(IOException ioe)
{ System.out.println(clientPort + " ERROR reading: " + ioe.getMessage());
server.remove(clientPort);
stop();
etc. Please advice why the readLine() method hangs; does not read data from the input stream received from the CLIENT? -
i have modify the data STREET to "ANG MO KIO"
http://i192.photobucket.com/albums/z231/yzme/d1.gif
but the data in server still "HEAVEN ST"
http://i192.photobucket.com/albums/z231/yzme/d2.gif
I am using Time2Way T01, if it is when i sync the data will be uploaded, or do i need to configure somewhere to get the data upload ?
if the data in client and middleware is different, when i sync , the data from the middleware will again download to the client replace the modified values
OR
the data in the client will uploaded to the middleware and trigger the MODIFY bapi wrappers ?
<b>
when i check my MEREP_MON, and MEREP_LOG there is no data inside this meaning after i changed the values and perform the sync, Inbox and Outbox still remain the previous data as well as inside the MEREP_LOG,
is it the bapi wrapper not call by the client ?
</b>
and i find out that my bapi not get called, what additional code should i add instead of the code below.
DO I NEED TO IMPLEMENT SOME CODE FOR UPLOADER ??
do i have to change the reqDirectSync="true", if yes, how do i changed, just change inside the editor, or there is somewhere to configure in sapgui
after i changed the data , i try to sync, and i check on merep_mon
what specific or additional steps i need to configure, on uploader / receiver or synchronizer
<b>i do not implement any syncBoDelta or global reset ?</b>Can someone explain the term "delta" to me and its activities?
if i have upload something, and sync, the Inbox should have something right ??
i just put add this code to modify my records
public String modifyRecord(String eventName,boolean didNavigate){
String syncBoName="ZCON";
String syncKey="0001230297";
tableViewBean.setString(syncBoName +" "+syncKey);
System.out.println("SyncBoName: " +syncBoName + " syncKey: " +syncKey);
tcp = TableContentProvider.instance(syncBoName);
tcp.modifyTable(syncBoName,syncKey); return JSP_DETAIL_SYNCBOINSTANCE;
public void modifyRecord(String syncBoName,String syncKey){
SyncBoDescriptor sbd=null;
sbd=descriptorFacade.getSyncBoDescriptor(syncBoName);
SyncBo sb=null;
try{
System.out.println("bp 2");
sb=dataFacade.getSyncBo(sbd,syncKey);
}catch(PersistenceException pex){
System.out.println("Exception in modifyRecordLoc:" +pex.getMessage());
SmartSyncTransactionManager transactionManager;
try{ transactionManager=dataFacade.getSmartSyncTransactionManager();
if(!transactionManager.isTransactionStarted()){
transactionManager.beginTransaction();
boolean b8=false;
b8=setHeaderFieldValue2(sb,"STREET","ANG MO KIO");
transactionManager.commit();
SetSendType();
listAllOutDelta();
checkInboxConflict();
}catch(Exception e){
System.out.println("Exception in modifyRecordAmt2:" +e.getMessage());
public void checkInboxConflict(){
ErrorConflictInbox errorConflictInbox= SmartSyncRuntime.getInstance().getInboxNotifier().getErrorConflictInbox();
MeIterator iter;
SyncBoResponse resp;
try {
iter= errorConflictInbox.getAllSyncBoResponses();
while(iter.hasNext()){
resp= (SyncBoResponse)iter.next();
String bo=resp.getSyncBoDescriptor().getSyncBoName();//SyncBo Name
String state=resp.getSyncBoResponseState().toString();
String res=resp.getResponseType().toString();//Get the SyncBo response type (conflict or ERROR)
String msg=resp.getText();// This will return the exact message from the server
System.out.println("bo:" +bo +" state: " +state +" res: " +res +" msg:" +msg);
System.out.println("state:" +resp.getSyncBoResponseState().toString());
if(resp.getSyncBoResponseState().equals(SyncBoResponseState.INITIAL)){
String a=resp.getSyncBoResponseState().toString();
resp.acceptClientSyncBo();
String b=resp.getSyncBoResponseState().toString();
resp.delete();
System.out.println("state1: " +a +"state2: " +b);
boolean syncStatusComplete= SmartSyncRuntime.getInstance().getInboxNotifier().isSyncStatusComplete();
System.out.println("syncStatus:" +syncStatusComplete);
}catch (Exception e) {
e.printStackTrace();
public void listAllOutDelta(){
SyncBoOutDeltaFacade deltFac=SmartSyncRuntime.getInstance().getSyncBoOutDeltaFacade();
MeIterator allDelta;
try {
allDelta = deltFac.getAllDelta();
while(allDelta.hasNext()){
SyncBoOutDelta outDelta=(SyncBoOutDelta)allDelta.next();
System.out.println("SyncKey:" +outDelta.getSyncKey() +" Action:" +outDelta.getAction()
+" State:" +outDelta.getStateId() +" SendType:"+outDelta.getSendType());
} catch (SmartSyncException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (PersistenceException e) {
// TODO Auto-generated catch block
e.printStackTrace();
public void SetSendType(){
SmartSyncRuntime ssRuntime = SmartSyncRuntime.getInstance();
SyncBoOutDeltaFacade boDeltaFacade = ssRuntime.getSyncBoOutDeltaFacade();
SyncBoDescriptorFacade descF = ssRuntime.getSyncBoDescriptorFacade();
SyncBoDescriptor myBO = descF.getSyncBoDescriptor("ZCON");
boDeltaFacade.setSendType(myBO, SyncBoOutDeltaSendType.SEND_DIRECT);
//SyncManager.getInstance().synchronizeWithBackend(VisibilityType.USER_SHARED);
public boolean setHeaderFieldValue2(
SyncBo sb,
String headerFieldName,
Object value) {
SyncBoDescriptor sbd = sb.getSyncBoDescriptor();
//RowDescriptor trd = sbd.getTopRowDescriptor();
System.out.println("bp 10");
RowDescriptor trd=sbd.getRowDescriptor("010");
System.out.println("bp 11");
FieldDescriptor fd = trd.getFieldDescriptor(headerFieldName);
System.out.println("fd:" +fd.getFieldName());
if (fd != null) {
BasisFieldType bft = fd.getFieldType();
//Row header = sb.getTopRow();
System.out.println("bp 12");
//Row header = null;
Row[] header=null;
//try {
//header = sb.getRow("0001211181");
//header=sb.getTopRow();
header=getItemInstances(sb,"010");
if(header==null){
System.out.println("is null");
}else{
System.out.println("not null");
//} catch (PersistenceException e1) {
// TODO Auto-generated catch block
// System.out.println("Exception getRow:" +e1.getMessage());
// e1.printStackTrace();
System.out.println("bp 13");
try {
// Integer operator
if (bft == BasisFieldType.N) {
System.out.println("Numeric");
NumericField nf = header[0].getNumericField(fd);
if (nf != null) {
BigInteger ii = new BigInteger(value.toString());
nf.setValue(ii);
return true;
} else {
return false;
// Character operator
if (bft == BasisFieldType.C) {
System.out.println("Character");
CharacterField cf = header[0].getCharacterField(fd);
if (cf != null) {
cf.setValue(value.toString());
return true;
} else {
return false;
// Decimal operator
if (bft == BasisFieldType.P) {
System.out.println("Decimal");
DecimalField df = header[0].getDecimalField(fd);
System.out.println("bp 1.1");
if (df != null) {
System.out.println("bp 1.2");
BigDecimal bd = new BigDecimal(value.toString());
System.out.println("bp 1.3");
df.setValue(bd);
System.out.println("bp 1.4");
return true;
} else {
System.out.println("bp 1.5");
return false;
// Similar operation for time and date operator fields
if (bft == BasisFieldType.D) {
System.out.println("Date");
DateField df = header[0].getDateField(fd);
if (df != null) {
if (value.toString().equals("0")) {
Date dat = Date.valueOf("0000-00-00");
df.setValue(dat);
} else if (!value.toString().equals("")) {
Date dat = Date.valueOf(value.toString());
df.setValue(dat);
} else {
Calendar cal = Calendar.getInstance();
java.sql.Date bd =
new java.sql.Date(cal.getTime().getTime());
df.setValue(bd);
return true;
} else {
return false;
// Similar operation for time and date operator fields
} catch (SmartSyncException ex) {
System.out.println(ex.getMessage());
} catch (PersistenceException e) {
System.out.println(e.getMessage());
return false;
SyncType: T01 Wrapper: GetList,GetDetail,Modify
<?xml version="1.0" encoding="utf-8" ?>
- <MeRepApplication schemaVersion="1.1" id="ZCON" version="01">
<Property name="CLIENT.BUILDNUMBER" />
<Property name="C_APPLRESOLVE" />
<Property name="DATA_VISIBLE_SHARED">X</Property>
<Property name="E_APPLRESOLVE" />
<Property name="FACADE_C_CLIENT">X</Property>
<Property name="FACADE_E_CLIENT">X</Property>
<Property name="HOMEPAGE.INVISIBLE" />
<Property name="INITVALUE" />
<Property name="RUNTIME">JSP</Property>
<Property name="TYPE">APPLICATION</Property>
- <SyncBO id="ZCON" version="1" type="timedTwoWay" allowCreate="false" allowModify="true" allowDelete="false" reqDirectSync="false" downloadOrder="1">
- <TopStructure name="TOP">
- <Field name="SYNC_KEY" type="N" length="10" decimalLength="0" signed="false" isKey="true" isIndex="true">
<Input type="create">false</Input>
<Input type="modify">false</Input>
</Field>
- <Field name="PERSNUMBER" type="N" length="10" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
- <ChildStructure name="010">
- <Field name="SYNC_KEY" type="N" length="10" decimalLength="0" signed="false" isKey="true" isIndex="true">
<Input type="create">false</Input>
<Input type="modify">false</Input>
</Field>
- <Field name="PERSNUMBER" type="N" length="10" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
- <Field name="CITY1" type="C" length="40" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
- <Field name="CITY2" type="C" length="40" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
- <Field name="STREET" type="C" length="40" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
- <Field name="HOUSE_NUM" type="C" length="40" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
- <Field name="REGION" type="C" length="40" decimalLength="0" signed="false" isKey="false" isIndex="false">
<Input type="create">false</Input>
</Field>
</ChildStructure>
</TopStructure>
</SyncBO>
</MeRepApplication>
Message was edited by:
yzme yzme<u>my intention is very simple, i just need to update a field in a row and update to the middleware so that the backend will reflect the changes. </u>
>2 if i set the conflict/error handling to application, then i should have to implement some code for it, right ?
>3) List syncbooutdelta
<b>SyncKey:0001233035 Action:M SendType:SEND</b>
doesnt it mean that when i sync , the uploader will pick up this data and do a modification ??
i have change the metadata like this
<SyncBO id="ZCON" version="1" type="timedTwoWay" allowCreate="false" allowModify="true" allowDelete="false" reqDirectSync=<b>"true" </b>downloadOrder="1">
1) i try to sync the application and check the worklist monitor, there is nothing in the inbox ? how come ?
2)if i test using emulator, i try to modify a value and execute, i am getting the following error.
<u>
Header action from mobile="MOD", R/3 action="ADD"
Return code 1 (DOWNLOADER)
</u>
i try to modify not "Add"
3) I am using Time 2 Way , how to check it is synchronous or asynchronous ? in merep_sbuilder, the default asyn. is checked, meaning async ??
the type is T01 , ASYNC
4)
public void checkInboxConflict(){
ErrorConflictInbox errorConflictInbox= SmartSyncRuntime.getInstance().getInboxNotifier().getErrorConflictInbox();
MeIterator iter;
SyncBoResponse resp;
try {
iter= errorConflictInbox.getAllSyncBoResponses();
while(iter.hasNext()){
resp= (SyncBoResponse)iter.next();
String bo=resp.getSyncBoDescriptor().getSyncBoName();//SyncBo Name
String state=resp.getSyncBoResponseState().toString();
String res=resp.getResponseType().toString();//Get the SyncBo response type (conflict or ERROR)
String msg=resp.getText();// This will return the exact message from the server
System.out.println("bo:" +bo +" state: " +state +" res: " +res +" msg:" +mtext);
boolean syncStatusComplete= SmartSyncRuntime.getInstance().getInboxNotifier().isSyncStatusComplete();
System.out.println("syncStatus:" +syncStatusComplete);
}catch (Exception e) {
e.printStackTrace();
<u>bo:ZCON state: INITIAL res: CONFLICT msg:Conflict: R/3 = delete, device = modify
SyncStatus=true (complete)
</u>
5) after that i change my code to this
while(iter.hasNext()){
if(resp.getSyncBoResponseState().equals(SyncBoResponseState.INITIAL)){
String a=resp.getSyncBoResponseState().toString();
String a1=syncBO.getSyncState().toString();
resp.acceptClientSyncBo(); //No transaction stated to commit
resp.delete();
String b=resp.getSyncBoResponseState().toString();
String b2=syncBO.getSyncState().toString();
System.out.println("state1: " +a +"state2: " +b);
System.out.println("SyncState1: " +a1 +"SyncState2: " +b1);
<u>state1: INITIAL state2: RESOLVED </u>
<u>SyncStatus1:QUANRANTINE SyncStatus2: INCONSISTENT</u>
and i try to sync ...no data in worklist
6)i try to list out all the delta to be uploaded
ListAllOutDelta to be upload
<u>SyncKey:0001233349 Action:I State:99925F8E24DFFE49A4563C5E018E9B61 SendType:SEND
</u>
i am modifying the rows, not Insert a new row, the Action:'I' instead of 'M', pls clarify on this.
after i sync, i found out that there is 2 record with different syncKey but same primary key and all attributes appear to be same except the attribute that i changing.
<u>SYNCKEY PERSNUMBER CITY STREET HOUSENO</u>
0001230298 000000000 HELL <u>ANG MO KIO</u> 0123456789 (modified record)
0001230299 000000000 HELL <u>HEAVEN ST</u> 0123456789(old record)
i check the application and found out that the previous record that i modify have its value changing locally but not updated into the backend, after sync, there is another record downloaded into this application which is the old record before i modify with different syncKey.
but when i check the backend table, there is only 1 record inside, because i dont implement the 'Create' Bapi.
does it make sense ?
7) when i check my client , the data is persisted with modified value , but the changes is not reflected in the server, how come the data in client is not uploaded to the server.
acceptClientSyncBo will make the client wins how come the data is not get updated in server ?
Re: Regarding modifying Sync BO
According to him, can anyone translate the things highlighted below
for modifying one sync bo instance , there is no need to use createUnlinkedCopy()..
just use like this..
sb = dataFacade.getSyncBo(sbd,key);
SmartSyncTransactionManager transactionManager;
transactionManager = dataFacade.getSmartSyncTransactionManager();
transactionManager.beginTransaction();
setHeaderFieldValue(sb,"PERSNUMBER","9866321467");
setHeaderFieldValue(sb,"FIRSTNAME","RajaSekhar");
setHeaderFieldValue(sb,"LASTNAME","Varigonda");
setHeaderFieldValue(sb,"PROFESSION","Technical Specialist");
setHeaderFieldValue(sb,"***","MALE");
setHeaderFieldValue(sb,"BIRTHDAY","1977-09-28");
setHeaderFieldValue(sb,"HEIGHT","165");
setHeaderFieldValue(sb,"WEIGHT","75");
// Commit the transaction
transactionManager.commit();
setHeaderFieldValue - can be used to set value in new sync bo instance , or modify the instance.
<b>
But one main think here have to consider is , if you have created one Sync Bo instance , not synchronized with back end and u have modified that, then thats just like a creation .So during sync this will call Create Bapi Wrapper.
</b>
But after synchronization , is u are modifying that instance , then it is a modification(will call MODIFY Wrapper in back end during synchronization). u must have the right to modify this instance in the client side.
hope u got it.
u can debug MI Applications in NWDS.
refer this blog written by Arun
/people/arunkumar.ravi/blog/2006/02/22/execute-debug-your-mi-code-from-nwds
let me know , if u have doubts
Regards
Kishor Gopinathan
pls comment... -
Passing data b/w applet and apache server
Hi all,
I have an application that runs in the JApplet.I have to pass data b/w server and applet.The
datas are brought from the server using php to the browser and passed to applet using param
tags.
1.Is it possible to set value for the param tag from applet?
2.How to retrieve data from the param tag to the applet in the form of an array.
In the getParameter it is required to specify the param name.
Is it possible to retrieve data from param tag similar to that of getting data from command
line arguments array.Hi all,
I have an application that runs in the JApplet.I have
to pass data b/w server and applet.The
datas are brought from the server using php to the
browser and passed to applet using param
tags.
1.Is it possible to set value for the param tag from
applet?Why do you ever want to do it? It sounds like setting arguments passed to a program's main method from command line after the main method has been invoked. It is possible though to dynamically set any values for any applet params using php before the applet gets loaded to the browser window as you generate an html file on the server side.
2.How to retrieve data from the param tag to the
applet in the form of an array.
In the getParameter it is required to specify the
param name.
Is it possible to retrieve data from param tag similar
to that of getting data from command
line arguments array.You can use some naming/numbering convention for your params. For example settings1, settings2 ... Then you can loop in your code retrieving the values like getParameter("settings" + i) checking to see that it is not null or empty.
However, if you don't want to reload the applet (together with the page) just to get some new data from the server, you can establish a tcp/ip connection as elchaschab recommended.
Cheers!
Maybe you are looking for
-
What Blue-Ray player should I use?
I just bought a 42'' Vizio 3D tv, and I have a ps3, and just bought a Vizio 3D blue-Ray player, but what to know if I should keep the Blue-ray player or take it back and get my money back I have not opened it yet I bought it and after I did I forgot
-
Captivate - Publishing - AMT Subsystem Error
I receive the following error when I attempt to publish from a trial version of Captivate 7. My organization recently purchased licenses for several eLearning products (Captivate, Presenter, Connect, along with a connect cloud server). In order to ga
-
Table with 2 columns pro_id,sub_ver_id. Need only 5 pro_id for each sub_ver_id SQL> select * from test1 order by SUB_VER_ID; PRO_ID SUB_VER_ID 1 0 2 0 3 0 4 0 5 0 6 0 10 1 15 1 16 1 11 1 12 1 PRO_ID SUB_VER_ID 13 1 14 1 11 2 12 3 I'm new to analytic
-
Send to Email does not work in Yosemite iOS.
In Safari trying to send page to mail recipient, when I click on share, send to mail, the Terminal program opens instead of the Mail. Also the Terminal Icon is displayed next to the Mail. Looks like there is a glitch with program associations. How
-
Nonce property in WCF custom adapter
Hello All, How to configure Nonce property in WCF Custom Adapter in Biztalk. I have created custom assembly as mentioned in other blogs(http://weblog.west-wind.com/posts/2012/Nov/24/WCF-WSSecurity-and-WSE-Nonce-Authentication), where we can create Us