JVM 1.4 seg faults with pure java code?

Has anybody else seen JVM 1.4 seg fault when running pure java code? This seems like it shouldn't be possible, but I get the following at indeterminate times. Unfortunately, it is difficult to isolate since decreasing the size of the program avoids the problem. When the seg fault happens, the size in memory is ~1GB and there is plenty of real and virtual memory to spare.
Unexpected Signal : 11 occurred at PC=0xDE88BC8E
Function=[Unknown. Nearest: +0x100E]
Library=/usr/j2se/jre/lib/i386/server/libjvm.so
Dynamic libraries:
0x8050000 java
0xdfb60000 /usr/lib/libthread.so.1
0xdfba0000 /usr/lib/libdl.so.1
0xdfab0000 /usr/lib/libc.so.1
0xde800000 /usr/j2se/jre/lib/i386/server/libjvm.so
0xdfa40000 /usr/lib/libCrun.so.1
0xdfa20000 /usr/lib/libsocket.so.1
0xdf980000 /usr/lib/libnsl.so.1
0xdf960000 /usr/lib/libm.so.1
0xdfa70000 /usr/lib/libw.so.1
0xdf920000 /usr/lib/libmp.so.2
0xdf8f0000 /usr/j2se/jre/lib/i386/native_threads/libhpi
.so
0xdf8c0000 /usr/j2se/jre/lib/i386/libverify.so
0xdf880000 /usr/j2se/jre/lib/i386/libjava.so
0xdf860000 /usr/j2se/jre/lib/i386/libzip.so
0xda890000 /usr/lib/nss_files.so.1
Local Time = Tue May 14 16:03:38 2002
Elapsed Time = 72
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002D3
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
# Java VM: Java HotSpot(TM) Server VM (1.4.0-rc-b91 mixed
mode)
# An error report file has been saved as hs_err_pid945.log.
# Please refer to the file for further information.

Hi sevenM,
Did you figure out a workaround for this problem?. Did you get it solved with the SUN people?. Is it a known bug?.
I've got exactly the same problem on the same function and VM library.
Any info on this is very much welcome.
Thx
Krithiga
I get the same error sometimes with tomcat-4.0.4 on a
Slackware 8.0.0 and JDK 1.4.0. I don't user any JSPs,
only servlets and the business calls a remote SLSB on
a remote JBOSS server and afterwards select some data
form a remote DB2 7.1 over JDBC.
Here is the log:
Unexpected Signal : 11 occurred at PC=0x40267D98
Function=copy_to_survivor_space__16DefNewGenerationP7oo
DescPP7oopDesc+0x28
Library=/usr/local/j2sdk1.4.0/jre/lib/i386/client/libjv
.so
Current Java thread:
at
at java.net.PlainSocketImpl.socketAccept(Native
tive Method)
at
at
at
t
java.net.PlainSocketImpl.accept(PlainSocketImpl.java:34
- locked <0x44ed3400> (a
400> (a java.net.PlainSocketImpl)
at
at
at
t
java.net.ServerSocket.implAccept(ServerSocket.java:438)
at
at
at
t java.net.ServerSocket.accept(ServerSocket.java:409)
at
at
at
t
org.apache.catalina.core.StandardServer.await(StandardS
rver.java:293)
at
at
at
t
org.apache.catalina.startup.Catalina.start(Catalina.jav
:794)
at
at
at
t
org.apache.catalina.startup.Catalina.execute(Catalina.j
va:681)
at
at
at
t
org.apache.catalina.startup.Catalina.process(Catalina.j
va:179)
at
at
at
t sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
at
at
t
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMetho
AccessorImpl.java:39)
at
at
at
t
sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegat
ngMethodAccessorImpl.java:25)
at
at
at java.lang.reflect.Method.invoke(Method.java:324)
at
at
at
t
org.apache.catalina.startup.Bootstrap.main(Bootstrap.ja
a:243)
Dynamic libraries:
08048000-0804d000 r-xp 00000000 03:03 757599
/usr/local/j2sdk1.4.0/bin/java
0804d000-0804e000 rw-p 00004000 03:03 757599
/usr/local/j2sdk1.4.0/bin/java
40000000-40015000 r-xp 00000000 03:03 885142
/lib/ld-2.2.3.so
40015000-40016000 rw-p 00014000 03:03 885142
/lib/ld-2.2.3.so
40017000-40020000 r-xp 00000000 03:03 69536
/usr/local/j2sdk1.4.0/jre/lib/i386/native_threads/libh
i.so
40020000-40021000 rw-p 00008000 03:03 69536
/usr/local/j2sdk1.4.0/jre/lib/i386/native_threads/libh
i.so
40021000-40022000 r--p 00000000 03:03 33106
/usr/lib/locale/en_US/LC_IDENTIFICATION
40022000-40030000 r-xp 00000000 03:03 885133
/lib/libpthread-0.9.so
40030000-40038000 rw-p 0000d000 03:03 885133
/lib/libpthread-0.9.so
40038000-4003b000 r-xp 00000000 03:03 885149
/lib/libdl-2.2.3.so
4003b000-4003c000 rw-p 00002000 03:03 885149
/lib/libdl-2.2.3.so
4003c000-40143000 r-xp 00000000 03:03 885147
/lib/libc-2.2.3.so
40143000-40149000 rw-p 00106000 03:03 885147
/lib/libc-2.2.3.so
4014d000-40410000 r-xp 00000000 03:03 1150891
/usr/local/j2sdk1.4.0/jre/lib/i386/client/libjvm.so
40410000-40558000 rw-p 002c2000 03:03 1150891
/usr/local/j2sdk1.4.0/jre/lib/i386/client/libjvm.so
4056c000-4057d000 r-xp 00000000 03:03 885152
/lib/libnsl-2.2.3.so
4057d000-4057f000 rw-p 00010000 03:03 885152
/lib/libnsl-2.2.3.so
40581000-405b5000 r-xp 00000000 03:03 950285
/usr/i386-slackware-linux/lib/libstdc++-2-libc6.1-1-2.
.0.so
405b5000-405c1000 rw-p 00033000 03:03 950285
/usr/i386-slackware-linux/lib/libstdc++-2-libc6.1-1-2.
.0.so
405c3000-405e4000 r-xp 00000000 03:03 885138
/lib/libm-2.2.3.so
405e4000-405e5000 rw-p 00020000 03:03 885138
/lib/libm-2.2.3.so
405e5000-405f6000 r-xp 00000000 03:03 69542
/usr/local/j2sdk1.4.0/jre/lib/i386/libverify.so
405f6000-405f8000 rw-p 00010000 03:03 69542
/usr/local/j2sdk1.4.0/jre/lib/i386/libverify.so
405f8000-40619000 r-xp 00000000 03:03 69543
/usr/local/j2sdk1.4.0/jre/lib/i386/libjava.so
40619000-4061b000 rw-p 00020000 03:03 69543
/usr/local/j2sdk1.4.0/jre/lib/i386/libjava.so
4061c000-40630000 r-xp 00000000 03:03 69545
/usr/local/j2sdk1.4.0/jre/lib/i386/libzip.so
40630000-40633000 rw-p 00013000 03:03 69545
/usr/local/j2sdk1.4.0/jre/lib/i386/libzip.so
40633000-4063a000 r--s 00000000 03:03 890455
/usr/local/jakarta-tomcat-4.0.4/bin/bootstrap.jar
4063a000-40641000 r--s 00000000 03:03 890436
/usr/local/jakarta-tomcat-4.0.4/common/lib/naming-comm
n.jar
40641000-40655000 r--s 00000000 03:03 890437
/usr/local/jakarta-tomcat-4.0.4/common/lib/servlet.jar
40655000-4065e000 r--s 00000000 03:03 890438
/usr/local/jakarta-tomcat-4.0.4/common/lib/naming-reso
rces.jar
4065e000-40660000 r--s 00000000 03:03 890439
/usr/local/jakarta-tomcat-4.0.4/common/lib/jdbc2_0-std
xt.jar
40660000-4066c000 r--s 00000000 03:03 890440
/usr/local/jakarta-tomcat-4.0.4/common/lib/activation.
ar
4066c000-4066f000 r--s 00000000 03:03 890441
/usr/local/jakarta-tomcat-4.0.4/common/lib/jta-spec1_0
1.jar
4066f000-4082a000 r--s 00000000 03:03 890443
/usr/local/jakarta-tomcat-4.0.4/common/lib/xerces.jar
4082a000-40874000 r--s 00000000 03:03 890444
/usr/local/jakarta-tomcat-4.0.4/common/lib/tyrex-0.9.7
0.jar
40874000-408b9000 r--s 00000000 03:03 890445
/usr/local/jakarta-tomcat-4.0.4/common/lib/mail.jar
408b9000-408d2000 r--s 00000000 03:03 890446
/usr/local/jakarta-tomcat-4.0.4/common/lib/jndi.jar
408d2000-40958000 r--s 00000000 03:03 890482
/usr/local/jakarta-tomcat-4.0.4/common/lib/db2java.jar
40958000-4096e000 r--s 00000000 03:03 890483
/usr/local/jakarta-tomcat-4.0.4/common/lib/jboss-clien
.jar
4096e000-4097c000 r--s 00000000 03:03 890484
/usr/local/jakarta-tomcat-4.0.4/common/lib/jboss-j2ee.
ar
4097c000-40996000 r--s 00000000 03:03 890485
/usr/local/jakarta-tomcat-4.0.4/common/lib/jaas.jar
40996000-409a0000 r--s 00000000 03:03 890486
/usr/local/jakarta-tomcat-4.0.4/common/lib/jbosssx-cli
nt.jar
409a0000-409a6000 r--s 00000000 03:03 890487
/usr/local/jakarta-tomcat-4.0.4/common/lib/jnp-client.
ar
409a6000-40d10000 r--s 00000000 03:03 890488
/usr/local/jakarta-tomcat-4.0.4/common/lib/jt400_3.0.j
r
40d10000-40d37000 r--s 00000000 03:03 890489
/usr/local/jakarta-tomcat-4.0.4/common/lib/log4j.jar
40d37000-423af000 r--s 00000000 03:03 69634
/usr/local/j2sdk1.4.0/jre/lib/rt.jar
423f1000-42408000 r--s 00000000 03:03 69566
/usr/local/j2sdk1.4.0/jre/lib/sunrsasign.jar
42408000-42476000 r--s 00000000 03:03 69568
/usr/local/j2sdk1.4.0/jre/lib/jsse.jar
42476000-42489000 r--s 00000000 03:03 69567
/usr/local/j2sdk1.4.0/jre/lib/jce.jar
42489000-4270a000 r--s 00000000 03:03 69632
/usr/local/j2sdk1.4.0/jre/lib/charsets.jar
447b2000-447b3000 r--p 00000000 03:03 33104
/usr/lib/locale/en_US/LC_MEASUREMENT
447b3000-447b4000 r--p 00000000 03:03 33102
/usr/lib/locale/en_US/LC_TELEPHONE
447b4000-447b5000 r--p 00000000 03:03 33103
/usr/lib/locale/en_US/LC_ADDRESS
447b5000-447b6000 r--p 00000000 03:03 33100
/usr/lib/locale/en_US/LC_NAME
447b6000-447b7000 r--p 00000000 03:03 33109
/usr/lib/locale/en_US/LC_PAPER
447b7000-447b8000 r--p 00000000 03:03 459106
/usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
447b8000-447b9000 r--p 00000000 03:03 33110
/usr/lib/locale/en_US/LC_MONETARY
447b9000-447bf000 r--p 00000000 03:03 33107
/usr/lib/locale/en_US/LC_COLLATE
447bf000-447c0000 r--p 00000000 03:03 33101
/usr/lib/locale/en_US/LC_TIME
4c840000-4c841000 r--p 00000000 03:03 33105
/usr/lib/locale/en_US/LC_NUMERIC
4c841000-4c85c000 r--p 00000000 03:03 33108
/usr/lib/locale/en_US/LC_CTYPE
4c85c000-4c85e000 r--s 00000000 03:03 36766
/usr/local/j2sdk1.4.0/jre/lib/ext/dnsns.jar
4c85e000-4c866000 r--s 00000000 03:03 890421
/usr/local/jakarta-tomcat-4.0.4/server/lib/jakarta-reg
xp-1.2.jar
4c866000-4c867000 r--s 00000000 03:03 890422
/usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-co
mon.jar
4c867000-4c871000 r-xp 00000000 03:03 885148
/lib/libnss_compat-2.2.3.so
4c871000-4c873000 rw-p 00009000 03:03 885148
/lib/libnss_compat-2.2.3.so
4c89e000-4c8bb000 r--s 00000000 03:03 36765
/usr/local/j2sdk1.4.0/jre/lib/ext/sunjce_provider.jar
4c8bb000-4c95e000 r--s 00000000 03:03 36767
/usr/local/j2sdk1.4.0/jre/lib/ext/localedata.jar
4c95e000-4c96c000 r--s 00000000 03:03 36768
/usr/local/j2sdk1.4.0/jre/lib/ext/ldapsec.jar
4c96c000-4ce06000 r--s 00000000 03:03 298906
/usr/local/j2sdk1.4.0/lib/tools.jar
4ce06000-4ce0c000 r--s 00000000 03:03 890423
/usr/local/jakarta-tomcat-4.0.4/server/lib/commons-log
ing.jar
4ce0c000-4ce0e000 r--s 00000000 03:03 890424
/usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-in
oker.jar
4ce0e000-4ce11000 r--s 00000000 03:03 890425
/usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-ma
ager.jar
4ce11000-4ce19000 r--s 00000000 03:03 890426
/usr/local/jakarta-tomcat-4.0.4/server/lib/warp.jar
4ce19000-4ceab000 r--s 00000000 03:03 890427
/usr/local/jakarta-tomcat-4.0.4/server/lib/catalina.ja
4ceab000-4ceb4000 r--s 00000000 03:03 890428
/usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-http
1.jar
4ceb4000-4ceb9000 r--s 00000000 03:03 890429
/usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-de
ault.jar
4ceb9000-4cec9000 r--s 00000000 03:03 890430
/usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-ajp.
ar
4cec9000-4ceed000 r--s 00000000 03:03 890431
/usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-util
jar
4ceed000-4cefb000 r--s 00000000 03:03 890432
/usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-coyo
e.jar
4cefb000-4cf01000 r--s 00000000 03:03 890434
/usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-we
dav.jar
4cf01000-4cf13000 r-xp 00000000 03:03 69548
/usr/local/j2sdk1.4.0/jre/lib/i386/libnet.so
4cf13000-4cf14000 rw-p 00011000 03:03 69548
/usr/local/j2sdk1.4.0/jre/lib/i386/libnet.so
4cf14000-4cf25000 r--s 00000000 03:03 890458
/usr/local/jakarta-tomcat-4.0.4/lib/jasper-runtime.jar
4cf25000-4cf59000 r--s 00000000 03:03 890459
/usr/local/jakarta-tomcat-4.0.4/lib/jasper-compiler.ja
4cf59000-4cf5e000 r--s 00000000 03:03 890460
/usr/local/jakarta-tomcat-4.0.4/lib/naming-factory.jar
4cf5e000-4cf5f000 r--s 00000000 03:03 789670
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46958.tm
(deleted)
4cf5f000-4cf60000 r--s 00000000 03:03 789673
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46959.tm
(deleted)
4cf60000-4cf63000 r--s 00000000 03:03 430785
/usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
F/lib/arenajobs.jar
4cf63000-4d067000 r--s 00000000 03:03 430786
/usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
F/lib/arenatrading.jar
4d067000-4d08c000 r--s 00000000 03:03 430787
/usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
F/lib/quartz.jar
4d08c000-4d08e000 r--s 00000000 03:03 430788
/usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
F/lib/scheduler.jar
4d08e000-4d091000 r--s 00000000 03:03 790391
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46960.tm
(deleted)
4d091000-4d195000 r--s 00000000 03:03 790392
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46961.tm
(deleted)
4d195000-4d1ba000 r--s 00000000 03:03 790394
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46962.tm
(deleted)
4d1ba000-4d1bc000 r--s 00000000 03:03 790395
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46963.tm
(deleted)
4d1bc000-4d1bd000 r-xp 00000000 03:03 69559
/usr/local/j2sdk1.4.0/jre/lib/i386/librmi.so
4d1bd000-4d1be000 rw-p 00000000 03:03 69559
/usr/local/j2sdk1.4.0/jre/lib/i386/librmi.so
4d1be000-4d1c2000 r-xp 00000000 03:03 69558
/usr/local/j2sdk1.4.0/jre/lib/i386/libioser12.so
4d1c2000-4d1c3000 rw-p 00003000 03:03 69558
/usr/local/j2sdk1.4.0/jre/lib/i386/libioser12.so
4d1c9000-4d1d2000 r-xp 00000000 03:03 885155
/lib/libnss_files-2.2.3.so
4d1d2000-4d1d3000 rw-p 00008000 03:03 885155
/lib/libnss_files-2.2.3.so
Local Time = Tue Oct 8 18:57:29 2002
Elapsed Time = 32640
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002D3
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed
mode)
# An error report file has been saved as
hs_err_pid26505.log.
# Please refer to the file for further information.

