32bit Vs 64 Bit

Good day all. I have 2 servers, 1 dev server running 32bit Debian Lenny with Tomcat8.0.15 and Java 1.8.0_25 and Postgres 8.3.4. The other server UAT is running a 64bit Debian Wheezy with Tomcat8.0.15 and Java 1.8.0_25 and Postgres 8.3.9.

My problem is that, the application deployed in the dev server runs properly, but when deployed on the UAT server, we get an error.

[MRS ERR 2015-05-13 16:03:33] com.bdo.clg.mrs.users.dao.UserDAOERROR: operator does not exist: integer = character varying
org.postgresql.util.PSQLException: ERROR: operator does not exist: integer = character varying

Another difference we noticed is in the logs.
Dev logs shows this

[MRS 2015-04-01 13:51:27] resetXPassDay.sql: UPDATE mrs_usr SET x_pass_day = '0'
WHERE login_name = 'GABS'

notice the ' ' in login_name

UAT shows this

MRS 2015-05-13 16:03:33] resetXPassDay.sql: UPDATE mrs_usr SET x_pass_day = '0' WHERE login_name = ARANTGA

no ' ' in login_name.


We already tried redeploying and reinstalling tomcat and java. Need help in pin pointing the cause of the problem.

Thanks!


Similar Content



Error While Running My Run.sh

Hello,

I am trying to run a java application, but i'm getting an error when running my run.sh

This is my run.sh
Code:
java -classpath bin:deps/poi.jar:deps/mysql.jar:deps/mina.jar:deps/slf4j.jar:deps/slf4j-nop.jar:deps/jython.jar:log4j-1.2.15.jar server.Server

Here is the error while running run.sh
Code:
Exception in thread "main" java.lang.UnsupportedClassVersionError: server/Server : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: server.Server.  Program will exit.

Thanks

Compiling Multiple Java File Using Terminal.

I am new in java. I executed a java program using eclipse. the program contain two java file. when i try to run it using terminal in Ubuntu.
two files are not linking. it shows error. i am attaching all the data.

It shows the following error
Code:
regex2string.java:83: error: cannot find symbol
	                    str = randomstr.nextString(2000);
	                          ^
  symbol:   variable randomstr
  location: class regex2string
1 error
Exception in thread "main" java.lang.NoClassDefFoundError: regex2string
Caused by: java.lang.ClassNotFoundException: regex2string
	at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: regex2string. Program will exit.

Introduction

HI,
When I first joined this forum I made a fairly long synopsis of who I am and what I wanted to do with Linux. I thought I posted it but now I can not find it anywhere. No doubt I messed up somehow!

I am developing a Java stand alone application that will require some server side Java Servlets to manage the marking, registration, install and deployment phases. I have a spare Windows 7 PC that I have converted to the Debian Linux system successfully...

I currently use LunarPages as my ISP and host to 3 domains. If I use them to host my Server Side processing they use Resin 3.x for the web server and my contract with them provides me with one 'MySQL' database system...

Next on my own server I will install the Resin version that LunarPages requires along with their required version of the Java EE.

I have 3 ways to eventually deploy my Java stand alone application
1. Use LunarPages to host my Server Side Servlet command...
2. Use the Google AppEngine service...
3. Use my own Linux Server for deployment purposes...

This message is an intro and does not have any specific question yet...
Perhaps someone may offer some suggestions for me or critique my objects...

Regards,

Jim Crowell

How Updates Are Handled By The O.S.?

Hello, i'm new here at the forums and i'm pleased to meet this community, my native language is not english so please be gentle to me with my spelling errors..

I have a question for more experienced users, how the updates are handled by the O.S.? Imagine this solution:
-Debian 7 wheezy
-Apache Tomcat8
-JRE 1.8.0_31

the server is running with apox. 20 users at same time using a web app, if i update the JRE to a newer version what happens? All process that are using JRE 1.8.0_31 stays with the outdate JRE until the next reboot? or it just figure out alone how to use the newer version?

Thank you and sorry for my bad english.

ps.: I want to know what happens to Shared Objects as well.

Performance Counters For Linux While Running Load Test For Java Application On Linux

Hello,

I'm looking for options/tools where I can get server performance counters for Linux OS (having Java application on it). For windows based platforms, we have PerfMon that provides this data. I'm looking for a similar tool for Linux platform java apps. Could you please help me in identifying the best options to get the performance related data like Perfmon?

Thanks,
NR

Java Installation

hello everyone
I'm new with Linux,,I tried to install java by using the instructions in the link below

https://www.youtube.com/watch?v=ohmZu3U9DYk

the only problem appeared in the last step "java -version" is:



neaam@neaam-desktop:~$ java -version
bash: /usr/bin/java: cannot execute binary file

