Error: Sizes exceeding maximum compressed

Hi…

Just wondering if anyone has seen this before in their servoy_log.txt? Servoy 4.1.3

2009-07-09 14:15:21,713 ERROR [SocketAccepter[0]] com.servoy.j2db.util.Debug - SocketAcceptor failure for socket: Socket[addr=/130.59.186.139,port=65070,localport=1099]
java.io.IOException: Sizes exceeding maximum compressed: -2141060861or uncompressed: 16791808
at com.servoy.j2db.util.rmi.compressing.Zc.Za(Zc.java:97)
at com.servoy.j2db.util.rmi.compressing.Zc.read(Zc.java:1)
at java.io.DataInputStream.readInt(DataInputStream.java:353)
at com.servoy.j2db.util.rmi.Ze.run(Ze.java:10)
at com.servoy.j2db.util.TaskExecuter.run(TaskExecuter.java:23)
at java.lang.Thread.run(Thread.java:595)

Thanks,
Shay

Hi Shay,

Yes I have seen those. Usually with IP’s from China. Perhaps from portscanning or something.

In this case the IP mentioned is my machine that I’m using to attempt to connect to my server, so must be something else causing it.

Actually, the message seems to occur when I’m attempting to check out a solution from the server (which doesn’t work).

The server has Java build 1.5.0_17-b04 under debian 2.6.26-2-686 #1 SMP

My developer machine is running build 1.5.0_19-b02-304 under Mac OS X 10.5.7

Thanks,
Shay

Hi Shay,

To be able to check out solutions you need to set servoy.application_server.startRepositoryAsTeamProvider in the servoy-admin pages to True.

Hope this helps.

Yes, had read that on another discussion thread, so changed it and restarted the server, but still to no avail.

Also, which username and password are used to access the repository? Or will any servoy username/password do?

paddington:
Also, which username and password are used to access the repository? Or will any servoy username/password do?

I believe that is correct. Any servoy user.

Hope this helps.

ROCLASI:
I believe that is correct. Any servoy user.

Actually the user must be part of the administrator group if I’m not mistaken.
Otherwise it would be very easy for ‘normal’ users to check out/in our precious code :(

mboegem:

ROCLASI:
I believe that is correct. Any servoy user.

Actually the user must be part of the administrator group if I’m not mistaken.

I thought so too, but the servoy_4_teamSupport.pdf doesn’t mention it to add the newly created user to the administrator group.
So if administrator rights are required then Servoy really needs to add that in the pdf.
But you can also argue that not all developers should be in the administrators group but in a separate group. Not all developers should have access to the servoy-admin pages.

ROCLASI:
the servoy_4_teamSupport.pdf doesn’t mention it

I don’t classify this doc as real documentation, as it is the pre-release doc of 4.0
This doc also doesn’t mention the ‘subversive’ plugin, and in some cases this plugin is preferable above others…

mboegem:
I don’t classify this doc as real documentation, as it is the pre-release doc of 4.0

So there is a doc that does cover this that you do consider real documentation ?

2009-07-09 14:15:21,713 ERROR [SocketAccepter[0]] com.servoy.j2db.util.Debug - SocketAcceptor failure for socket: Socket[addr=/130.59.186.139,port=65070,localport=1099]
java.io.IOException: Sizes exceeding maximum compressed: -2141060861or uncompressed: 16791808
at com.servoy.j2db.util.rmi.compressing.Zc.Za(Zc.java:97)
at com.servoy.j2db.util.rmi.compressing.Zc.read(Zc.java:1)
at java.io.DataInputStream.readInt(DataInputStream.java:353)
at com.servoy.j2db.util.rmi.Ze.run(Ze.java:10)
at com.servoy.j2db.util.TaskExecuter.run(TaskExecuter.java:23)
at java.lang.Thread.run(Thread.java:595)

if you see this error on the server do you also see or notice something on a client?
Or do you notice stuff on clients of connections gone bad?

This really looks like a connection being made to the server and the other side isnt talking the stuff we expect him to talk (compressing sockets)

So this could be somebody that tries to hack in. Or a servoy client doesnt connect with compressing enabled somehow.

if you see this error on the server do you also see or notice something on a client?
Or do you notice stuff on clients of connections gone bad?

The client says “Cannot get solutions from: ourservername Error getting the repository from host ourservername:1099” when I attempt to check out a solution. At the same time the error is logged by the server.

This really looks like a connection being made to the server and the other side isnt talking the stuff we expect him to talk (compressing sockets)

So this could be somebody that tries to hack in. Or a servoy client doesnt connect with compressing enabled somehow.

Well, it happens when I try to check out a solution, so I’m guessing it’s a problem with Servoy Developer rather than random hack attempts… Need to fix some stuff for our help desk, so it would be nice to get it working :)

Tried it from two Macs and a Windows VM, same result.

Thanks,
Shay

does your client (developer) has compressing enabled in his admin pages?

Because in this example you have to configure it, with normal clients everything is pushed by the server.

does your client (developer) has compressing enabled in his admin pages?

Where can I find the admin pages? Servoy Developer? Servoy Server Administration? I can’t seem to find a compression setting anywhere.

Thanks,
Shay

if i talk about the admin pages
then i point to the http://localhost:8080/servoy-admin/
(if 8080 is still your port which is default)

and then

http://localhost:8080/servoy-admin/network-settings

does have your network settings. for example “SocketFactory.compress”

and you have if you work with a servoy team server and developer 2 of those settings, 1 is the developer and 1 is the team server.

Are both on compress? Also you can set both to false and see if that works.

I’ve tried setting turning SocketFactory.compress off, and I no longer get the error message.

I’m thinking now that the problem is actually that I don’t have a developer server?

If so, how can I export/check out an existing solution from the team server so I can work on it? Or do I need to resort to duplicating the team server repository database on the developer server?

Thanks,
Shay

what dont you excactly have?

You have 2 machines right? 1 is your developer and the second is your team server?
(developer server is a team server in your setup, and if you have a team server then the team part in the developer should be turned off)
on both you have turned of your compresing ?

So it doesnt work if you enable it on both?

Are youre 2 machines on the same network? IF so then you can turn on compressing but turn off: useTwoWaySocket

as long as you keep both in sync it should work fine.

We only have one server, on which the solution is hosted. There is only one developer (me, and I didn’t develop the original solution).

I’d like to be able to get the solution into a copy of the Servoy Eclipse development environment to work on.

I guess the questions are

  • Can I do this?
  • If so, how because checkout isn’t working even with compression turned off (although the error message is no longer logged)?
  • Does this mean I need to set up a developer server or can I just do it using the Eclipse environment?
  • Is checkout failing without telling me I need a developer license?
  • If I need to set up a developer server that means I need to convince my superiors to shell out US$849 + US$227/year? (or rollback to version 3)

Thanks,
Shay