Questions tagged [java-server]

DO NOT USE THIS TAG! "Java Server" is an incomplete term and makes therefore no sense as a tag and should be banned. Click "info" for alternate tags you're probably looking for.

If you mean Java Server Faces, use .

If you mean Java Server Pages, use .

If you mean a certain Java (EE) server, use the tag resembling the server name such as , , , , etc.

If you mean Java EE in general, use .

If you mean to write a homegrown "server" in plain Java SE, use , perhaps along with the desired communication protocol, such as .

192 questions
0
votes
1 answer

dynamic web project cannot run

I created a dynamic web project, then added to the server already, (see screenshot) but I can't get it run. The server is running, if I type in localhost:8080/ I do see the Apache homepage, but localhost:8080/testDynProj/ yields nothing. What am I…
EyeQ Tech
  • 7,198
  • 18
  • 72
  • 126
0
votes
2 answers

Sending files by part in JAVA

I am writing a client-server program in JAVA in which I am sending a file from server to client.As the file size may be quite high therefore I decided to divide the file in 5 parts and then send it to the same client in 5 different Threads. My…
0
votes
1 answer

Glassfish v3 - how to disable stack trace on server side log

I want to disable the stack trace on server side log in Glassfish v3? Is there any option to do it?
0
votes
1 answer

Server & Client Connection in Java

Here is an sample TCP/IP Server and Client programms TCPServer import java.io.*; import java.net.*; class TCPServer { public static void main(String argv[]) throws Exception { String clientSentence; …
Bucks
  • 689
  • 3
  • 11
  • 28
0
votes
1 answer

GCM server crashes on online domain

Hey I have been following gcm tutorial to create gcm-demo-server and a demo-client. All was working well on tomcat, I then uploaded the .war file on a free jsp domain firstly the page said "No devices registered " as soon as I got registered from…
Khurram W. Malik
  • 2,660
  • 2
  • 20
  • 27
0
votes
1 answer

video streaming from Android without saving on sdcard

I have code: private MediaRecorder recorder; String hostname = "192.168.1.125"; int port = 1935; Socket socket; ParcelFileDescriptor pfd; public void start() { try { socket = new Socket(InetAddress.getByName(hostname),…
user1135750
0
votes
2 answers

Importing data into Sencha Touch store from JSON file

Importing Data from JSON file to Store I have begun developing an app where I use Sencha Touch for the frontend design and java to query the database on the backend. However, I am having trouble integrating the two together. I tried returning the…
Mike
  • 10,297
  • 2
  • 21
  • 21
0
votes
1 answer

Android upload image to jsp page

i want to upload image from my android app to jsp server's page which process and save image into the server.But I get java.lang.IndexOutOfBoundsException when i debug it.This is my code in jsp page. String contentType = request.getContentType(); …
-1
votes
3 answers

Run JAVA program as background service

Im doing an application in android,which connects to a PC via a Java server program using socket programming... I need to run the Java server program as a background service... can anybody pls help me??? ServerSocket serverSocket = null; …
user1057197
  • 479
  • 1
  • 6
  • 15
-1
votes
1 answer

android simple socket program client show false

Android simple socket program client show false socket = new Socket(dstAddress, dstPort); ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(1024); byte[] buffer = new byte[1024]; int bytesRead; InputStream…
devcelebi
  • 878
  • 7
  • 11
-1
votes
1 answer

How to create a rate and comment system for android app?

I want to create a rate system for an android application using java. Ive searched around and havent found much on the web concerning this. What do i need to do to build or get started building a rate system for a android application. Such as the…
coder_For_Life22
  • 26,645
  • 20
  • 86
  • 118
-1
votes
1 answer

Ajax Follow Java Serverlet Redirect

I'm making a certain ajax request to a java serverlet in the following manner : var request = $.ajax({ type: "POST", url: MY_SERVERLET_URL, data: MY_DATA, dataType: 'json', }); request.done(function(msg) { if…
Elinoter99
  • 599
  • 1
  • 7
  • 22
-1
votes
1 answer

What to use instead of BufferedReader for server

I was told that BufferedReader.readLine() is not a suitable method to read data from clientSocket, because it consideres a line as a String ending with \n or \r. However, my ending symbol for line is \r\n. What should I use insted of buffered…
Jakub Gruber
  • 745
  • 1
  • 11
  • 27
-1
votes
1 answer

how to make client server program to continuously run

I am creating a Java a simple client/server program although both are just working fine. The problem is that when the client or the server encountered an error it will stop. Is there a way for my client/server app to continuously run even if it…
dimas
  • 2,487
  • 6
  • 40
  • 66
-1
votes
1 answer

Xhtml option is not available in eclipse

While creating JSF project, xhtml option is not available in my eclipse kepler... I have also tried downloading JBoss Tools(Kepler)4.1.2 Final So please help me
Yash Sonar
  • 13
  • 5
1 2 3
12
13