can anyone help me?

Libreoffice Cannot Find Network Printer, Offers Only (non-existent) Generic Printer

Arch linux, lxdm/lxde, recent installation, feeling I must be doing something stupid, would be glad to be guided!

I have a Brother HL-2030 printer connected to a Raspberry Pi as a print server, CUPS setup, with sharing turned on. Other machines in the household, and indeed other OS's on the machine I'm writing on, print trouble-free to this printer.

On *this* desktop machine, (with libcups installed,) other programs print trouble-free. Firefox, Thunderbird, geany and evince all detect the presence of the network printer, and work as expected.

It's just Libreoffice that does not. This is true both of libreoffice-fresh and libreoffice-still, and it is true for all the components (write, draw, calc etc).

Libreoffice *does* find the network printer from other OS's that I play with; I have Puppy and Mint on the same machine, but those installs of Libreoffice are obviously different/earlier versions (nor do I feel like upgrading them in the circumstances!)

In this context, though, the Libreoffice "File>Printer settings..." menu offers me only a "Generic Printer" (whose properties and options I can edit). If I ask Libreoffice to print to this generic printer, it reports no failure, but that task just seems to disappear into thin air.

On the Pi server, /var/log/cups/ offers

Code:
# extract from /var/log/cups/access_log
# [...snip]
192.168.2.2 - - [22/Jan/2015:18:21:21 +0000] "POST / HTTP/1.1" 200 566 CUPS-Get-Printers server-error-version-not-supported
192.168.2.2 - - [22/Jan/2015:18:21:21 +0000] "POST /printers/Brother_HL-2030_series HTTP/1.1" 200 15824 Print-Job successful-ok
# the above line logs a successful print from geany
192.168.2.2 - - [22/Jan/2015:18:26:40 +0000] "POST / HTTP/1.1" 200 673 CUPS-Get-Default server-error-version-not-supported


# extract of /var/log/cups/error_log
# [...snip]
E [22/Jan/2015:18:21:20 +0000] Returning IPP server-error-version-not-supported for CUPS-Get-Printers (no URI) from 192.168.2.2
E [22/Jan/2015:18:21:20 +0000] Returning IPP server-error-version-not-supported for CUPS-Get-Printers (no URI) from 192.168.2.2
E [22/Jan/2015:18:21:21 +0000] Returning IPP server-error-version-not-supported for CUPS-Get-Printers (no URI) from 192.168.2.2
E [22/Jan/2015:18:26:40 +0000] Returning IPP server-error-version-not-supported for CUPS-Get-Default (no URI) from 192.168.2.2

I really think I must be doing something very stupid and newbie-ish!

Difference In Outputs When Using TLS1

Hello All,

I am rookie when it comes to security protocols and I am learning this as part of my job responsibilities.

Recently our Application started implementing TLSv1.2 and here are some questions that I have from my observations.

1st the term ciphers, keys, certs are all very confusing to however I started to get some understanding of these as I am reading a lot of stuff.
Now, my application is running on "X" server and only accepts TLS1.X connections since the i use java 7 where ssl2Hello is disabled

now from Server "A" when I run cmd: openssl s_client -tls1 -host xxx -port yyyy
I get back a response in which I see a line
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-SHA
the openssl version on server A is: 1.0

when I run the same command from another server "B" I get a response in which the line says:
New, TLSv1/SSLv3, Cipher is EDH-RSA-DES-CBC3-SHA
the openssl version on server B is: 0.9

My understanding of cipher was something that is enforced by the application server "X" and not by the client that is making the call. Is that a wrong understanding ?
And how can I find out what type of cipher is being enforced by the server "X" when someone makes a call to it.

Anyone who can help me understand why the difference how this entire stuff operates.
Help much appreciated.

No Space Left On Device When Doing Update.

I was trying to do an update using Update Manager and I got the error message:

No space left on device), E:IO Error saving source cache, E:The package lists or status file could not be parsed or opened.

I have attached a copy of my disk usage and it shows root as 100%. I thought that I had put the Home folder on it's own partition but I guess not.

I have also included the results of the ls -l command but fail to see what is using the space.

I am using LinuxMint Linux version 3.11-2-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.1 (Debian 4.8.1-10) ) #1 SMP Debian 3.11.8-1 (2013-11-13)

Thanks for your help in advance.

Rsync Exclude File List Question

hi experts

I am running a large rsync job, but the exclude list doesn't seem to be working:

The rsync log shows this file as being copied over
/a/test 4.11/Logs/2015-03-03_PID_1234/x.y

but the exclude file clearly includes this line:
/a/test*/Logs/*PID*

So shouldn't it have been excluded?
Thanks