Salman Yasser

Greenhorn
+ Follow
since Aug 22, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Salman Yasser

I got an out of memory error when trying to compile a java file on ZOS system:



# javac test.java
**Out of memory, aborting**

*** panic: JVMCL052: Cannot allocate memory in initializeHeap for heap segment
JVMDG217: Dump Handler is Processing a Signal - Please Wait.
JVMHP002: JVM requesting System Transaction Dump
JVMHP012: System Transaction Dump written to BPXROOT.SYSTDUMP.D040621.T015450
JVMDG305: Java core not written, unable to allocate memory for print buffer.
JVMDG215: Dump Handler has Processed Error Signal 3.
CEE5207E The signal SIGABRT was received.
�1� + Done(131) javac test.java
83886876 Abort /usr/lpp/java/J1.4/bin/javac
19 years ago
I want to connect to DB2 server without installing DB2 client on the client, or at least without configuring a connection to DB2 database through Client Configuration Assistant.
Just JDBC connection with a suitable driver
Is that possible?
I run only a standalone application without web server, and it works using client assistent configuration to define the connection to database but does not work with direct JDBC connection.
This is my code for connection:
USER_NAME = "aciswf1";
PASSWORD = "123456";
DB_URL = "jdbc : Db2 : / / 196.15.32.80:446 / ZOSDB2";
DB_DRIVER = "COM.ibm.db2.jdbc.net.DB2Driver";
Driver d = (Driver)Class.forName( p_szDbDriverClass ).newInstance();
return ( DriverManager.getConnection( p_szDbUrl,
p_szDbUserName,
p_szDbUserPassword ) );
When changeing the driver to be App driver, with connection to ODBC defined at Client Configuration Assistent it works perfectly
DB_URL = "jdbc : Db2 : ZOSDB2";
DB_DRIVER = "COM.ibm.db2.jdbc.app.DB2Driver";
While it doesn't with Net driver with connection to Database at DB2 server directly
[ March 17, 2004: Message edited by: Salman Yasser ]
The user name, password url and DB Name are right, I actually use them to define the ODBC or through DB2 Connect and running perfectly.
No limitations are defined on the server for IPs.
What do you mean by Addons?
I cannot get what do you mean by: (addons to DB2 required to accept JDBC requests)
This is the SQL Exception I got:
[IBM][JDBC Driver] CLI0615E Error receiving from socket, server is not responding. SQLSTATE=08S01
I connect to DB2 UDB 7.1.1, on Z/OS 1.4

When using the ODBC defiened on my PC it works successfully
public final String DB_URL = "jdbc : db2 : ODBC_NAME";
public final String DB_DRIVER = "COM.ibm.db2.jdbc.app.DB2Driver";

While null is retrieved from the direct connection to the Database on server
public final String DB_URL = "jdbc : db2 : // 196.15.32.80:446/DATABASE_NAME";
public final String DB_DRIVER = "COM.ibm.db2.jdbc.net.DB2Driver";

What is the problem with JDBC direct connection?
I couldn't use System.exit(), because I am working in a periodical robot ( using Timer and TimerTask ) so exit will exit all application while I want to kill active threads of current task only.
20 years ago
Hello all,
I'm using oracle chart builder for presenting data in my
application. I use it after supplying its data for gif file
generation. The chart is stacked bar but I don't think this is the
problem.
The problem is that it generates the gif file successfully but my
application is still running after the main method is finished, I
debugged it and I found about three threads are up:
Thread[AWT-EventQueue-0]
Thread[SunToolkit.PostEventQueue-0]
Thread[AWT-Windows]
I doubted my code - but I'm taking it copy paste from developer's
guide - and I debugged another Java file from a sample that comes with
the kit and the same problem happened ?!?!?
Does anyone know y?
I saw lots of SunToolkit.PostEventQueue-0 problems in google
groups, but I don't find matching my situation.
I used in testing both Oracle JDeveloper 9i release 3, and IBM
WebSphere Studio Application Developer 4.0.3
Thanks
20 years ago
When I define a double or float primitive data types the compilation succeeded, but a run time exception when running on emulator : Invalid constant pool entry
I have implemented the Double class to process the basic operations on double primitive data types, but at run time : bad method signature is thrown if the signature of any compiled method contains double or float
I am using :
JDK 1.4.1_01
WTK 1.0.4
Sun 1 Studio 4, Mobile Edition
Nokia emulators 6310i, 3510i and 3410
21 years ago
Does AppletFile generates RFC-1867 standard Stream ?
Infomentum said that, Why it does not work in J2EE environment ?
21 years ago
How could I print the Boundary ? from the request or what ?
21 years ago
I got the same exception when using AppletFile as a client side tool at HTML, but when using the input of type file no error occured
do you face the problem when using input of type file ?
On other hand any body can tell me why the request contains AppletFile generates such exception when trying to make an object of type MultipartRequest
l_MultipartRequest = new MultipartRequest(p_Request,
l_flTempFloder.getCanonicalPath(),
p_nMaximumfileSize); ??
21 years ago
I got the same exception when using AppletFile as a client side tool at HTML, but when using the input of type file no error occured
do you face the problem when using input of type file ?
On other hand any body can tell me why the request contains AppletFile generates such exception when trying to make an object of type MultipartRequest
l_MultipartRequest = new MultipartRequest(p_Request,
l_flTempFloder.getCanonicalPath(),
p_nMaximumfileSize); ??
21 years ago
When trying :
com.oreilly.servlet.MultipartRequest l_MultipartRequest = new MultipartRequest (p_Request,
l_flTempFloder.getCanonicalPath(),
p_nMaximumfileSize);
I got :
java.io.IOException: Corrupt form data: no leading boundary
The problem is that I used the AppletFile : FileUpload Applet at my JSP ( designed by InfoMentum ) which generates RFC-1867 Request
The following is the code at JSP :
<form name="uploadForm" action="/Upload/UploadServlet/Start" enctype="multipart/form-data" METHOD="POST">
<applet code="FileUpload.class" archive="FileUpload.jar" width="420" height="64" name="FileUpload" mayscript VIEWASTEXT id=Applet1>
<param name="cabbase" value="FileUpload.jar">
<param name="filter1" value="All files (*.*)">
<param name="file1" value="c:\yasser.txt">
<param name="noFileList" value="false">
<param name="bgColor" value="#000080">
<param name="directory" value="c:\">
</applet>
When using : <INPUT TYPE="FILE"> the MultipartRequest can be instantiated using the coming request
What is the Problem in he Case of the AppletFile ?
* you can download the AppletFile from http://www.infomentum.com/products/download.asp
and choose AppletFile 2.5 zip
21 years ago
21 years ago
JSP