[BEGINNER]store several images on the client in the memory
Hi,
I would like to store several images on the mobile with
Image images[2]; but it does not work . How can I do that ?
C:\Logiciels\WirelessToolkit2.2\apps\Client\src\ImageNavigator.java:19: ']' expected private Image images[2];
i was going through the messages today n found that u havent recieved any reply.So i thought i should.Well if u r using an array of size 2, is it possible to store 10 images in it?no way.You have to declare the array of the size=the number of images. The only thing is,Dont allocate memory to the images unnecessarily.Just allocate memory to images that are required at run time. I hope this helps...
Simcard
:-)
Similar Messages
-
12520 EAP-TLS failed SSL/TLS handshake because the client rejected the ISE local-certificate
Hi guys,
I have root CA and intermediate CA in ISE local certificate store trusted for client authentication.
I have imported both root ca and client certificate in the device I want to authenticate, but ISE keeps spitting out this error :
12520 EAP-TLS failed SSL/TLS handshake because the client rejected the ISE local-certificateRefer the link for troubleshooting in page no 22 the issue is mentioned, check it: http://www.cisco.com/c/dam/en/us/solutions/collateral/enterprise/design-zone-security/howto_81_troubleshooting_failed_authc.pdf
-
Hello. I would like to write async tcp client and server. I wrote this code but a have a problem, when I call the disconnect method on client or stop method on server. I can't identify that the client or the server is no longer connected.
I thought I will get an exception if the client or the server is not available but this is not happening.
private async void Process()
try
while (true)
var data = await this.Receive();
this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
catch (Exception exception)
How can I determine that the client or the server is no longer available?
Server
public class Server
private readonly Dictionary<IPEndPoint, TcpClient> clients = new Dictionary<IPEndPoint, TcpClient>();
private readonly List<CancellationTokenSource> cancellationTokens = new List<CancellationTokenSource>();
private TcpListener tcpListener;
private bool isStarted;
public event Action<string> NewMessage;
public async Task Start(int port)
this.tcpListener = TcpListener.Create(port);
this.tcpListener.Start();
this.isStarted = true;
while (this.isStarted)
var tcpClient = await this.tcpListener.AcceptTcpClientAsync();
var cts = new CancellationTokenSource();
this.cancellationTokens.Add(cts);
await Task.Factory.StartNew(() => this.Process(cts.Token, tcpClient), cts.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);
public void Stop()
this.isStarted = false;
foreach (var cancellationTokenSource in this.cancellationTokens)
cancellationTokenSource.Cancel();
foreach (var tcpClient in this.clients.Values)
tcpClient.GetStream().Close();
tcpClient.Close();
this.clients.Clear();
public async Task SendMessage(string message, IPEndPoint endPoint)
try
var tcpClient = this.clients[endPoint];
await this.Send(tcpClient.GetStream(), Encoding.ASCII.GetBytes(message));
catch (Exception exception)
private async Task Process(CancellationToken cancellationToken, TcpClient tcpClient)
try
var stream = tcpClient.GetStream();
this.clients.Add((IPEndPoint)tcpClient.Client.RemoteEndPoint, tcpClient);
while (!cancellationToken.IsCancellationRequested)
var data = await this.Receive(stream);
this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
catch (Exception exception)
private async Task Send(NetworkStream stream, byte[] buf)
await stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
await stream.WriteAsync(buf, 0, buf.Length);
private async Task<byte[]> Receive(NetworkStream stream)
var lengthBytes = new byte[4];
await stream.ReadAsync(lengthBytes, 0, 4);
var length = BitConverter.ToInt32(lengthBytes, 0);
var buf = new byte[length];
await stream.ReadAsync(buf, 0, buf.Length);
return buf;
Client
public class Client
private TcpClient tcpClient;
private NetworkStream stream;
public event Action<string> NewMessage;
public async void Connect(string host, int port)
try
this.tcpClient = new TcpClient();
await this.tcpClient.ConnectAsync(host, port);
this.stream = this.tcpClient.GetStream();
this.Process();
catch (Exception exception)
public void Disconnect()
try
this.stream.Close();
this.tcpClient.Close();
catch (Exception exception)
public async void SendMessage(string message)
try
await this.Send(Encoding.ASCII.GetBytes(message));
catch (Exception exception)
private async void Process()
try
while (true)
var data = await this.Receive();
this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
catch (Exception exception)
private async Task Send(byte[] buf)
await this.stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
await this.stream.WriteAsync(buf, 0, buf.Length);
private async Task<byte[]> Receive()
var lengthBytes = new byte[4];
await this.stream.ReadAsync(lengthBytes, 0, 4);
var length = BitConverter.ToInt32(lengthBytes, 0);
var buf = new byte[length];
await this.stream.ReadAsync(buf, 0, buf.Length);
return buf;Hi,
Have you debug these two applications? Does it go into the catch exception block when you close the client or the server?
According to my test, it will throw an exception when the client or the server is closed, just log the exception message in the catch block and then you'll get it:
private async void Process()
try
while (true)
var data = await this.Receive();
this.NewMessage.Invoke(Encoding.ASCII.GetString(data));
catch (Exception exception)
Console.WriteLine(exception.Message);
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
By the way, I don't know what the SafeInvoke method is, it may be an extension method, right? I used Invoke instead to test it.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Get the current count of the client accessing the servlet
Any body can tell me how to know the information of every client that accessing my servlet after the client access the login interface.
Thanks.
But,
My mean is not know each client information. I want to know all the current client count is accessing my web application and the client do not include that
user has signed off the application nor the browser is closed by some reason. Sometime if you enter the forum, you maybe find how many people are in the forum current time? I just know all the users now accessing my web application -
Sending a certificate form the client to the server... how to ?
how can I send a certificate from the client to the server trough a Java code ??
Short answer: You specify a keyStore.
Either via command line using the -Djavax.net.ssl.keyStore=keystorefile property,
or in Java code:
char[] passphrase = "password".toCharArray();
SSLContext ctx = SSLContext.getInstance("TLS", "SunJSSE");
// KeyStore for the SSL client certificate
KeyStore keyStore = KeyStore.getInstance("PKCS12");
keyStore.load(new FileInputStream("client-cert.p12"), passphrase);
KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance("SunX509", "SunJSSE");
keyManagerFactory.init(keyStore, passphrase);
// keyStore for trusted server certs or CAs
KeyStore trustedKeyStore = KeyStore.getInstance("JKS");
trustedKeyStore.load(new FileInputStream("verisign-test-cert"), passphrase);
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance("SunX509", "SunJSSE");
trustManagerFactory.init(trustedKeyStore);
ctx.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), null);
SSLSocketFactory sslSocketFactory = ctx.getSocketFactory();
HttpsURLConnection.setDefaultSSLSocketFactory(sslSocketFactory);
// open the http connection to the party
myConn = (HttpsURLConnection)myURL.openConnection(); -
Auto install flash player to the client where the flash.exe was located on serve
Good day!
I created an intranet site for the company and it is on the server, so the staff can view it. My webpage consist of flash for the viewing of images. The problem is the client who can view my webpage has no flash installer or totally no flash installed on their computer. Actually I have a flash.exe or flash installer in my server. I want to happen is when they view my webpage there is a pop up message for the auto install of flash installer and once they click automatically the flash would be installed. I mean the location of installer in the server they can catch? Is it possible?
Honestly, I have no idea about it. I have a lot of idea and questions in my mind on how the client can have the installer through pop up or any way.
Thank youIt is definitely not something you can do with Flash Player; especially when the Player is not even installed on the client side.
You will need to do something with Flash or ActionScript, so you better ask in the Flash or ActionScript forum. -
I can successfully view and control a VI remotly. However, the remote VI dinamically loads another VI, this VI loaded dinamically is a VI that allows open others VIs, I want to see the files that contains the server machine, in the client machine, but the front panel of the dinamic VI appears only on the server and not on the client, How can I display the fron panel with the files of the server machine of the dinamically loaded VI on the client computer?
Attachments:
micliente.llb 183 KB
miservidor.llb 186 KB
rdsubvis.llb 214 KBI down loaded your files but could use some instructions on what needs run.
It seems that you are so close yet so far. You need to get the data on the server machine over to the client. I generally do this by doing a call by reference (on the client machine) of a VI that is served by the server. THe VI that executes on the server should pass the data you want to diplay via one of its output terminals. You can simply wire from this terminal (back on the client again) to an indicator of your choosing.
Now theorectically, I do not think that there is anything that prevents use from getting the control refnum of the actual indicator (on the server) of the indicator that has the data, and read its "Value" using a property node. I have never tried this idea but it seems t
hat all of the parts are there. You will need to know the name of the VI that holds the data as well as the indicator's name. You will also have to serve all VI's. This is not a good idea.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
Create report output to the Client of the Application Server inst.of Server
Hi,
Please suggest the soution for the below:
We are using SET_REPORT_OBJECT_PROPERTY and WEB.SHOW_DOCUMENT to create report. Now Requirement is to save the report output to Client instead of server. I tried to use WEBUTIL but web util can be used from form only becuase that is using form item.
(1) We are calling all our report from a form. Is there any option to trigger a action when ever a report job is created in Application server (report server)
(2) Please let me now is there any option to create the output directly to client of application server 10G R1WIN , 10GR2WIN or in 11G. If yes please let me know the details.
Wtih Thanks & Regards
K.Sundar
Edited by: 870860 on Jul 13, 2011 10:27 PMHi,
Please suggest the soution for the below:
We are using SET_REPORT_OBJECT_PROPERTY and WEB.SHOW_DOCUMENT to create report. Now Requirement is to save the report output to Client instead of server. I tried to use WEBUTIL but web util can be used from form only becuase that is using form item.
(1) We are calling all our report from a form. Is there any option to trigger a action when ever a report job is created in Application server (report server)
(2) Please let me now is there any option to create the output directly to client of application server 10G R1WIN , 10GR2WIN or in 11G. If yes please let me know the details.
Wtih Thanks & Regards
K.Sundar
Edited by: 870860 on Jul 13, 2011 10:27 PM -
Jnlp interpreted by the client or the webserver ?
Hello there,
I just want to clear this up - Is the .jnlp file sent to the client (where web start will inspect it) or by the webserver ?
So, when the jnlp file is made to point to a particular applet etc., will the webserver look at the jnlp and forward the applet (based on the location tag), or will the client be passed the jnlp (where it will inspect the location) and load the applet.
I would like web start to pick up a jar stored locally on the client, but no sure whether this is possible using a "localhost" location.
Thanks,
Michael Dodsworth.The jnlp is read by the client. You can load a jnlp off a filesystem, the server doesn't need to be involved unless you want it to automatically the hostname.
-
MAP don´t login in the clients when the pcs don't connect with a domain
I have a network with a normal pcs (as home pcs) with out domain; but i try audit the network but always launch the same error "Failed - Access Denied". I read in the internet and this problem is present when the netlogon service is down , but
this service can't enable because this service only enable when the clients is connect with a domain controller. I need a solution. We have an ideas or solutions?
Thank You!!Inventorying workgroups can be difficult, especially when it comes to remote access and network security. Because workgroups are not centrally managed, some of the items discussed in this
wiki article on preparing your workgroup environment may require you to visit each machine individually.
For non-domain credentials, you do not use the <systemname>\<user> format, you simply enter the user name. Regarding how to enter the credentials, if you have an account that uses the same username and password on all machines and is an administrator
on all of those machines, then you can enter that in the All computers credentials page of the wizard. You can also do this if they are different user names. However, if some machines have an account with the same user name, such as Administrator,
but different passwords on each machine, you will need to use the Manually enter computer names discovery method, and then enter the information for each group or each machine.
As you can tell, workgroup environments can quickly negate any benefit that the agentless inventory nature of MAP provides.
Please remember to click "Mark as Answer" on the post that helps you, and to click
"Unmark as Answer" if a marked post does not actually answer your question. Please
VOTE as HELPFUL if the post helps you. This can be beneficial to other community members reading the thread. -
How to inform the client when the jar files is updated?
I have a question about jar file updatation by web start, please help me.
If a client's jar file is updated in Web server and automatically downloaded to local cache, how the client know which jar file is updated?. If I want to do some special operation after updating a appointed jar file, how can I do?Contrary to common popular belief, this forum is not a free 'I will look up/abstract the documentation on your behalf' forum.
You can look up sqlnet.expire_time on http://tahiti.oracle.com or may be even Google will work.
Please do not abuse this forum by asking doc questions.
Sybrand Bakker
Senior Oracle DBA -
Unable to synchronise the client with the server
Hi Everyone,
I get the folllowing error while trying to sync my MI client for the first time.
Synchronization started.
Connection set up (without proxy) to: http://idesec7:50000/meSync/servlet/meSync?~sysid=ice&
Successfully connected with server.
Processing of inbound data began.
Internal server error; contact your system administrator.
any thoughts.....
Thanks in advance,
himaAfter synchronising with the server i am not able to start the MIclient it gives the error as <b>"start failed"</b>. But before synchronising, MIclient was working fine.This error has occured when i tried to download and start the aplication as an end user.in the webconsole the status is displayed as <u>"delete with next synchronisation"</u>.will this status in the webconsole matter.
the detailed information is as follows:
DEPLID E7D34F0264E5F64BBD740CCECB688CE0
INSTALLATION_IMAGE NO
JAVA_VERSION 1.4.2_06
JVM_VENDOR Sun Microsystems Inc.
MI_FULLNAME MI 25 SP 09 Patch 00 Build 200409101427
OSARCHITECTURE x86
OSNAME Windows XP
OSVERSION 5.1
PROCESSOR pentium i486 i386
RUNTIME TOMCAT
USERS_ON_DEVICE MISYNC-00; TEST; MI_ADMIN; MI_USER
USER_TIMEZONE Asia/Calcutta
can anybody help me in this.. -
How does compliance settings go from the client to the site server
I understand how to create baselines, how to view compliance on the client, and after some time later, the client's status shows up in the console. My question is what mechanism does compliance settings use to send the report to the management point?
When you deploy compliance settings, there is a schedule for evaluation, I am guess some short time after evaluation, the results are sent, but where is that schedule and how do you force a sending of the evaluation?It's state-message based. Presuming you haven't changed the defaults, that's every 15 minutes out of the box, that a client will send any pending state messages.
There's probably a mechanism for forcing a single client to send any pending state messages, but honestly I usually just get a cuppa coffee and wait. (I've learned to be patient with ConfigMgr).
Standardize. Simplify. Automate. -
Hi,
I am exporting a quicktime file H.264 at 720p but cant seem to render the video. I have read through heaps of forums and have tried the following:
-Added black video (from premiere) to the video track 1 for entire length of work bar.
- ticked use preview files. and rendered all video, audio and effects before exporting.
- un-ticked include xmp
- tried exporting without audio.
- tried only a few seconds of footage
- tried adding a single opacity keyframe to the first frame of the sequence
- played around with the quality of the clips.
- I've even tried making a new project with just a 10 second clip.
Each time After about 10 minutes of waiting I finally get an error msg as below:
- Source File: /Users/StudioB/Library/Caches/TemporaryItems/Untitled.prproj
- Output File: /Users/StudioB/Desktop/Sequence 03.mov
- Preset Used: Custom
- Video:
- Audio:
- Bitrate:
- Encoding Time: 07:13:59
Mon Mar 22 18:29:58 2010 : Encoding Failed
Could not read from the source. Please check if it has moved or been deleted.
I haven't moved any files and haven't had a problem with rendering the sequence in premiere. but i have had multiple crashes when altering audio
track properties (adding compressors etc.)
The project file and media was originally copied from CS3 on quad core pc (win xp) and is now running on Mac Pro Dual quad OS X CS4 version 4.0.0
I am really stuck for a solution. Can anyone offer a suggestion?Please try to trash your prefs and clear your media cache as well.
http://blogs.adobe.com/genesisproject/2009/11/having_weird_behavior_with_an.html -
Each time I restart this exchange server, the Information Store and System Attendant don't start. If It try to manually start the services, I get the follow errors:
Event ID 5003:
Unable to initialize the Microsoft Exchange Information Store service because the clocks on the client and on the server machine are skewed. This may be caused by a time change either in the client or the server machine, and may require a reboot of that machine. Other than that, verify that your domain is properly configured and is currently online.
Event ID 1005:
Unexpected error The clocks on the client and server machines are skewed. ID no: 80090324 Microsoft Exchange System Attendant occurred.
The clocks on the domain controllers and the exchange server are set to the same time zones. As well, all three clocks are in sync down to the second. Any ideas on what's causing this and how to fix it?Run this Command from the Exchange Server
Net time \\ADServerName /Set
and confirm the action,
and then you need to restart the service
Microsoft Exchange Active Directory Topology Service
and confirm you are not getting the Error 4001 in the event Viewer.
Thank you, it resolved my issue after being sweating looking for solution.
How can I prevent this from happening? I cannot restart services on each server reboot nor lose 5 years of my life!!!
Sokratis Laskaridis MCP, MCTS, MCITP, Small Business Specialist Netapp ASAP, Symantec STS
Maybe you are looking for
-
How do I install Bootcamp Windows 8.1 To Go on an external USB disk (MBA 2013)
Hi, I've got a new 11" 2013 macbook air with 128gb SSD. I've downloaded the windows 8.1 enterprise preview, and am trying to figure out how to install it on a 64gb USB3 Flash drive instead of on my SSD. The Flash drive speeds clock around 150mbs read
-
Jsp worklist in 7.02 - send xml to client
Does the worklist web application in 7.02 support messages with the "Send XML To Client" action? There appears to be some JSP code related to displaying message boxes or setting variables (message.jsp, setvariables.jsp) but I don't see any reference
-
I am about to purchase the new iPad3. I already have the iPad1 and my wife is going to make use of it. How do I change ownership from me to her, and keep the content of my existing iPad.?
-
Problem in saving the Rating and Discussion?
hi all, I am using EP6 SP16. I have enabled Rating service. But when I give rating to any document or folder by going to details --> collaboration --> Rate this document. Then when I click on Save button to save the Rating, it gives the
-
Hello, my HP laptop is about 1.5 years old now, and I would like to replace my old 1 TB HDD with an SSD (to boot windows) whilst keeping the old HDD in my laptop as a secondary drive. However, I have read that for certain laptops, it's not possible t