Similar Messages

  • JVM Seg Fault With Multithreaded JNI Code

    Hello all:
    I'm having a problem with a multi threaded application. The application is used to bridge an exsisting C++ application with an exsisting Java application so I went with a JNI implementation. After I completed my implementation, I found that the bridge would crash after a few hours (or a few million JNI calls). At first I thought there was a memory leak but my memory usage was not going up (according to the task manager) and the heap was staying around 3 MB (according to a third party tool). I finally figured out that the problem was my JNI code. The JNI code is all in a wrapper DLL (built with MinGW) that four other DLL's call dynamically. So I made a test app to test the wrapper dll. The test app is a simple two threaded application that creates a java object and deletes the java object. CODE:
    #include <process.h>
    #include "JNIUtilityInterface.h"  // Link to the JNI dll (GetProcAdress, etc.)
    void test(void * arg) {   
       for (int i = 0; i < 4000000; i++) {
          jobject jTest = createObjectByClass(NULL, "JNITest", "()V");
          deleteObject(jTest);
       int num = (int)arg;
       printf("done - %d\n", num);              
    int main(int argc, char *argv[])
       clearJNIUtilityDll();
       initJNIUtilityDll();
       invokeJVM();         
       for (int i = 0; i < 3; i++) {
          if (i == 0) {
             _beginthread(test, 0, (void*)i);
          } else {           
             _beginthread(test, 0, (void*)i);
       Sleep(240000);
       exitJNIUtilityDll();
       return 0;
    }createObjectByClass code:
    jobject JNIUtility_API createObjectByClass(jboolean * hasException, 
                                               const char * className, 
                                               const char * descriptor, va_list args) {                                                                                                                    
       jclass clazz;
       jmethodID mid;
       jobject obj;
       JNIEnv * env;
       env = getEnv();
       if (env != NULL) {  
          if (env->EnsureLocalCapacity(2) == JNI_OK) {
             jclass clazz = env->FindClass(className);                                                
             jmethodID mid = env->GetMethodID(clazz, "<init>", descriptor);       
             if (mid) {
                obj = env->NewObjectV(clazz, mid, args);                                             
             env->DeleteLocalRef(clazz);          
          if (hasException) {
             *hasException = env->ExceptionCheck();
       env = NULL;
       return obj;
    } getEnv code:
    JNIEnv * getEnv() {          
       JNIEnv * env;
       jint result;
       result = jvm->GetEnv((void **)&env, JNI_VERSION_1_4);
       if (result == JNI_EDETACHED) {
          if (jvm->AttachCurrentThreadAsDaemon((void **)&env, NULL) == JNI_OK) {
             //printf("Attached current thread!\n");
       return env;
    }deleteObject code:
    void JNIUtility_API deleteObject(jobject obj) {
       JNIEnv * env;
       env = getEnv();
       if (env != NULL) {                                                                                                                                               
          env->DeleteLocalRef(obj);
       env = NULL;                             
    }The other code is not important since I know this is where the seg fault is happening. Again this is just test code but when I run this code with only one thread, it works fine (with the 4000000 for loop). The JavaVM is globally cached as well.
    If anybody nows how to properly run two or more native threads that use JNI methods, please let me know or if you have any tips, that will be good too! If you want any more code to try for yourself, I'm willing to send it to you.
    Thanks!!

    Nevermind, I found out that if you build you code using jni.h from 1.5.0_06 and run you code using 1.5.0_04 JRE, you run into problems with multi threading! Don't do this because it leads to headaches and high blood pressure :)

  • EXC_BAD_ACCESS and seg faults with BSD Sockets code

    Hi,
    I've been having some problems with sockets programming on a new MacBook that I've decided to do some programming on.
    So, I wrote a pretty simple program to test if the sockets are working properly, and it's only partially working.
    I've been compiling via gcc on the command line, but then I tried Xcode to see if that made any difference, and it didn't.
    Also, this program works flawlessly on FreeBSD 6.2. The Apple Developer website says that BSD sockets should work perfectly.
    Here's the code: http://www.wraithnj.com/matt/Programming/C/scrabble/server/server.c
    I've been testing this code with netcat, telnet, and this too: http://www.wraithnj.com/matt/Programming/C/scrabble/client/client.c
    Xcode and GDB reveals that it fails line 57. Or at least that's where the break point is set. Appearantly it doesn't like the FD_SET() macro... Perhaps I'm just being an idiot and don't know how to use Xcode.
    So, this is what it looks like when it fails (after connecting with a client):
    matt@mdwosx1:~/Programming/C/scrabble/server# ./server2
    Connection from: 127.0.0.1 Socket: 4
    Then the program doesn't crash. It sends the "playerid." The client receives the 1 sent.
    Then if I try to send the server any information (typing in stuff from the client) the server doesn't show that it has received the information. Then if I send 'q' from the client. It has a segmentation fault. If I just do Ctrl+C with the client, it receives another segmentation fault. I don't understand what memory it's trying to write to that it can't. I'm assuming that it's having trouble writing to the fd_set master because that's where gdb leads me, but that's confusing because that works fine on FreeBSD.
    If I connect two clients, the second the second client connects it runs into an infinite loop.
    It repeats this:
    DATA From: 2.0.0.0 Socket: 3 Data:
    DATA From: 2.0.0.0 Socket: 3 Data:
    DATA From: 2.0.0.0 Socket: 3 Data:
    DATA From: 2.0.0.0 Socket: 3 Data:
    DATA From: 2.0.0.0 Socket: 3 Data:
    DATA From: 2.0.0.0 Socket: 3 Data:
    Until you quit from both clients, where it drops a segmentation fault.
    The GDB in Xcode says EXCBADACCESS.
    I honestly have no clue what I'm doing wrong. I added a whole bunch of header files (in case Mac OS X depends upon something else). I recompiled it every which way. I reconfigured Xcode every which way.
    Could anybody help me or shed some light on what I'm doing wrong?
    -WraithM

    I did have an extra byte on each of my character arrays. The fix was adding two extra bytes. For example, with my playerid in the client, originally (in the program before the fix that worked perfectly on FreeBSD) I had playerid[1] in the declaration. Aka, two bytes. I store the first byte in the first element, then I stored the null in the second element. Under OS X, when I declared 2 elements, the recv function was overflowing into the next variable (so, it was taking up three elements, somehow). So, then I redeclared my playerid array with three elements, and it worked out. So, there's a specific difference between OS X and FreeBSD. I also did specifically take in one less byte than size of my array and null terminated by myself. For example,
    numbytes = recv(sock, playerid, 1, 0);
    playerid[numbytes] = '\0';
    Note that I originally had it declared as 2 bytes long. So, I read 1 byte in, then I null terminate the second byte. numbytes should be 1 if I'm reading 1 byte. That's what recv sends as the return value. Therefore playerid[1] = '\0';
    I did EXACTLY what you suggested even before I fixed it. Okay, so your suggestion of what the problem is isn't a fair assessment of the situation. There's a specific difference between OS X and FreeBSD. Remember, this code worked perfectly on FreeBSD before and after the changes. So, when I null terminate, it's taking up two bytes somehow. Also, it's not like the null termination is being put in the third element of the array because I tried doing:
    playerid[numbytes - 1] = '\0'; It over wrote the first element.
    I don't need to review C strings. I'm getting lucky because I guessed how to fix the situation based upon the perceived differences between OS X and FreeBSD, not because I'm making random changes. I need somebody to explain what OS X is doing that FreeBSD isn't doing (or visa versa).
    Also, you're wrong:
    Your code only works because you make sure that atoi() is less than 2 and you've make that playerfd array have [two elements].
    I originally declared it with TWO elements, and it didn't work because I didn't offset the index of playerfd. Then I declared it with three elements, and it worked. That's because I changed the size of playerfd, but now I fixed the problem (and now I am back to having two elements with a new solution), but that doesn't explain why this worked on FreeBSD and not OS X.
    Addmittedly, I didn't think about this before, but here's the real way I should have done this.
    if(atoi(&playerid) < 2)
          playerfd[atoi(&playerid) - 1] = newsock;
    Because the playerid is either 1 or 2, it'd put it in either the second or third element, not the first or second element. So, I just offset the atoi, and now I can do that with a two element declaration. It was a silly mistake on my part.
    However, that doesn't explain what's going on in the client where the null-termination is going over into the next array (unless I have 3 elements instead of something that should have 2 elements (the number then the null termination)). Nor does that explain why this code worked on FreeBSD. I can understand why the server worked in FreeBSD. There could have been nothing important after the playerfd array in the server (which doesn't really make sense, because the compilers should have the same variables next to eachother, but conceivably that's how it'd work). However, on the client, if I tried to do printf of playerid with a strange offset like in the server, then I'd get this:
    0x[0031]00 (the brackets defining where the playerid array with 2 elements is)
    It wouldn't print anything because it'd hit the null right off the bat.
    So, what must be happening is this:
    0x[3100]00
    The 00 after the playerid bracket is where the overflow is occurring. Normally, the socket file descriptor is there, and that gets overwritten with 0. In FreeBSD, it worked fine.
    So, when I define the array to be 3 elements long, it must be working like this:
    0x[310000]04 (04 being the socket file descriptor that occurs after the playerid array)
    There are two nulls... Something is strange about this. This is what I don't understand as not working in OS X and working in FreeBSD.
    Could anybody explain this?
    P.S. I don't like initializing all of my data, nor error checking during designing of a basic program. I put them in afterwards because I find them to be aesthetically displeasing, and it makes it more difficult to find stuff. I know it's stupid, but that's how I work. I put in error checking when I'm debugging specific sections, and then put it in everywhere after is all worked out. My coding style is not the problem. Admittedly, I was stupid with the server, but I honestly don't understand the client. The nature of the server and client are different. In the server, I'm using an integer array, and in the client I'm using a character array.
    Message was edited by: WraithM

  • Configure forms for running with pure java

    I know the formsweb.cgf file is where I can set this, but does someone has it
    workng with pure java (without jinitiator) and has any problem navigating between fields?
    ths is my java section in formsweb.cfg
    [appjava]
    pageTitle=Forms Version 10.1.2 Java
    form=INIT.fmx
    envFile=javaenv.env
    baseHTML=webutilbase.htm
    baseHTMLjinitiator=webutiljpi.htm
    baseHTMLjpi=webutiljpi.htm
    baseHTMLie=webutiljpi.htm
    webUtilArchive=webutil.jar,jacob.jar
    archive=gif.jar,frmall.jar, laf_1012.jar
    lookAndFeel=oracle
    imageBase=codeBase
    separateFrame=true
    networkRetries=30
    and javaenv.env file (without commented lines)
    ORACLE_HOME=/opt/oracle/ias
    FORMS_PATH=/opt/legadmi/formas:/opt/legadmi/pll:/opt/oracle/ias/forms:/opt/legadmi/webutil/forms
    WEBUTIL_CONFIG=/opt/legadmi/webutil/server/webutil.cfg
    FORMS_RESTRICT_ENTER_QUERY=FALSE
    CLASSPATH=/opt/oracle/ias/forms/java/laf_1012.jar:/opt/oracle/ias/forms/java/gif.jar
    PATH=/opt/oracle/ias/bin
    GRAPHICS60_PATH=
    LD_LIBRARY_PATH=/opt/oracle/ias/lib:/opt/oracle/ias/jdk/jre/lib/i386:/opt/oracle/ias/jdk/jre/lib/i386/server
    it starts java but in some forms i cant navigate between fields,
    any help?
    thanks!

    Solution: migrated to 11g

  • Does anybody know what is wrong with my java code?

    Does anybody know what is wrong with my java code?
    --------------------Configuration: <Default>--------------------
    stockApplet.java:47: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    if (M_pointThread==null)
    ^
    stockApplet.java:49: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    M_pointThread=new Thread(this);
    ^
    stockApplet.java:50: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    THE CODE:
    import java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    public class StockApplet extends java.applet.Applet implements Runnable
    int Move_Length=0,Move_Sum=0;
    String FileName,Name_Str,Content_Date;
    int SP[]=new int[2000];
    int KP[]=new int[2000];
    int JD[]=new int[2000];
    int JG[]=new int[2000];
    int Mid_Worth[]=new int[2000];
    String myDate[]=new String[2000];
    double CJL[]=new double[2000];
    double MaxCJL,MidCJL;
    Label label[]=new Label[10];
    int MaxWorth,MinWorth;
    int x_move0,x_move1,MaxLength=0;
    int x0,y0,X,Y,Record_Num;
    boolean Mouse_Move,Name_Change=true;
    int JX_Five1,JX_Five2,JX_Ten1,JX_Ten2;
    public void init()
    TextField text1=new TextField();
    Thread M_pointThread=null;
    setLayout(null);
    this.setBackground(Color.white);
    this.setForeground(Color.black);
    for(int i=1;i< 10;i++)
    label=new Label();
    this.add(label[i]);
    label[i].reshape(i*80-65,10,50,15);
    if(i==2){label[i].reshape(80,10,70,15);}
    if(i==7){label[i].reshape(510,10,80,15);}
    if(i >7){label[i].reshape((i-8)*490+45,380,70,15);}
    FileName="six";
    Name_Str="six";
    this.add(text1);
    text1.reshape(150,385,70,20);
    text1.getText();
    public void start()
    if (M_pointThread==null)
    M_pointThread=new Thread(this);
    M_pointThread.start();

    Welcome to the forum. I think that George123 has your problem and its solution well in hand. Follow his good advice and you will have solved this problem. One other thing though just for future reference. If you post your code, here, you are going to want someone to be able to read it easily. Please use code tags when posting next time and your code will be much easier on the eye. You can find out about them here:
    http://forum.java.sun.com/help.jspa?sec=formatting

  • Should I use Process/Mapper or Pure Java Code for XI Adapter?

    Hi Friends,
    I'm developing a XI Adapter which including sending http request and also data transform, I prefer to implement all the functions by Java Code.
    But In NetWeaver XI Server, I find there are tools for creating process and mappers, they also can implement the same functions as Java Code.
    So what's your consideration on implementing a function by process or Java code?
    Thanks in advance.
    Best Regards,
    Jason

    Hello Jason.
    It is a huge job to create your on adapter and I would recommend you to use the default installed adapters whenever possible. Included in the default installed adapters are to name a few; HTTP, FTP, File, SOAP, RFC and IDOC.
    Which kind of messages are you transferring with XI? If it's simple XML structures I would recommend you to use Graphical Message Mappings or XSL. If your structures are a bit more complex or if your are transferring byte-structure files I would recommend you to use Java Mappings.
    Best Regards,
    Jacob

  • Problems with backing Java Code

    Earlier I manually deleted the processChange event handler method for a textfield from the backing java code. As I had no plans to use that event handler. Now my page abends with a message stating that the process chnage method is not available. I tried to add via the event handler for the textbox using the GUI but it does not add the process change event handler method. Using an another process change method as a model I manually entered the code to handle process change for the text bos. Now I am getting an internal server exception - Null in one of the parameters. PLEASE HELP. What are my options - Delete and re-create the entire page

    Hi,
    Yes I am using the recommeded code: The Text field generating the null exception is addDataSourceTF. Whenever we click on the addDataSourceBTN we get an Internal exception.
    Thanks very much for looking into this problem. Any advice will be greatly appreciated.
    <h:panelGrid binding="#{MainPage.gridPanel1}" cellpadding="3" cellspacing="2" columnClasses="" id="gridPanel1" style="background-color: rgb(204, 255, 204); left: 48px; top: 312px; position: absolute">
    <h:inputText binding="#{MainPage.addDataSourceTF}" id="addDataSourceTF" style="font-family: Arial,Helvetica,sans-serif"
    validator="#{MainPage.addDataSourceTF_validate}" valueChangeListener="#{MainPage.addDataSourceTF_processValueChange}"/>
    <h:commandButton action="#{MainPage.addDataSourceBTN_action}" binding="#{MainPage.addDataSourceBTN}" id="addDataSourceBTN"
    image="resources/button32.jpg" value="Add Data Source"/>
    <h:selectOneMenu binding="#{MainPage.deleteDataSourceDD}" id="deleteDataSourceDD" immediate="true" onchange="this.form.submit();"
    style="height: 23px; width: 164px" valueChangeListener="#{MainPage.deleteDataSourceDD_processValueChange}">
    <f:selectItems binding="#{MainPage.dropdown1SelectItems}" id="dropdown1SelectItems" value="#{MainPage.database_infoRowSet.selectItems['DB_SRC,DB_SRC']}"/>
    </h:selectOneMenu>
    <h:commandButton action="#{MainPage.deleteDataSourceBTN_action}" binding="#{MainPage.deleteDataSourceBTN}" id="deleteDataSourceBTN"
    image="resources/delete.jpg" value="Submit"/>
    </h:panelGrid>
    Backing Java Code:
    * MainPage.java
    * Created on December 15, 2004, 1:45 AM
    * Copyright adear1
    package dissertation;
    import javax.faces.*;
    import com.sun.jsfcl.app.*;
    import javax.faces.component.html.*;
    import com.sun.jsfcl.data.*;
    import javax.faces.component.*;
    import javax.faces.event.*;
    import com.sun.sql.rowset.*;
    import javax.faces.context.FacesContext;
    import javax.faces.application.FacesMessage;
    import javax.faces.convert.*;
    import java.sql.*;
    import javax.naming.*;
    import javax.sql.DataSource;
    import java.lang.*;
    import javax.faces.context.*;
    public class MainPage extends AbstractPageBean {
    // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
    private int __placeholder;
    private HtmlForm form1 = new HtmlForm();
    public HtmlForm getForm1() {
    return form1;
    public void setForm1(HtmlForm hf) {
    this.form1 = hf;
    private HtmlCommandButton addDataSourceBTN = new HtmlCommandButton();
    public HtmlCommandButton getAddDataSourceBTN() {
    return addDataSourceBTN;
    public void setAddDataSourceBTN(HtmlCommandButton hcb) {
    this.addDataSourceBTN = hcb;
    private HtmlCommandButton searchDataBTN = new HtmlCommandButton();
    public HtmlCommandButton getSearchDataBTN() {
    return searchDataBTN;
    public void setSearchDataBTN(HtmlCommandButton hcb) {
    this.searchDataBTN = hcb;
    private HtmlCommandButton scrubbingRulesBTN = new HtmlCommandButton();
    public HtmlCommandButton getScrubbingRulesBTN() {
    return scrubbingRulesBTN;
    public void setScrubbingRulesBTN(HtmlCommandButton hcb) {
    this.scrubbingRulesBTN = hcb;
    private HtmlCommandButton scrubDataSourceBTN = new HtmlCommandButton();
    public HtmlCommandButton getScrubDataSourceBTN() {
    return scrubDataSourceBTN;
    public void setScrubDataSourceBTN(HtmlCommandButton hcb) {
    this.scrubDataSourceBTN = hcb;
    private HtmlCommandButton uploadDataSourceBTN = new HtmlCommandButton();
    public HtmlCommandButton getUploadDataSourceBTN() {
    return uploadDataSourceBTN;
    public void setUploadDataSourceBTN(HtmlCommandButton hcb) {
    this.uploadDataSourceBTN = hcb;
    private HtmlCommandButton deleteDataSourceBTN = new HtmlCommandButton();
    public HtmlCommandButton getDeleteDataSourceBTN() {
    return deleteDataSourceBTN;
    public void setDeleteDataSourceBTN(HtmlCommandButton hcb) {
    this.deleteDataSourceBTN = hcb;
    private HtmlInputText addDataSourceTF = new HtmlInputText();
    public HtmlInputText getAddDataSourceTF() {
    return addDataSourceTF;
    public void setAddDataSourceTF(HtmlInputText hit) {
    this.addDataSourceTF = hit;
    private HtmlSelectOneMenu deleteDataSourceDD = new HtmlSelectOneMenu();
    public HtmlSelectOneMenu getDeleteDataSourceDD() {
    return deleteDataSourceDD;
    public void setDeleteDataSourceDD(HtmlSelectOneMenu hsom) {
    this.deleteDataSourceDD = hsom;
    private DefaultSelectItemsArray dropdown1DefaultItems = new DefaultSelectItemsArray();
    public DefaultSelectItemsArray getDropdown1DefaultItems() {
    return dropdown1DefaultItems;
    public void setDropdown1DefaultItems(DefaultSelectItemsArray dsia) {
    this.dropdown1DefaultItems = dsia;
    private UISelectItems dropdown1SelectItems = new UISelectItems();
    public UISelectItems getDropdown1SelectItems() {
    return dropdown1SelectItems;
    public void setDropdown1SelectItems(UISelectItems uisi) {
    this.dropdown1SelectItems = uisi;
    private HtmlPanelGrid gridPanel1 = new HtmlPanelGrid();
    public HtmlPanelGrid getGridPanel1() {
    return gridPanel1;
    public void setGridPanel1(HtmlPanelGrid hpg) {
    this.gridPanel1 = hpg;
    private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
    public HtmlPanelGrid getGridPanel2() {
    return gridPanel2;
    public void setGridPanel2(HtmlPanelGrid hpg) {
    this.gridPanel2 = hpg;
    private HtmlOutputText welcomeOT = new HtmlOutputText();
    public HtmlOutputText getWelcomeOT() {
    return welcomeOT;
    public void setWelcomeOT(HtmlOutputText hot) {
    this.welcomeOT = hot;
    private JdbcRowSetXImpl database_infoRowSet = new JdbcRowSetXImpl();
    public JdbcRowSetXImpl getDatabase_infoRowSet() {
    return database_infoRowSet;
    public void setDatabase_infoRowSet(JdbcRowSetXImpl jrsxi) {
    this.database_infoRowSet = jrsxi;
    private DefaultSelectItemsArray listbox1DefaultItems1 = new DefaultSelectItemsArray();
    public DefaultSelectItemsArray getListbox1DefaultItems1() {
    return listbox1DefaultItems1;
    public void setListbox1DefaultItems1(DefaultSelectItemsArray dsia) {
    this.listbox1DefaultItems1 = dsia;
    private HtmlSelectOneListbox dataSourceLB = new HtmlSelectOneListbox();
    public HtmlSelectOneListbox getDataSourceLB() {
    return dataSourceLB;
    public void setDataSourceLB(HtmlSelectOneListbox hsol) {
    this.dataSourceLB = hsol;
    private DefaultSelectItemsArray listbox1DefaultItems2 = new DefaultSelectItemsArray();
    public DefaultSelectItemsArray getListbox1DefaultItems2() {
    return listbox1DefaultItems2;
    public void setListbox1DefaultItems2(DefaultSelectItemsArray dsia) {
    this.listbox1DefaultItems2 = dsia;
    private UISelectItems listbox1SelectItems = new UISelectItems();
    public UISelectItems getListbox1SelectItems() {
    return listbox1SelectItems;
    public void setListbox1SelectItems(UISelectItems uisi) {
    this.listbox1SelectItems = uisi;
    private JdbcRowSetXImpl database_infoRowSet1 = new JdbcRowSetXImpl();
    public JdbcRowSetXImpl getDatabase_infoRowSet1() {
    return database_infoRowSet1;
    public void setDatabase_infoRowSet1(JdbcRowSetXImpl jrsxi) {
    this.database_infoRowSet1 = jrsxi;
    private JdbcRowSetXImpl user_tableRowSet = new JdbcRowSetXImpl();
    public JdbcRowSetXImpl getUser_tableRowSet() {
    return user_tableRowSet;
    public void setUser_tableRowSet(JdbcRowSetXImpl jrsxi) {
    this.user_tableRowSet = jrsxi;
    private HtmlMessages messageList1 = new HtmlMessages();
    public HtmlMessages getMessageList1() {
    return messageList1;
    public void setMessageList1(HtmlMessages hm) {
    this.messageList1 = hm;
    private HtmlOutputText welcomeOT1 = new HtmlOutputText();
    public HtmlOutputText getWelcomeOT1() {
    return welcomeOT1;
    public void setWelcomeOT1(HtmlOutputText hot) {
    this.welcomeOT1 = hot;
    // </editor-fold>
    public MainPage() {
    // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
    try {
    database_infoRowSet.setDataSourceName("java:comp/env/jdbc/mySQL");
    database_infoRowSet.setCommand("SELECT ALL database_info.DB_SRC, database_info.USER_ID FROM database_info WHERE database_info.USER_ID = ?");
    database_infoRowSet1.setDataSourceName("java:comp/env/jdbc/mySQL");
    database_infoRowSet1.setCommand("SELECT ALL database_info.DB_SRC, database_info.DB_URL, database_info.DB_SCHEMA, database_info.DB_TYPE, database_info.USER_ID FROM database_info WHERE database_info.USER_ID = ?");
    user_tableRowSet.setDataSourceName("java:comp/env/jdbc/mySQL");
    user_tableRowSet.setCommand("SELECT * FROM user_table");
    } catch (Exception e) {
    log("MainPage Initialization Failure", e);
    throw e instanceof javax.faces.FacesException ? (FacesException) e: new FacesException(e);
    // </editor-fold>
    // Additional user provided initialization code
    try{
    database_infoRowSet.setString(1, getSessionBean1().getSbUserID());
    database_infoRowSet1.setString(1, getSessionBean1().getSbUserID());
    database_infoRowSet.execute();
    database_infoRowSet1.execute();
    database_infoRowSet1.first();
    if (database_infoRowSet.next()) {
    // If no row found then make the following button's as readonly
    database_infoRowSet.first();
    else {
    FacesContext fc =
    javax.faces.context.FacesContext.getCurrentInstance();
    fc.addMessage(null, new FacesMessage(
    "Please Add Data Source to Begin Processing", ""));
    searchDataBTN.setDisabled(true);
    scrubbingRulesBTN.setDisabled(true);
    scrubDataSourceBTN.setDisabled(true);
    uploadDataSourceBTN.setDisabled(true);
    catch (Exception ex){
    log("Error in initializing database_info Row Set", ex);
    protected dissertation.ApplicationBean1 getApplicationBean1() {
    return (dissertation.ApplicationBean1)getBean("ApplicationBean1");
    protected dissertation.SessionBean1 getSessionBean1() {
    return (dissertation.SessionBean1)getBean("SessionBean1");
    * Bean cleanup.
    protected void afterRenderResponse() {
    user_tableRowSet.close();
    database_infoRowSet1.close();
    database_infoRowSet.close();
    public String searchDataBTN_action() {
    // TODO Following code was replaced by static navigation
    // TODO Replace with your code
    //if no value selected then we prompt them to select a row
    if (dataSourceLB.getValue().equals("")||dataSourceLB.getValue()== null){
    // return error msg to select a row before continuing
    FacesContext fc =
    javax.faces.context.FacesContext.getCurrentInstance();
    fc.addMessage(null, new FacesMessage("Please select a data source to process", ""));
    return null;
    else {
    // call method to retrieve the db_schema from the
    getDbDetails();
    getDbDriver();
    return "searchcriticaldata";
    public String scrubbingRulesBTN_action() {
    // TODO Replace with your code
    if (dataSourceLB.getValue().equals("")||dataSourceLB.getValue()== null){
    // return error msg to select a row before continuing
    FacesContext fc =
    javax.faces.context.FacesContext.getCurrentInstance();
    fc.addMessage(null, new FacesMessage("Please select a data source to process", ""));
    return null;
    else {
    // call method to retrieve the db_schema from the
    getDbDetails();
    getDbDriver();
    return "definecolumnrules";
    public String scrubDataSourceBTN_action() {
    // TODO Replace with your code
    if (dataSourceLB.getValue().equals("")||dataSourceLB.getValue()== null){
    // return error msg to select a row before continuing
    FacesContext fc =
    javax.faces.context.FacesContext.getCurrentInstance();
    fc.addMessage(null, new FacesMessage("Please select a data source to process", ""));
    return null;
    else {
    // call method to retrieve the db_schema from the
    getDbDetails();
    getDbDriver();
    return "scrubdata";
    public String uploadDataSourceBTN_action() {
    // TODO Replace with your code
    if (dataSourceLB.getValue().equals("")||dataSourceLB.getValue()== null){
    // return error msg to select a row before continuing
    FacesContext fc =
    javax.faces.context.FacesContext.getCurrentInstance();
    fc.addMessage(null, new FacesMessage("Please select a data source to process", ""));
    return null;
    else {
    // call method to retrieve the db_schema from the
    getDbDetails();
    getDbDriver();
    return "uploaddata";
    public String addDataSourceBTN_action() {
    // TODO Following code was replaced by static navigation
    if ( false) {
    // TODO Replace with your code
    if (addDataSourceTF.getValue().equals("")){
    FacesContext fc =
    javax.faces.context.FacesContext.getCurrentInstance();
    fc.addMessage(null, new FacesMessage(
    "Please specify Data Source to Add", ""));
    return null;
    else {
    String woSpaces = ((String)addDataSourceTF.getValue()).replace(' ', '_');
    getSessionBean1().setSbDataSrc(woSpaces);
    return "adddatasrc";
    return "adddatasrc";
    public void getDbDetails(){
    try {
    Context ctx = new InitialContext();
    if (ctx == null) throw new NamingException("No Initial Context");
    DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/mySQL");
    if (ds == null) throw new NamingException("No Data Source mySQL");
    Connection conn = ds.getConnection();
    if (conn == null)
    throw new SQLException("Unable to establish connection");
    String sql = "Select db_src, db_url, db_schema, db_type user_id, src_password from database_info where db_src=?";
    PreparedStatement pstmt = conn.prepareStatement(sql);
    pstmt.setString(1, (String) dataSourceLB.getValue());
    ResultSet rs = pstmt.executeQuery();
    if (rs.next()){
    getSessionBean1().setSbDataSrc(rs.getString("db_src"));
    getSessionBean1().setSbDb_Schema(rs.getString("db_schema"));
    getSessionBean1().setSbDb_Type(rs.getString("db_type"));
    getSessionBean1().setSbDb_Userid(rs.getString("user_id"));
    getSessionBean1().setSbDb_Password(rs.getString("src_password"));
    else
    java.lang.System.out.println("DB_Schema not found for db_src " +
    (String) dataSourceLB.getValue());
    rs.close();
    pstmt.close();
    conn.close();
    catch (SQLException ex) {
    java.lang.System.out.println("\n ----- SQL Exception caught ------\n");
    while (ex !=null){
    java.lang.System.out.println("Message: " + ex.getMessage());
    java.lang.System.out.println("SQLState: " + ex.getSQLState());
    java.lang.System.out.println("ErrorCode: " + ex.getErrorCode());
    ex = ex.getNextException();
    java.lang.System.out.println("");
    catch (NamingException e){
    java.lang.System.out.println("messge unable to establish context in changepassword.jsp");
    public void getDbDriver(){
    try {
    Context ctx = new InitialContext();
    if (ctx == null) throw new NamingException("No Initial Context");
    DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/mySQL");
    if (ds == null) throw new NamingException("No Data Source mySQL");
    Connection conn = ds.getConnection();
    if (conn == null)
    throw new SQLException("Unable to establish connection");
    String sql = "Select db_driver from database_type where db_type=?";
    PreparedStatement pstmt = conn.prepareStatement(sql);
    pstmt.setString(1, getSessionBean1().getSbDb_Type());
    ResultSet rs = pstmt.executeQuery();
    if (rs.next()){
    getSessionBean1().setSbDb_Driver(rs.getString("db_driver"));
    else
    java.lang.System.out.println("DB_Driver not found for db_src " +
    (String) dataSourceLB.getValue());
    rs.close();
    pstmt.close();
    conn.close();
    catch (SQLException ex) {
    java.lang.System.out.println("\n ----- SQL Exception caught ------\n");
    while (ex !=null){
    java.lang.System.out.println("Message: " + ex.getMessage());
    java.lang.System.out.println("SQLState: " + ex.getSQLState());
    java.lang.System.out.println("ErrorCode: " + ex.getErrorCode());
    ex = ex.getNextException();
    java.lang.System.out.println("");
    catch (NamingException e){
    java.lang.System.out.println("messge unable to establish context in changepassword.jsp");
    public String deleteDataSourceBTN_action() {
    // TODO Replace with your code
    try {
    Context ctx = new InitialContext();
    if (ctx == null) throw new NamingException("No Initial Context");
    DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/mySQL");
    if (ds == null) throw new NamingException("No Data Source mySQL");
    Connection conn = ds.getConnection();
    if (conn == null)
    throw new SQLException("Unable to establish connection");
    String sql = "Delete from database_info where db_src=?";
    PreparedStatement pstmt = conn.prepareStatement(sql);
    pstmt.setString(1, (String) deleteDataSourceDD.getValue());
    pstmt.executeUpdate();
    pstmt.close();
    conn.close();
    return "success";
    catch (SQLException ex) {
    java.lang.System.out.println("\n ----- SQL Exception caught ------\n");
    while (ex !=null){
    java.lang.System.out.println("Message: " + ex.getMessage());
    java.lang.System.out.println("SQLState: " + ex.getSQLState());
    java.lang.System.out.println("ErrorCode: " + ex.getErrorCode());
    ex = ex.getNextException();
    java.lang.System.out.println("");
    return "failure";
    catch (NamingException e){
    java.lang.System.out.println("messge unable to establish context in changepassword.jsp");
    return "failure";
    public void addDataSourceTF_processValueChange(ValueChangeEvent vce) {
    // TODO Replace with your code
    public void deleteDataSourceDD_processValueChange(ValueChangeEvent vce) {
    // TODO Replace with your code
    public void addDataSourceTF_validate(FacesContext fc, UIComponent uic, Object o) {
    // TODO Replace with your code
    }

  • Help me with my java code

    i have an assignment from the book java programming d.s malik.
    problem:
    for research purposes and to assist students, the admissions office of your local university wants to determine the performance of the female and male students in certain courses. You receive a file that contains female and male students' GPAs for certain courses. Due to confidentiality, the letter code f is used for female and m is used for male. every file entry consists of a letter code followed by a GPA. each line has one entry. the number of entries in the file is unknown. write a program that computes and outputs the average gpa for both female and male students. format your result to two decimal places.
    solution:
    this is what i have come up with:
    import java.io.*;
    import java.util.*;
    class Assignment6
         public static void main(String[] args)
                                  throws FileNotFoundException
               String str,
                         gender;
               double counter = 0;
               double counter2 = 0;
               double gpa = 0;
               double sum1, sum2;
               double average1, average2;
               Scanner console = new Scanner(System.in);
               Scanner inFile = new Scanner(new FileReader("gpa.txt"));
               PrintWriter outFile = new PrintWriter("gpa.out");
               gender = inFile.next();
               gpa = inFile.nextDouble();
               while(gender.charAt(0) != 'x')
                    if(gender == 'm')
                        sum1+= gpa;
                       counter = counter + 1.0;
                       average1 = sum1/counter;
                   else if(gender == 'f')
                        sum2+= gpa;
                        counter2 = counter2 + 1.0;
                        average2 = sum2/counter2;
               System.out.println("The count is " + counter);
               System.out.println("The average is = " + average1);
               System.out.println("The count is " + counter2);
               System.out.println("The average is = " + average2);
              outFile.print("There are " + counter + " male students.");
             outFile.printf("Average GPA for male students is: " + average1);
             outFile.print("There are " + counter2 + " female students.");
             outFile.printf("Average GPA for female students is: " + average2);
             outFile.close();
    }and the text file is
    gpa.txt
    m 2.4
    f 3.2
    m 3.7
    m 4.0
    f 2.9
    f 1.8
    f 3.8
    m 1.7
    m 3.4
    f 2.6
    m 2.8
    m 1.7
    f 3.7
    m 3.9
    f 4.0
    f 3.6
    m 2.3
    f 2.9
    m 3.0
    m 2.7
    x
    question:
    i couldn't compile and run it, i get 2 errors:
    M:\School\CSCI - 111 - Classwork\Assignments\Java1\Assignment6.java:29: incomparable types: java.lang.String and char
                   if(gender == 'm')
                   ^
    M:\School\CSCI - 111 - Classwork\Assignments\Java1\Assignment6.java:35: incomparable types: java.lang.String and char
                   else if(gender == 'f')
    thanks

    okay i did everything, but i still couldn't get it to work. i wonder if im using a wrong solution. or is there anything i didn't know before even proceeding into this?
    update:
    import java.io.*;
    import java.util.*;
    class Assignment6
         public static void main(String[] args)
                                  throws FileNotFoundException
               String str,
                        gender;
               double cntMale = 0;
               double cntFemale = 0;
               double gpa = 0;
               double sumMale = 0, sumFemale = 0;
               double avgMale = 0, avgFemale = 0;
               Scanner console = new Scanner(System.in);
               Scanner inFile = new Scanner(new FileReader("gpa.txt"));
               PrintWriter outFile = new PrintWriter("gpa.out");
               gender = inFile.next();
               gpa = inFile.nextDouble();
               while(gender.charAt(0) != 'x')
                    if(gender.charAt(0) == 'm')
                        sumMale+= gpa;
                       cntMale = cntMale + 1.0;
                   else if(gender.charAt(0) == 'f')
                        sumFemale+= gpa;
                        cntFemale = cntFemale + 1.0;
              avgMale = sumMale/cntMale;
              avgFemale = sumFemale/cntFemale;
               System.out.println("The count is " + cntMale);
               System.out.println("The average is = " + avgMale);
               System.out.println("The count is " + cntFemale);
               System.out.println("The average is = " + avgFemale);
              outFile.print("There are " + cntMale + " male students.");
             outFile.printf("Average GPA for male students is: " + avgMale);
             outFile.print("There are " + cntFemale + " female students.");
             outFile.printf("Average GPA for female students is: " + avgFemale);
              inFile.close();
             outFile.close();
    }Edited by: spkenn5 on Nov 9, 2008 4:31 PM

  • How to Create Symbolic link using pure Java code?

    Hi,
    I would appreciate if someone can tell me how to create symbolic link using JAVA API. I have looked into many forums but couldn't get a better answer.

    Java is likely not the tool to use here, as symlinks are not present in Windows while "pure" Java attempts to be platform independent. You could use Runtime.exec to execute the ln -s command
    http://forum.java.sun.com/thread.jspa?threadID=664475&messageID=3892685
    Good Luck
    Lee

  • Starting JVM from C++ via JNI with specified java.library.path switch...

    Please how i can pass java.library.path switch to JVM during JVM creating in C++...????

    Check out this tutorial: http://java.sun.com/j2se/1.4.2/docs/guide/jni/jni-12.html
    Do a search for the word 'Djava.library.path'
    fitz

  • Cant build source. Seg fault with echo 'm4_define([m4_require SOLVED

    building always gives me an error like
    echo 'm4_define([m4_require_silent_probe], [-])'
         15470 Segmentation fault      | autom4te --language Autoconf-without-aclocal-m4 -......
    aura >>= Building `emprint-git`...
    aura >>= Well, building `emprint-git` failed.
    aura >>= Dumping makepkg output in 3.. 2.. 1..
    ==> Making package: emprint-git 0.1.0.67.a0886e1-1 (Tue Aug 5 01:22:52 CDT 2014)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving sources...
    -> Cloning emprint git repo...
    Cloning into bare repository '/var/cache/pacman/pkg/emprint-git9157/emprint-git/emprint'...
    ==> Validating source files with sha256sums...
    emprint ... Skipped
    ==> Extracting sources...
    -> Creating working copy of emprint git repo...
    Cloning into 'emprint'...
    done.
    ==> Starting pkgver()...
    ==> Starting build()...
    sh: line 1: 15469 Done echo 'm4_define([m4_require_silent_probe], [-])'
    15470 Segmentation fault | autom4te --language Autoconf-without-aclocal-m4 - /usr/share/aclocal-1.14/internal/ac-config-macro-dirs.m4 '/usr/share/aclocal/argz.m4' '/usr/share/aclocal/libtool.m4' '/usr/share/aclocal/ltdl.m4' '/usr/share/aclocal/ltoptions.m4' '/usr/share/aclocal/ltsugar.m4' '/usr/share/aclocal/ltversion.m4' '/usr/share/aclocal/lt~obsolete.m4' '/usr/share/aclocal/pkg.m4' '/usr/share/aclocal-1.14/amversion.m4' '/usr/share/aclocal-1.14/auxdir.m4' '/usr/share/aclocal-1.14/cond.m4' '/usr/share/aclocal-1.14/depend.m4' '/usr/share/aclocal-1.14/depout.m4' '/usr/share/aclocal-1.14/init.m4' '/usr/share/aclocal-1.14/install-sh.m4' '/usr/share/aclocal-1.14/lead-dot.m4' '/usr/share/aclocal-1.14/make.m4' '/usr/share/aclocal-1.14/missing.m4' '/usr/share/aclocal-1.14/options.m4' '/usr/share/aclocal-1.14/prog-cc-c-o.m4' '/usr/share/aclocal-1.14/runlog.m4' '/usr/share/aclocal-1.14/sanity.m4' '/usr/share/aclocal-1.14/silent.m4' '/usr/share/aclocal-1.14/strip.m4' '/usr/share/aclocal-1.14/substnot.m4' '/usr/share/aclocal-1.14/tar.m4' 'm4/ac_attribute.m4' 'm4/efl_path_max.m4' --trace='AC_DEFUN:$f::$n::${::}%' --trace='AC_DEFUN_ONCE:$f::$n::${::}%' --trace='AU_DEFUN:$f::$n::${::}%' --trace='_AM_AUTOCONF_VERSION:$f::$n::${::}%' --trace='AC_CONFIG_MACRO_DIR_TRACE:$f::$n::${::}%' --trace='AC_CONFIG_MACRO_DIR:$f::$n::${::}%' --trace='_AM_CONFIG_MACRO_DIRS:$f::$n::${::}%' --trace='LTSUGAR_VERSION:$f::$n' --trace='AM_PROG_NM:$f::$n' --trace='_LT_AC_SYS_LIBPATH_AIX:$f::$n' --trace='AC_LIBTOOL_SYS_OLD_ARCHIVE:$f::$n' --trace='_LT_AC_LANG_CXX_CONFIG:$f::$n' --trace='AC_LIBTOOL_DLOPEN_SELF:$f::$n' --trace='AC_LIBTOOL_OBJDIR:$f::$n' --trace='AC_LIBTOOL_CXX:$f::$n' --trace='gl_FUNC_ARGZ:$f::$n' --trace='_AM_MANGLE_OPTION:$f::$n' --trace='AC_CHECK_LIBM:$f::$n' --trace='_LT_AC_FILE_LTDLL_C:$f::$n' --trace='AC_LTDL_OBJDIR:$f::$n' --trace='_AC_AM_CONFIG_HEADER_HOOK:$f::$n' --trace='LT_WITH_LTDL:$f::$n' --trace='_LT_PROG_F77:$f::$n' --trace='_LT_AC_LANG_GCJ:$f::$n' --trace='AC_DISABLE_FAST_INSTALL:$f::$n' --trace='LT_LIB_M:$f::$n' --trace='_LT_LINKER_OPTION:$f::$n' --trace='AM_ENABLE_STATIC:$f::$n' --trace='LT_SYS_DLSEARCH_PATH:$f::$n' --trace='AC_LTDL_DLLIB:$f::$n' --trace='AM_DISABLE_STATIC:$f::$n' --trace='AM_SUBST_NOTMAKE:$f::$n' --trace='LT_SYS_DLOPEN_SELF:$f::$n' --trace='AC_LTDL_SYS_DLOPEN_DEPLIBS:$f::$n' --trace='AC_LTDL_DLSYM_USCORE:$f::$n' --trace='LTOBSOLETE_VERSION:$f::$n' --trace='gl_PREREQ_ARGZ:$f::$n' --trace='LT_PROG_RC:$f::$n' --trace='PKG_PROG_PKG_CONFIG:$f::$n' --trace='AC_LIBTOOL_COMPILER_OPTION:$f::$n' --trace='LT_SYS_SYMBOL_USCORE:$f::$n' --trace='AM_CONDITIONAL:$f::$n' --trace='AC_LIBTOOL_LINKER_OPTION:$f::$n' --trace='AC_LIBTOOL_SYS_HARD_LINK_LOCKS:$f::$n' --trace='AC_LIBTOOL_DLOPEN:$f::$n' --trace='AC_LIBTOOL_SYS_LIB_STRIP:$f::$n' --trace='LT_PATH_LD:$f::$n' --trace='_LT_LINKER_BOILERPLATE:$f::$n' --trace='LT_FUNC_DLSYM_USCORE:$f::$n' --trace='_LT_AC_LANG_F77:$f::$n' --trace='AM_MISSING_PROG:$f::$n' --trace='_AM_SET_OPTIONS:$f::$n' --trace='AC_C___ATTRIBUTE__:$f::$n' --trace='_AM_SET_OPTION:$f::$n' --trace='_LT_AC_TRY_DLOPEN_SELF:$f::$n' --trace='_LT_PROG_FC:$f::$n' --trace='AM_SET_DEPDIR:$f::$n' --trace='_AC_PROG_LIBTOOL:$f::$n' --trace='LT_OUTPUT:$f::$n' --trace='AC_ENABLE_SHARED:$f::$n' --trace='_AM_PROG_CC_C_O:$f::$n' --trace='AM_PROG_LIBTOOL:$f::$n' --trace='AC_LIBLTDL_CONVENIENCE:$f::$n' --trace='PKG_CHECK_VAR:$f::$n' --trace='AC_PROG_NM:$f::$n' --trace='AC_LIBTOOL_RC:$f::$n' --trace='AM_DISABLE_SHARED:$f::$n' --trace='_LT_AC_PROG_CXXCPP:$f::$n' --trace='AM_AUTOMAKE_VERSION:$f::$n' --trace='AC_LIBTOOL_F77:$f::$n' --trace='_LT_AC_LANG_GCJ_CONFIG:$f::$n' --trace='LT_AC_PROG_GCJ:$f::$n' --trace='AC_LIBTOOL_PROG_COMPILER_PIC:$f::$n' --trace='AM_MAKE_INCLUDE:$f::$n' --trace='AM_SANITY_CHECK:$f::$n' --trace='AC_LTDL_SHLIBPATH:$f::$n' --trace='_LT_AC_CHECK_DLFCN:$f::$n' --trace='_AM_SUBST_NOTMAKE:$f::$n' --trace='AM_RUN_LOG:$f::$n' --trace='AC_PROG_EGREP:$f::$n' --trace='_LT_AC_PROG_ECHO_BACKSLASH:$f::$n' --trace='PKG_CHECK_EXISTS:$f::$n' --trace='_PKG_SHORT_ERRORS_SUPPORTED:$f::$n' --trace='LT_PROG_GCJ:$f::$n' --trace='AC_LIBTOOL_GCJ:$f::$n' --trace='AC_LTDL_SHLIBEXT:$f::$n' --trace='AC_LTDL_ENABLE_INSTALL:$f::$n' --trace='AC_LIBTOOL_FC:$f::$n' --trace='AM_PROG_INSTALL_STRIP:$f::$n' --trace='AC_WITH_LTDL:$f::$n' --trace='AC_LIBTOOL_SETUP:$f::$n' --trace='_LT_AC_TAGVAR:$f::$n' --trace='AC_LIBTOOL_PROG_LD_SHLIBS:$f::$n' --trace='_LT_AC_LANG_RC_CONFIG:$f::$n' --trace='AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH:$f::$n' --trace='_LT_COMPILER_BOILERPLATE:$f::$n' --trace='AC_DISABLE_SHARED:$f::$n' --trace='AC_LIBTOOL_PICMODE:$f::$n' --trace='LTOPTIONS_VERSION:$f::$n' --trace='EFL_CHECK_PATH_MAX:$f::$n' --trace='AC_LTDL_PREOPEN:$f::$n' --trace='AC_LIBTOOL_LANG_CXX_CONFIG:$f::$n' --trace='AM_SET_LEADING_DOT:$f::$n' --trace='LT_SYS_MODULE_PATH:$f::$n' --trace='LTDL_CONVENIENCE:$f::$n' --trace='AM_DEP_TRACK:$f::$n' --trace='AC_PATH_TOOL_PREFIX:$f::$n' --trace='_LT_LIBOBJ:$f::$n' --trace='_LT_PREPARE_SED_QUOTE_VARS:$f::$n' --trace='AC_LIB_LTDL:$f::$n' --trace='AC_DEPLIBS_CHECK_METHOD:$f::$n' --trace='_LT_AC_LOCK:$f::$n' --trace='_LT_PROG_LTMAIN:$f::$n' --trace='LT_LANG:$f::$n' --trace='AM_OUTPUT_DEPENDENCY_COMMANDS:$f::$n' --trace='PKG_NOARCH_INSTALLDIR:$f::$n' --trace='AC_LIBTOOL_LANG_F77_CONFIG:$f::$n' --trace='PKG_INSTALLDIR:$f::$n' --trace='LT_AC_PROG_SED:$f::$n' --trace='AC_LIBTOOL_PROG_COMPILER_NO_RTTI:$f::$n' --trace='_AM_DEPENDENCIES:$f::$n' --trace='AC_LIBTOOL_SYS_MAX_CMD_LEN:$f::$n' --trace='AC_LIBTOOL_LANG_GCJ_CONFIG:$f::$n' --trace='_LT_AC_LANG_F77_CONFIG:$f::$n' --trace='_LT_AC_LANG_CXX:$f::$n' --trace='_LTDL_SETUP:$f::$n' --trace='LT_INIT:$f::$n' --trace='AM_AUX_DIR_EXPAND:$f::$n' --trace='_LT_PROG_ECHO_BACKSLASH:$f::$n' --trace='_LT_REQUIRED_DARWIN_CHECKS:$f::$n' --trace='LT_SYS_MODULE_EXT:$f::$n' --trace='AC_PROG_LD_RELOAD_FLAG:$f::$n' --trace='_AM_OUTPUT_DEPENDENCY_COMMANDS:$f::$n' --trace='LT_LIB_DLLOAD:$f::$n' --trace='_LT_AC_TAGCONFIG:$f::$n' --trace='AC_LIBTOOL_SYS_DYNAMIC_LINKER:$f::$n' --trace='LTVERSION_VERSION:$f::$n' --trace='AM_SET_CURRENT_AUTOMAKE_VERSION:$f::$n' --trace='LT_CONFIG_LTDL_DIR:$f::$n' --trace='AM_ENABLE_SHARED:$f::$n' --trace='AC_LIBTOOL_POSTDEP_PREDEP:$f::$n' --trace='AC_ENABLE_STATIC:$f::$n' --trace='AC_LIBTOOL_CONFIG:$f::$n' --trace='AC_LIBLTDL_INSTALLABLE:$f::$n' --trace='AM_SILENT_RULES:$f::$n' --trace='AC_PROG_LD_GNU:$f::$n' --trace='PKG_CHECK_MODULES:$f::$n' --trace='LT_PATH_NM:$f::$n' --trace='_LT_COMPILER_OPTION:$f::$n' --trace='AM_INIT_AUTOMAKE:$f::$n' --trace='_LT_AC_SYS_COMPILER:$f::$n' --trace='AC_LTDL_SYSSEARCHPATH:$f::$n' --trace='AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE:$f::$n' --trace='_LT_WITH_SYSROOT:$f::$n' --trace='LT_SUPPORTED_TAG:$f::$n' --trace='_LT_PROG_CXX:$f::$n' --trace='AC_LTDL_SYMBOL_USCORE:$f::$n' --trace='AC_LIBTOOL_WIN32_DLL:$f::$n' --trace='_LT_AC_SHELL_INIT:$f::$n' --trace='AC_LIBTOOL_LANG_RC_CONFIG:$f::$n' --trace='LT_PROG_GO:$f::$n' --trace='_LT_PATH_TOOL_PREFIX:$f::$n' --trace='AC_LIBTOOL_LANG_C_CONFIG:$f::$n' --trace='LT_AC_PROG_RC:$f::$n' --trace='AC_PROG_LD:$f::$n' --trace='_LT_CC_BASENAME:$f::$n' --trace='_LT_AC_LANG_C_CONFIG:$f::$n' --trace='AM_PROG_INSTALL_SH:$f::$n' --trace='LTDL_INIT:$f::$n' --trace='LT_CMD_MAX_LEN:$f::$n' --trace='AM_PROG_LD:$f::$n' --trace='AM_MISSING_HAS_RUN:$f::$n' --trace='AM_PROG_CC_C_O:$f::$n' --trace='_AM_IF_OPTION:$f::$n' --trace='AC_DISABLE_STATIC:$f::$n' --trace='AC_LIBTOOL_PROG_CC_C_O:$f::$n' --trace='LT_AC_PROG_EGREP:$f::$n' --trace='LT_SYS_DLOPEN_DEPLIBS:$f::$n' --trace='AC_PROG_LIBTOOL:$f::$n' --trace='LTDL_INSTALLABLE:$f::$n' --trace='AC_PATH_MAGIC:$f::$n' --trace='_AM_PROG_TAR:$f::$n' --trace='AC_ENABLE_FAST_INSTALL:$f::$n' configure.ac
    aclocal: error: echo failed with exit status: 139
    ==> ERROR: A failure occurred in build().
    Aborting...
    Running aclocal...
    aura >>= Building `lightmediascanner`...
    aura >>= Well, building `lightmediascanner` failed.
    aura >>= Dumping makepkg output in 3.. 2.. 1..
    ==> Making package: lightmediascanner 0.4.5.0-1 (Tue Aug 5 01:22:58 CDT 2014)
    ==> WARNING: Using a PKGBUILD without a package() function is deprecated.
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving sources...
    -> Downloading lightmediascanner-0.4.5.0.tar.bz2...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: timeout Will retry in 3 seconds. 3 retries left.
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: timeout Will retry in 3 seconds. 2 retries left.
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: timeout Will retry in 3 seconds. 1 retries left.
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: packages.profusion.mobi
    ==> ERROR: Failure while downloading lightmediascanner-0.4.5.0.tar.bz2
    Aborting...
    aura >>= Building `enjoy-git`...
    aura >>= Well, building `enjoy-git` failed.
    aura >>= Dumping makepkg output in 3.. 2.. 1..
    ==> Making package: enjoy-git 0.1.0.205.aa8fec6-1 (Tue Aug 5 01:23:13 CDT 2014)
    ==> Checking runtime dependencies...
    ==> Missing dependencies:
    -> lightmediascanner
    ==> Checking buildtime dependencies...
    ==> ERROR: Could not resolve all dependencies.
    aura >>= Building `enlightenment-git`...
    aura >>= Well, building `enlightenment-git` failed.
    aura >>= Dumping makepkg output in 3.. 2.. 1..
    ==> Making package: enlightenment-git 0.19.0.18507.1a321b8-1 (Tue Aug 5 01:23:17 CDT 2014)
    ==> Checking runtime dependencies...
    ==> Missing dependencies:
    -> elementary-git
    ==> Checking buildtime dependencies...
    ==> ERROR: Could not resolve all dependencies.
    aura >>= Building `eperiodique`...
    loading packages...
    resolving dependencies...
    looking for inter-conflicts...
    Packages (1): eperiodique-0.5-1
    Total Installed Size: 10.80 MiB
    :: Proceed with installation? [Y/n]
    (1/1) checking keys in keyring [#######################################################################################] 100%
    (1/1) checking package integrity [#######################################################################################] 100%
    (1/1) loading package files [#######################################################################################] 100%
    (1/1) checking for file conflicts [#######################################################################################] 100%
    (1/1) checking available disk space [#######################################################################################] 100%
    (1/1) installing eperiodique [#######################################################################################] 100%
    aura >>= Building `ephoto-git`...
    aura >>= Well, building `ephoto-git` failed.
    aura >>= Dumping makepkg output in 3.. 2.. 1..
    ==> Making package: ephoto-git 0.1.1.475.f1df50a-1 (Tue Aug 5 01:23:42 CDT 2014)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving sources...
    -> Cloning ephoto git repo...
    Cloning into bare repository '/var/cache/pacman/pkg/ephoto-git9157/ephoto-git/ephoto'...
    ==> Validating source files with sha256sums...
    ephoto ... Skipped
    ==> Extracting sources...
    -> Creating working copy of ephoto git repo...
    Cloning into 'ephoto'...
    done.
    ==> Starting pkgver()...
    ==> Updated version: ephoto-git 0.1.1.482.9cae696-1
    ==> Starting build()...
    /usr/bin/autopoint: line 314: 18844 Done echo "AC_PREREQ([2.69])"
    18845 Segmentation fault | "$AUTOM4TE" --no-cache --language=Autoconf-without-aclocal-m4 - 2>&1
    sh: line 1: 19725 Done echo 'm4_define([m4_require_silent_probe], [-])'
    19726 Segmentation fault | autom4te --language Autoconf-without-aclocal-m4 - /usr/share/aclocal-1.14/internal/ac-config-macro-dirs.m4 '/usr/share/aclocal/argz.m4' '/usr/share/aclocal/libtool.m4' '/usr/share/aclocal/ltdl.m4' '/usr/share/aclocal/ltoptions.m4' '/usr/share/aclocal/ltsugar.m4' '/usr/share/aclocal/ltversion.m4' '/usr/share/aclocal/lt~obsolete.m4' '/usr/share/aclocal/pkg.m4' '/usr/share/aclocal-1.14/amversion.m4' '/usr/share/aclocal-1.14/auxdir.m4' '/usr/share/aclocal-1.14/cond.m4' '/usr/share/aclocal-1.14/depend.m4' '/usr/share/aclocal-1.14/depout.m4' '/usr/share/aclocal-1.14/init.m4' '/usr/share/aclocal-1.14/install-sh.m4' '/usr/share/aclocal-1.14/lead-dot.m4' '/usr/share/aclocal-1.14/make.m4' '/usr/share/aclocal-1.14/missing.m4' '/usr/share/aclocal-1.14/mkdirp.m4' '/usr/share/aclocal-1.14/options.m4' '/usr/share/aclocal-1.14/prog-cc-c-o.m4' '/usr/share/aclocal-1.14/runlog.m4' '/usr/share/aclocal-1.14/sanity.m4' '/usr/share/aclocal-1.14/silent.m4' '/usr/share/aclocal-1.14/strip.m4' '/usr/share/aclocal-1.14/substnot.m4' '/usr/share/aclocal-1.14/tar.m4' 'm4/ac_attribute.m4' 'm4/codeset.m4' 'm4/efl_compiler_flag.m4' 'm4/gettext.m4' 'm4/glibc2.m4' 'm4/glibc21.m4' 'm4/iconv.m4' 'm4/intdiv0.m4' 'm4/intl.m4' 'm4/intlmacosx.m4' 'm4/intmax.m4' 'm4/inttypes-pri.m4' 'm4/inttypes_h.m4' 'm4/lcmessage.m4' 'm4/lib-ld.m4' 'm4/lib-link.m4' 'm4/lib-prefix.m4' 'm4/lock.m4' 'm4/longlong.m4' 'm4/nls.m4' 'm4/po.m4' 'm4/printf-posix.m4' 'm4/progtest.m4' 'm4/size_max.m4' 'm4/stdint_h.m4' 'm4/uintmax_t.m4' 'm4/visibility.m4' 'm4/wchar_t.m4' 'm4/wint_t.m4' 'm4/xsize.m4' --trace='AC_DEFUN:$f::$n::${::}%' --trace='AC_DEFUN_ONCE:$f::$n::${::}%' --trace='AU_DEFUN:$f::$n::${::}%' --trace='_AM_AUTOCONF_VERSION:$f::$n::${::}%' --trace='AC_CONFIG_MACRO_DIR_TRACE:$f::$n::${::}%' --trace='AC_CONFIG_MACRO_DIR:$f::$n::${::}%' --trace='_AM_CONFIG_MACRO_DIRS:$f::$n::${::}%' --trace='AC_LIBTOOL_PICMODE:$f::$n' --trace='AM_ICONV_LINK:$f::$n' --trace='AC_LIBTOOL_SYS_LIB_STRIP:$f::$n' --trace='LT_FUNC_DLSYM_USCORE:$f::$n' --trace='AC_LIBTOOL_CONFIG:$f::$n' --trace='_LT_AC_LANG_F77_CONFIG:$f::$n' --trace='AC_LIB_RPATH:$f::$n' --trace='LTSUGAR_VERSION:$f::$n' --trace='_LT_AC_SYS_COMPILER:$f::$n' --trace='LT_CONFIG_LTDL_DIR:$f::$n' --trace='AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH:$f::$n' --trace='AC_LIB_PREPARE_MULTILIB:$f::$n' --trace='AC_LIB_PROG_LD_GNU:$f::$n' --trace='AC_TYPE_LONG_LONG_INT:$f::$n' --trace='gt_INTL_SUBDIR_CORE:$f::$n' --trace='gl_LOCK_BODY:$f::$n' --trace='gt_PRINTF_POSIX:$f::$n' --trace='AC_LTDL_SHLIBPATH:$f::$n' --trace='LT_WITH_LTDL:$f::$n' --trace='AC_LIBTOOL_LANG_RC_CONFIG:$f::$n' --trace='_LT_PROG_FC:$f::$n' --trace='AC_PROG_NM:$f::$n' --trace='AC_LTDL_PREOPEN:$f::$n' --trace='_AC_AM_CONFIG_HEADER_HOOK:$f::$n' --trace='_LT_AC_LANG_CXX:$f::$n' --trace='LT_PROG_GCJ:$f::$n' --trace='_LT_REQUIRED_DARWIN_CHECKS:$f::$n' --trace='_AM_MANGLE_OPTION:$f::$n' --trace='AM_XGETTEXT_OPTION:$f::$n' --trace='_LT_AC_PROG_CXXCPP:$f::$n' --trace='AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE:$f::$n' --trace='AC_LIBTOOL_DLOPEN_SELF:$f::$n' --trace='AC_LIB_PROG_LD:$f::$n' --trace='AM_GNU_GETTEXT_VERSION:$f::$n' --trace='AC_LTDL_OBJDIR:$f::$n' --trace='AC_LIBTOOL_WIN32_DLL:$f::$n' --trace='AC_LIBTOOL_COMPILER_OPTION:$f::$n' --trace='AC_LIBTOOL_SETUP:$f::$n' --trace='_LT_AC_LANG_GCJ_CONFIG:$f::$n' --trace='LTDL_CONVENIENCE:$f::$n' --trace='LT_SYS_MODULE_PATH:$f::$n' --trace='LTVERSION_VERSION:$f::$n' --trace='AM_CONDITIONAL:$f::$n' --trace='AC_TYPE_UNSIGNED_LONG_LONG_INT:$f::$n' --trace='AM_DEP_TRACK:$f::$n' --trace='AM_PO_SUBDIRS:$f::$n' --trace='AM_ICONV_LINKFLAGS_BODY:$f::$n' --trace='AM_XGETTEXT_OPTION_INIT:$f::$n' --trace='AM_SUBST_NOTMAKE:$f::$n' --trace='LT_AC_PROG_EGREP:$f::$n' --trace='AC_PROG_LD_GNU:$f::$n' --trace='gl_XSIZE:$f::$n' --trace='gt_INTTYPES_PRI:$f::$n' --trace='gt_LC_MESSAGES:$f::$n' --trace='AC_LIBTOOL_PROG_LD_SHLIBS:$f::$n' --trace='_LT_PROG_CXX:$f::$n' --trace='AC_LIBLTDL_CONVENIENCE:$f::$n' --trace='AM_PROG_INSTALL_STRIP:$f::$n' --trace='LTOBSOLETE_VERSION:$f::$n' --trace='AC_LIBTOOL_CXX:$f::$n' --trace='AM_PATH_PROG_WITH_TEST:$f::$n' --trace='AC_PATH_MAGIC:$f::$n' --trace='_LT_LIBOBJ:$f::$n' --trace='AC_PROG_LD:$f::$n' --trace='AM_SET_CURRENT_AUTOMAKE_VERSION:$f::$n' --trace='AM_SET_DEPDIR:$f::$n' --trace='EFL_COMPILER_FLAG:$f::$n' --trace='AC_LIBTOOL_PROG_COMPILER_PIC:$f::$n' --trace='AC_LIB_LINKFLAGS:$f::$n' --trace='_LT_AC_LANG_F77:$f::$n' --trace='AC_DISABLE_STATIC:$f::$n' --trace='LT_AC_PROG_SED:$f::$n' --trace='AM_AUX_DIR_EXPAND:$f::$n' --trace='_LT_LINKER_BOILERPLATE:$f::$n' --trace='gt_CHECK_DECL:$f::$n' --trace='AM_GNU_GETTEXT_NEED:$f::$n' --trace='AC_LIBTOOL_PROG_CC_C_O:$f::$n' --trace='AC_DISABLE_SHARED:$f::$n' --trace='_LT_AC_LOCK:$f::$n' --trace='AC_LIBTOOL_SYS_HARD_LINK_LOCKS:$f::$n' --trace='AC_LIBTOOL_LANG_F77_CONFIG:$f::$n' --trace='AC_LIBTOOL_SYS_MAX_CMD_LEN:$f::$n' --trace='AC_DISABLE_FAST_INSTALL:$f::$n' --trace='_AM_SET_OPTION:$f::$n' --trace='gl_FUNC_ARGZ:$f::$n' --trace='AC_LTDL_SYS_DLOPEN_DEPLIBS:$f::$n' --trace='AC_LIB_LINKFLAGS_BODY:$f::$n' --trace='AC_LIB_LTDL:$f::$n' --trace='_AM_DEPENDENCIES:$f::$n' --trace='AM_PROG_NM:$f::$n' --trace='AC_LTDL_SYSSEARCHPATH:$f::$n' --trace='gl_AC_HEADER_STDINT_H:$f::$n' --trace='_LT_CC_BASENAME:$f::$n' --trace='AC_LIB_PREFIX:$f::$n' --trace='_LT_PROG_F77:$f::$n' --trace='_LT_AC_TRY_DLOPEN_SELF:$f::$n' --trace='AM_INIT_AUTOMAKE:$f::$n' --trace='AC_DEPLIBS_CHECK_METHOD:$f::$n' --trace='AC_ENABLE_SHARED:$f::$n' --trace='_AC_TYPE_LONG_LONG_SNIPPET:$f::$n' --trace='AC_LIBTOOL_SYS_OLD_ARCHIVE:$f::$n' --trace='_LT_AC_LANG_RC_CONFIG:$f::$n' --trace='AM_SILENT_RULES:$f::$n' --trace='gl_PREREQ_ARGZ:$f::$n' --trace='LT_OUTPUT:$f::$n' --trace='AC_LIBTOOL_OBJDIR:$f::$n' --trace='LT_PATH_LD:$f::$n' --trace='LT_INIT:$f::$n' --trace='gl_AC_HEADER_INTTYPES_H:$f::$n' --trace='LT_SYS_SYMBOL_USCORE:$f::$n' --trace='_LT_AC_TAGCONFIG:$f::$n' --trace='PKG_CHECK_VAR:$f::$n' --trace='AC_PROG_LD_RELOAD_FLAG:$f::$n' --trace='AC_LIBTOOL_LINKER_OPTION:$f::$n' --trace='_LT_WITH_SYSROOT:$f::$n' --trace='_AM_SET_OPTIONS:$f::$n' --trace='AM_PROG_MKDIR_P:$f::$n' --trace='AC_LTDL_ENABLE_INSTALL:$f::$n' --trace='AC_LIB_LINKFLAGS_FROM_LIBS:$f::$n' --trace='AM_ENABLE_STATIC:$f::$n' --trace='AM_PROG_INSTALL_SH:$f::$n' --trace='gt_TYPE_WINT_T:$f::$n' --trace='_AM_PROG_CC_C_O:$f::$n' --trace='gt_INTDIV0:$f::$n' --trace='AC_LTDL_DLSYM_USCORE:$f::$n' --trace='AC_LTDL_SHLIBEXT:$f::$n' --trace='AC_PROG_EGREP:$f::$n' --trace='_LT_AC_LANG_CXX_CONFIG:$f::$n' --trace='AC_LIBTOOL_PROG_COMPILER_NO_RTTI:$f::$n' --trace='AM_INTL_SUBDIR:$f::$n' --trace='AC_LIBTOOL_LANG_GCJ_CONFIG:$f::$n' --trace='AC_LIB_WITH_FINAL_PREFIX:$f::$n' --trace='gl_LOCK_EARLY:$f::$n' --trace='AC_LIBTOOL_POSTDEP_PREDEP:$f::$n' --trace='LT_SYS_MODULE_EXT:$f::$n' --trace='gt_TYPE_WCHAR_T:$f::$n' --trace='AC_LIBTOOL_FC:$f::$n' --trace='LT_PROG_RC:$f::$n' --trace='LTDL_INSTALLABLE:$f::$n' --trace='AC_WITH_LTDL:$f::$n' --trace='PKG_INSTALLDIR:$f::$n' --trace='_LTDL_SETUP:$f::$n' --trace='AM_LANGINFO_CODESET:$f::$n' --trace='_AM_OUTPUT_DEPENDENCY_COMMANDS:$f::$n' --trace='AM_PROG_LD:$f::$n' --trace='AC_LIBTOOL_LANG_C_CONFIG:$f::$n' --trace='AC_COMPUTE_INT:$f::$n' --trace='AC_ENABLE_FAST_INSTALL:$f::$n' --trace='LT_SUPPORTED_TAG:$f::$n' --trace='AC_LIB_PREPARE_PREFIX:$f::$n' --trace='AC_:$f::$n' --trace='LT_SYS_DLOPEN_DEPLIBS:$f::$n' --trace='AC_LTDL_SYMBOL_USCORE:$f::$n' --trace='gt_GLIBC2:$f::$n' --trace='LT_SYS_DLOPEN_SELF:$f::$n' --trace='PKG_PROG_PKG_CONFIG:$f::$n' --trace='LTOPTIONS_VERSION:$f::$n' --trace='LT_LIB_DLLOAD:$f::$n' --trace='AM_PROG_CC_C_O:$f::$n' --trace='_LT_AC_PROG_ECHO_BACKSLASH:$f::$n' --trace='LT_AC_PROG_GCJ:$f::$n' --trace='_LT_COMPILER_BOILERPLATE:$f::$n' --trace='_LT_PATH_TOOL_PREFIX:$f::$n' --trace='AM_ENABLE_SHARED:$f::$n' --trace='AM_OUTPUT_DEPENDENCY_COMMANDS:$f::$n' --trace='LTDL_INIT:$f::$n' --trace='AC_C___ATTRIBUTE__:$f::$n' --trace='PKG_CHECK_MODULES:$f::$n' --trace='_LT_AC_TAGVAR:$f::$n' --trace='_LT_LINKER_OPTION:$f::$n' --trace='EFL_LINKER_FLAG:$f::$n' --trace='AM_AUTOMAKE_VERSION:$f::$n' --trace='AC_LIBTOOL_SYS_DYNAMIC_LINKER:$f::$n' --trace='gl_LOCK_EARLY_BODY:$f::$n' --trace='LT_PATH_NM:$f::$n' --trace='AM_SANITY_CHECK:$f::$n' --trace='AM_MISSING_HAS_RUN:$f::$n' --trace='AC_LIB_APPENDTOVAR:$f::$n' --trace='_AM_IF_OPTION:$f::$n' --trace='gl_AC_TYPE_UINTMAX_T:$f::$n' --trace='_LT_AC_SYS_LIBPATH_AIX:$f::$n' --trace='_LT_PROG_ECHO_BACKSLASH:$f::$n' --trace='AC_LIB_HAVE_LINKFLAGS:$f::$n' --trace='AC_LIBTOOL_RC:$f::$n' --trace='AC_ENABLE_STATIC:$f::$n' --trace='_LT_AC_CHECK_DLFCN:$f::$n' --trace='AM_RUN_LOG:$f::$n' --trace='_LT_AC_LANG_GCJ:$f::$n' --trace='gt_INTL_MACOSX:$f::$n' --trace='PKG_CHECK_EXISTS:$f::$n' --trace='LT_LANG:$f::$n' --trace='_LT_AC_FILE_LTDLL_C:$f::$n' --trace='gt_TYPE_INTMAX_T:$f::$n' --trace='AC_LIBTOOL_DLOPEN:$f::$n' --trace='_AC_PROG_LIBTOOL:$f::$n' --trace='gl_SIZE_MAX:$f::$n' --trace='AM_MAKE_INCLUDE:$f::$n' --trace='_PKG_SHORT_ERRORS_SUPPORTED:$f::$n' --trace='_LT_PROG_LTMAIN:$f::$n' --trace='AM_ICONV:$f::$n' --trace='AM_GNU_GETTEXT:$f::$n' --trace='gl_VISIBILITY:$f::$n' --trace='AM_NLS:$f::$n' --trace='_LT_COMPILER_OPTION:$f::$n' --trace='LT_AC_PROG_RC:$f::$n' --trace='gl_LOCK:$f::$n' --trace='AC_LTDL_DLLIB:$f::$n' --trace='LT_CMD_MAX_LEN:$f::$n' --trace='AM_DISABLE_STATIC:$f::$n' --trace='AC_LIBTOOL_GCJ:$f::$n' --trace='AC_LIB_ARG_WITH:$f::$n' --trace='LT_PROG_GO:$f::$n' --trace='AM_SET_LEADING_DOT:$f::$n' --trace='_LT_AC_SHELL_INIT:$f::$n' --trace='_AM_PROG_TAR:$f::$n' --trace='_AM_SUBST_NOTMAKE:$f::$n' --trace='LT_LIB_M:$f::$n' --trace='gl_PREREQ_LOCK:$f::$n' --trace='AM_MISSING_PROG:$f::$n' --trace='AC_PROG_LIBTOOL:$f::$n' --trace='AM_DISABLE_SHARED:$f::$n' --trace='AC_LIBTOOL_F77:$f::$n' --trace='AC_LIBTOOL_LANG_CXX_CONFIG:$f::$n' --trace='AC_LIBLTDL_INSTALLABLE:$f::$n' --trace='LT_SYS_DLSEARCH_PATH:$f::$n' --trace='_LT_PREPARE_SED_QUOTE_VARS:$f::$n' --trace='gl_GLIBC21:$f::$n' --trace='AM_PROG_LIBTOOL:$f::$n' --trace='PKG_NOARCH_INSTALLDIR:$f::$n' --trace='_LT_AC_LANG_C_CONFIG:$f::$n' --trace='AC_CHECK_LIBM:$f::$n' --trace='AM_POSTPROCESS_PO_MAKEFILE:$f::$n' --trace='AC_PATH_TOOL_PREFIX:$f::$n' configure.ac
    aclocal: error: echo failed with exit status: 139
    ==> ERROR: A failure occurred in build().
    Aborting...
    Last edited by sirus20x6 (2014-08-06 11:19:27)

    sirus@stareater ~/mesa :( $ /usr/bin/autom4te
    Segmentation fault
    sirus@stareater ~/mesa :( $ strace -e trace=file /usr/bin/autom4te
    execve("/usr/bin/autom4te", ["/usr/bin/autom4te"], [/* 23 vars */]) = 0
    access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
    open("/usr/lib/perl5/core_perl/CORE/tls/x86_64/libperl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/CORE/tls/x86_64", 0x7fff168d8110) = -1 ENOENT (No such file or directory)
    open("/usr/lib/perl5/core_perl/CORE/tls/libperl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/CORE/tls", 0x7fff168d8110) = -1 ENOENT (No such file or directory)
    open("/usr/lib/perl5/core_perl/CORE/x86_64/libperl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/CORE/x86_64", 0x7fff168d8110) = -1 ENOENT (No such file or directory)
    open("/usr/lib/perl5/core_perl/CORE/libperl.so", O_RDONLY|O_CLOEXEC) = 3
    open("/usr/lib/perl5/core_perl/CORE/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
    open("/usr/lib/perl5/core_perl/CORE/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
    open("/usr/lib/perl5/core_perl/CORE/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
    open("/usr/lib/perl5/core_perl/CORE/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = 3
    open("/usr/lib/perl5/core_perl/CORE/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
    open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
    open("/dev/urandom", O_RDONLY) = 3
    readlink("/proc/self/exe", "/usr/bin/perl", 4095) = 13
    open("/usr/bin/autom4te", O_RDONLY) = 3
    stat("/usr/share/autoconf/Autom4te/C4che.pmc", 0x7fff168d7fe0) = -1 ENOENT (No such file or directory)
    stat("/usr/share/autoconf/Autom4te/C4che.pm", {st_mode=S_IFREG|0644, st_size=4913, ...}) = 0
    open("/usr/share/autoconf/Autom4te/C4che.pm", O_RDONLY) = 4
    stat("/usr/share/autoconf/Data/Dumper.pmc", 0x7fff168d7970) = -1 ENOENT (No such file or directory)
    stat("/usr/share/autoconf/Data/Dumper.pm", 0x7fff168d78a0) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/Data/Dumper.pmc", 0x7fff168d7970) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/Data/Dumper.pm", {st_mode=S_IFREG|0444, st_size=43263, ...}) = 0
    open("/usr/lib/perl5/site_perl/Data/Dumper.pm", O_RDONLY) = 5
    stat("/usr/share/autoconf/Carp.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/share/autoconf/Carp.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/Carp.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/Carp.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/Carp.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/Carp.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/Carp.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/Carp.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/Carp.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/Carp.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/Carp.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/Carp.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/Carp.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/Carp.pm", {st_mode=S_IFREG|0444, st_size=28465, ...}) = 0
    open("/usr/share/perl5/core_perl/Carp.pm", O_RDONLY) = 6
    stat("/usr/share/autoconf/strict.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/share/autoconf/strict.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/strict.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/strict.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/strict.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/strict.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/strict.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/strict.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/strict.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/strict.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/strict.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/strict.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/strict.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/strict.pm", {st_mode=S_IFREG|0444, st_size=3925, ...}) = 0
    open("/usr/share/perl5/core_perl/strict.pm", O_RDONLY) = 7
    stat("/usr/share/autoconf/warnings.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/share/autoconf/warnings.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/warnings.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/warnings.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/warnings.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/warnings.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/warnings.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/warnings.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/warnings.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/warnings.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/warnings.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/warnings.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/warnings.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/warnings.pm", {st_mode=S_IFREG|0444, st_size=39427, ...}) = 0
    open("/usr/share/perl5/core_perl/warnings.pm", O_RDONLY) = 7
    stat("/usr/share/autoconf/Exporter.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/share/autoconf/Exporter.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/Exporter.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/Exporter.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/Exporter.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/Exporter.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/Exporter.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/Exporter.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/Exporter.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/Exporter.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/Exporter.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/Exporter.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/Exporter.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/Exporter.pm", {st_mode=S_IFREG|0444, st_size=18744, ...}) = 0
    open("/usr/share/perl5/core_perl/Exporter.pm", O_RDONLY) = 6
    stat("/usr/share/autoconf/XSLoader.pmc", 0x7fff168d7350) = -1 ENOENT (No such file or directory)
    stat("/usr/share/autoconf/XSLoader.pm", 0x7fff168d7280) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/XSLoader.pmc", 0x7fff168d7350) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/XSLoader.pm", 0x7fff168d7280) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/XSLoader.pmc", 0x7fff168d7350) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/XSLoader.pm", 0x7fff168d7280) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/XSLoader.pmc", 0x7fff168d7350) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/XSLoader.pm", 0x7fff168d7280) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/XSLoader.pmc", 0x7fff168d7350) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/XSLoader.pm", 0x7fff168d7280) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/XSLoader.pmc", 0x7fff168d7350) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/XSLoader.pm", 0x7fff168d7280) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/XSLoader.pmc", 0x7fff168d7350) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/XSLoader.pm", {st_mode=S_IFREG|0444, st_size=10234, ...}) = 0
    open("/usr/share/perl5/core_perl/XSLoader.pm", O_RDONLY) = 6
    stat("/usr/lib/perl5/site_perl/auto/Data/Dumper/Dumper.bs", 0x1d13238) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/auto/Data/Dumper/Dumper.so", {st_mode=S_IFREG|0555, st_size=40348, ...}) = 0
    stat("/usr/lib/perl5/site_perl/auto/Data/Dumper/Dumper.bs", 0x1d13238) = -1 ENOENT (No such file or directory)
    open("/usr/lib/perl5/site_perl/auto/Data/Dumper/Dumper.so", O_RDONLY|O_CLOEXEC) = 6
    --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x5} ---
    +++ killed by SIGSEGV +++
    Segmentation fault
    sirus@stareater ~/mesa :( $
    Last edited by sirus20x6 (2014-08-06 08:59:40)

  • How to read Microsoft Project File(.mpp) with pure Java?

    Hi all:
    I want to read Mircorsoft Project File in Solaris,but it too difficult to me.
    Anyone that can help me with this it would be much appreciated!
    Eagle

    most of microsoft documents (doc,excel,mpp) files are formatted in propriety way. at the same time they follow some xml standards.
    i think you can get those xml DTDs and try to build read mpp as xml.
    have a trial in that way also.

  • Needed help with updating java code

    Hello all,
    Let me begin by let you know I am not a programmer and I have tried to solve this by reading on the net. I am a network admin so I tech knowledge but no programming.
    I have a webcam sending a Jpg to an FTP site and there I have used an applet called view.class to refresh once a second.
    site:http://70.154.170.253/webcamold.html
    My problems is now that it refreshes the same image over and over. It refreshes the cached image not the new image.
    From reading I suspect that it has to do with the newer version of java (it used to work fine).
    I have tried using JavaCam but same issue it just refreshes cached image. Also image flickers, the applet I am trying to fix was really smooth.
    I have also tried to compile code that I found on this forum but I got error dealing with deprecated code.
    Any help would be greatly appreciated!!!
    Code:
    import java.applet.Applet;
    import java.awt.*;
    import java.io.PrintStream;
    public class View extends Applet
    implements Runnable
    public void init()
    setBackground(Color.white);
    String s = getParameter("refresh");
    if(s == null)
    update = 30;
    else
    try
    update = Integer.parseInt(s);
    catch(Exception _ex)
    update = 30;
    filename = getParameter("picture");
    if(filename == null)
    System.out.println("No filename given as parameter.");
    md = new MediaTracker(this);
    off = createImage(size().width, size().height);
    refreshImage();
    public void paint(Graphics g)
    g.drawImage(off, 0, 0, this);
    public void update(Graphics g)
    paint(g);
    public void refreshImage()
    img = getImage(getDocumentBase(), filename);
    md.addImage(img, 0);
    try
    md.waitForID(0);
    catch(Exception exception)
    exception.printStackTrace();
    Graphics g = off.getGraphics();
    g.drawImage(img, 0, 0, this);
    img.flush();
    public void run()
    while(th != null)
    try
    refreshImage();
    repaint();
    Thread.sleep(update * 1000);
    catch(Exception exception)
    System.out.println("Error when thread was supposed to sleep: " + exception.getMessage());
    public void start()
    if(th == null)
    th = new Thread(this);
    try
    th.start();
    return;
    catch(Exception exception)
    System.out.println("Couldn't start thread: " + exception.getMessage());
    return;
    } else
    return;
    public void stop()
    if(th != null)
    th.stop();
    th = null;
    public void destroy()
    stop();
    public View()
    update = 30;
    Thread th;
    String filename;
    int update;
    Image img;
    Image off;
    MediaTracker md;

    This is compile error free code and regarding your issues i don't think am good at this stuff
    import java.applet.Applet;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.MediaTracker;
    public class View extends Applet implements Runnable {
         Thread th;
         String filename;
         int update;
         Image img;
         Image off;
         MediaTracker md;
         public void init() {
              setBackground(Color.white);
              String s = getParameter("refresh");
              if (s == null) {
                   update = 30;
              } else {
                   try {
                        update = Integer.parseInt(s);
                   } catch (Exception _ex) {
                        update = 30;
              filename = getParameter("picture");
              if (filename == null) {
                   System.out.println("No filename given as parameter.");
              md = new MediaTracker(this);
              off = createImage(size().width, size().height);
              refreshImage();
         public void paint(Graphics g) {
              g.drawImage(off, 0, 0, this);
         public void update(Graphics g) {
              paint(g);
         public void refreshImage() {
              img = getImage(getDocumentBase(), filename);
              md.addImage(img, 0);
              try {
                   md.waitForID(0);
              } catch (Exception exception) {
                   exception.printStackTrace();
              Graphics g = off.getGraphics();
              g.drawImage(img, 0, 0, this);
              img.flush();
         public void run() {
              while (th != null) {
                   try {
                        refreshImage();
                        repaint();
                        Thread.sleep(update * 1000);
                   } catch (Exception exception) {
                        System.out.println("Error when thread was supposed to sleep: "
                                  + exception.getMessage());
         public void start() {
              if (th == null) {
                   th = new Thread(this);
                   try {
                        th.start();
                        return;
                   } catch (Exception exception) {
                        System.out.println("Couldn't start thread: "
                                  + exception.getMessage());
                   return;
              } else {
                   return;
         public void stop() {
              if (th != null) {
                   th.stop();
                   th = null;
         public void destroy() {
              stop();
         public View() {
              update = 30;
    }

  • How can i retrieve a computer name with a java code

    hello friends,
    please, can i get help on how i can rtrieve the name of a computer(any at all) using java - a code will be appreciated.
    i also wish to ask if you know how i can use the JFileChooser class, such that when i click on a file to select it and then click on the open button, the file will open / show in a TextArea which i have already created.
    Moreso, how can i use the JFileChooser to save something i've written in a TextArea, as file to a system.
    thanks in advance for your useful advice. quite grateful.

    'result' is a String I think.
    As for your JFileChooser question...
    Create your take the file returned from JFileChooser, open it in a BufferedReader (I'm assuming it's text as you want to display it in a JTextArea) then read the lines out.
    JFileChooser fc = new JFileChooser();
    fc.showOpenDialog(null);
    File file = fc.getSelectedFile();
    if (file != null) {
    try {
    BufferedReader in = new BufferedReader(new FileReader(file));
    String inputLine;
    String total = "";
    while ((inputLine = in.readLine()) != null)
    total+=inputLine;
    in.close();
    textarea.setText(total); // textarea = your JTextArea
    } catch (Exception e) {
    System.err.println("Error: "+e);
    }

  • Error in deploying BPEL Process with Embedded Java code

    Hi all,
    I am trying to do a simple sample BPEL Process which invokes a Java class.i have placed the jar file in the classpath and the Process compiles and builds in the BPELDesigner,but when deployed it shows the below error in the BPEL console.The beauty here is it show a success message in the BPEL Designer after deployment.
    <2007-07-19 05:03:07,640> <INFO> <production.collaxa.cube.compiler> validating "C:\OraHome_1\integration\orabpel\domains\production\tmp\.bpel_Employee_1.0.jar\Employee.bpel" ...
    <2007-07-19 05:03:09,187> <ERROR> <production.collaxa.cube.engine.deployment> <CubeProcessFactory::generateProcessClass>
    Process "Employee" (revision "1.0") compilation failed.
    <2007-07-19 05:03:09,187> <ERROR> <production.collaxa.cube.engine.deployment> <CubeProcessLoader::create> Failed to compile classes.
    Failed to compile the generated BPEL classes for "Employee".
    <2007-07-19 05:03:09,187> <ERROR> <production.collaxa.cube.engine.deployment> Process "Employee" (revision "1.0") load FAILED!!
    <2007-07-19 05:03:09,203> <ERROR> <production.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "domain manager": Error while loading process.
    The process domain encountered the following errors while loading the process "Employee" (revision "1.0"): Failed to compile classes.
    Failed to compile the generated BPEL classes for "Employee".
    If you have installed a patch to the server, please check that the bpelcClasspath domain property includes the patch classes.
    ORABPEL-05215
    Error while loading process.
    The process domain encountered the following errors while loading the process "Employee" (revision "1.0"): Failed to compile classes.
    Failed to compile the generated BPEL classes for "Employee".
    If you have installed a patch to the server, please check that the bpelcClasspath domain property includes the patch classes.
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.bind(CubeProcessHolder.java:1269)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadAndBind(CubeProcessHolder.java:882)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadArchive(CubeProcessHolder.java:824)
         at com.collaxa.cube.engine.CubeEngine.loadProcessArchive(CubeEngine.java:939)
         at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.loadProcessArchive(BPELDomainManagerBean.java:390)
         at IBPELDomainManagerBean_StatelessSessionBeanWrapper34.loadProcessArchive(IBPELDomainManagerBean_StatelessSessionBeanWrapper34.java:2157)
         at com.collaxa.cube.engine.deployment.CubeProcessMonitorWork.run(CubeProcessMonitorWork.java:130)
         at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
         at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:267)
         at java.lang.Thread.run(Thread.java:534)
    <2007-07-19 05:03:09,234> <ERROR> <production.collaxa.cube.engine.deployment> <CubeProcessMonitorWork::run> Error while loading process archive C:\OraHome_1\integration\orabpel\domains\production\deploy\bpel_Employee_1.0.jar
    ORABPEL-05215
    Error while loading process.
    The process domain encountered the following errors while loading the process "Employee" (revision "1.0"): Failed to compile classes.
    Failed to compile the generated BPEL classes for "Employee".
    If you have installed a patch to the server, please check that the bpelcClasspath domain property includes the patch classes.
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.bind(CubeProcessHolder.java:1269)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadAndBind(CubeProcessHolder.java:882)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadArchive(CubeProcessHolder.java:824)
         at com.collaxa.cube.engine.CubeEngine.loadProcessArchive(CubeEngine.java:939)
         at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.loadProcessArchive(BPELDomainManagerBean.java:390)
         at IBPELDomainManagerBean_StatelessSessionBeanWrapper34.loadProcessArchive(IBPELDomainManagerBean_StatelessSessionBeanWrapper34.java:2157)
         at com.collaxa.cube.engine.deployment.CubeProcessMonitorWork.run(CubeProcessMonitorWork.java:130)
         at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
         at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:267)
         at java.lang.Thread.run(Thread.java:534)
    Your sugegstions are appreciated..
    Plzz help...
    Regards
    Subramanian

    Hi all..
    Thanks for ur response,but still my problem is not solved...
    Below is the BPEL file and the java class (which isinvoked from the process)
    BPEL FILE
    <!-- Employee -->
    <process name="BusinessTravelProcess" targetNamespace="http://packtpub.com/bpel/travel/" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:emp="http://packtpub.com/service/employee/" xmlns:bpelx="http://schemas.oracle.com/bpel/extension">
    <bpelx:exec import="org.w3c.dom.Element"/>
    <bpelx:exec import="com.packtpub.EmployeeStatus"/>
    <partnerLinks>
    <partnerLink name="employeeTravelStatus" partnerLinkType="emp:employeeLT" myRole="employeeTravelStatusService"/>
    </partnerLinks>
    <variables><!-- input for this process -->
    <variable name="EmployeeTravelStatusRequest" messageType="emp:EmployeeTravelStatusRequestMessage"/><!-- output from the Employee Travel Status web service -->
    <variable name="EmployeeTravelStatusResponse" messageType="emp:EmployeeTravelStatusResponseMessage"/>
    </variables>
    <sequence><!-- Receive the initial request for business travel from client -->
    <receive partnerLink="employeeTravelStatus" portType="emp:EmployeeTravelStatusPT" operation="EmployeeTravelStatus" variable="EmployeeTravelStatusRequest" createInstance="yes"/><!-- Prepare the output -->
    <assign>
    <copy>
    <from>
    <travelClass xmlns="http://packtpub.com/service/employee/">Economy
    </travelClass>
    </from>
    <to variable="EmployeeTravelStatusResponse" part="travelClass"/>
    </copy>
    </assign><!-- Invoke the EmployeeStatus Java class instead of web service -->
    <bpelx:exec name="Java_Embedding_1" language="Java" version="1.4"><![CDATA[
    EmployeeStatus e = new EmployeeStatus();
    String firstName = ((Element)getVariableData(
    "EmployeeTravelStatusRequest", "employee",
    "/employee/FirstName")).getNodeValue();
    String lastName = ((Element)getVariableData(
    "EmployeeTravelStatusRequest", "employee",
    "/employee/LastName")).getNodeValue();
    String empStatus = e.getTravelStatus(firstName, lastName);
    addAuditTrailEntry("Employee status is: " + empStatus);
    setVariableData("EmployeeTravelStatusResponse", "travelClass",
    "/travelClass", empStatus);]]>
    </bpelx:exec>
    <reply partnerLink="employeeTravelStatus" portType="emp:EmployeeTravelStatusPT" operation="EmployeeTravelStatus" variable="EmployeeTravelStatusResponse"/>
    </sequence>
    </process>
    Java File:
    package com.packtpub;
    public class EmployeeStatus {
    public String getTravelStatus (String firstName, String lastName) {
    return "Economy";
    }

Maybe you are looking for