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
2 answers

how i can get string in looping while

i have 2 class first class import java.io.IOException; import java.net.*; public class Udp { DatagramSocket socket = null; DatagramPacket inPacket = null; // recieving packet DatagramPacket outPacket = null; // sending packet …
Bloom
  • 71
  • 5
0
votes
0 answers

CR+LF changing to __ in HTTP response header

See updates for updated question I am using AFNetworking's AFHTTPClient for my app's service calls. My server uses HTTP digest authentication to authenticate. The service call is returning a 401 HTTP error with WWW-Authenticate header in its…
0
votes
1 answer

Hosting Java server on my own computer, using "no-ip" for static access

I'm making the android game and my own JAVA server. I want to run that server on my own computer. I don't really need to run it anywhere else, so I really don't need other solution (payed hosts, etc...). I need a static IP access to my computer.…
klo
  • 414
  • 2
  • 6
  • 14
0
votes
2 answers

Website behaving differently in Google App engine than in localhost - urlmapping

I was trying to do some stuffs with the tQueryCar : http://learningthreejs.com/blog/2012/05/21/sport-car-in-webgl/ I created a new app engine project and do the required stuffs and this webGL car was running fine on localhost. But when I uploaded it…
omerjerk
  • 4,090
  • 5
  • 40
  • 57
0
votes
1 answer

MongoDB with a Tomcat v7 Java Server

I've written a simple Java server. The basic idea is that, upon clicking a button, a servlet will load some data into MongoDB. However, whenever I try to actually load something into MongoDB (in my case, saving a collection), I get the following…
David K.
  • 679
  • 2
  • 10
  • 23
0
votes
3 answers

Embed Jetty to JavaSE project

I downloaded jetty from http://download.eclipse.org/jetty/stable-9/dist/. I can start/stop Jetty server. Also I know about tutorials on eclipse wiki. But I cannot find info how to add jetty to project on Java SE in eclipse. Simply:…
Sever
  • 2,338
  • 5
  • 35
  • 55
0
votes
1 answer

how to slow down the speed of buffer sending java

I have a server and i want to slow it down for some reasons and for experiments long length = fileToSend.length(); byte [] longBytes = new byte[8]; ByteBuffer bbuffer = ByteBuffer.wrap(longBytes); …
Cbour
  • 49
  • 2
  • 9
0
votes
1 answer

Java Rmi Exception

I want to build a RMI server, I tried like this package first_project; import java.rmi.Naming; import java.rmi.RemoteException; import java.rmi.server.UnicastRemoteObject; import java.util.ArrayList; public class Server extends…
Rand
  • 13
  • 1
  • 3
0
votes
1 answer

how do i write on server and read on android

i want to create a printwriter in my java server and a buffertreader in my android code. right know i can send a message from my android and read it on my java compiler but i want to do the oppsite aswell. read on android and write on server. do i…
yegen
  • 1
  • 2
0
votes
1 answer

java QuickServer object handler

I've recently came across an open source library for java multithread servers http://www.quickserver.org/. The first example EchoServer which uses a ClientCommandHandler worked perfect. However it only works with strings. In my particular…
0
votes
1 answer

how to make application sync offline entries with the application on web server in java?

**> I need to make web system using java technology, but considering the internet dis-connectivity issues. I also need to make a desktop version of that system... where user can do entries in system. My requirement is this, if user click on a…
Dingling
  • 416
  • 1
  • 5
  • 16
0
votes
1 answer

Unable to update mysql database through servlets

I wrote a servlet file SignUp.java and a helper file Updater.java. SignUp gathers the user info from a form filled by the user. Then it sends the info to Updater so that Updater updates the table in the database using the info. But when I fill the…
Yasser Hussain
  • 854
  • 7
  • 21
0
votes
1 answer

Android - Java Server or Servlet?

I am creating an Android application for a project at university. I will have several databases hosted on the university servers ( We have a web development server). I was going to create a Java server, however, due to the university firewalls and…
Stu Whyte
  • 758
  • 5
  • 19
0
votes
1 answer

Simple java chatroom

Quite simple I want to create a chatroom that accepts multiple clients all of which can assign their own ID. Whenever they input anything it is sent to all users. Currently I have a echo client server where the client inputs something and it is…
James
  • 139
  • 3
  • 7
0
votes
1 answer

ObjectInputStream exception

Possible Duplicate: StreamCorruptedException: invalid type code: AC Hello guys I am trying to read object from the stream over the network... I am using ReadInputObject method ... and I am implementing it inside a thread to recieve the data ...…
I.el-sayed
  • 325
  • 1
  • 5
  • 18