scottie zman

Ranch Hand
+ Follow
since Aug 08, 2001
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 scottie zman

Yes, that's good. There's plenty of intersting things in there for me... to get the file attributes, check them, and make a loop to do it every so often. Thanks a lot!
Zman
22 years ago
Hi, I have a perl program that will be updating an XML file at periodic intervals. Then I have a Java program that will go through the XML file and perform some database activity based on the file.
Is there a way to "listen" to the status of the xml file, so that whenever the file gets updated, the java program runs automatically?
My first idea was to just write a loop that waits a few minutes and checks the time on the file, and if it's new then it runs the rest of the program.
I was just wondering if there was a more elegant and instantaneous way of doing this? Any suggestions would be appreciated!
-Zman
22 years ago
Hi, I'm getting ready to start a Java SOAP server that will integrate with a pre-existing ASP front-end. The servlet will recieve tons of traffic as it sends XML to dozens of sites.
While I understand basically how threading works, I'm wondering what issues I need to watch out for with beans. When I use beans from JSP's, I call them up within the request scope of the page. Does this guarantee that each bean will be used separately from one another? If not then what do I need to do to ensure this?
Also, when using servlets rather than a JSP to do this, how do I guarantee that each instance will be thread-safe.... and if I want to, how do I make various properties available to other instances?
Thanks
Zman
22 years ago
Hi, I've been struggling all day with trying to establish an https connection. I've installed Java 1.4 which includes JSSE.
When I run the code below, it gives me a ClassCastException error at the line that opens the connection. I have no problem connecting to and retrieving from non-secure sites, but this has me baffled. Any ideas / help would be greatly appreciated.
Thanks
Zman

import java.net.*;
import java.io.*;
import javax.net.ssl.HttpsURLConnection;
class httpsConnector {
public static void main(String[] args) throws Exception {
System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
String LoginURL = "https://mySecureSite.com";
URL login = new URL(LoginURL);
HttpsURLConnection con = (HttpsURLConnection)login.openConnection();
}
}
22 years ago
I was trying to download the Java Secure Sockets Extension API from Sun and their servers are too busy....!!
Can someone recommend some other locations where I can download the standard Java API's?
Thanks,
Zman
22 years ago
I'm running JSP/Tomcat/Apache/Win2K hitting a MSSQL7 database.
I've been using the jdbcOdbc bridge driver and have had some pretty weird results, including Tomcat crashing. After a little research I've learned that this driver is known to be problematic.
Has anyone had success on this platform with a different driver
(preferrably free of charge)
please let me know, thanks a lot
Zman
That makes no sense. If I had the wrong DSN then it would never work in the first place.
Here's another error I've been getting at the crash:

****************
Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = (N/A)
PC = 0x1F7D385D
SIGNAL = -1073741819
FUNCTION NAME = (N/A)
LIBRARY NAME = (N/A)
Please check ERROR REPORT FILE for further information, if there is any.

Any clues???
Zman
I'm running Tomcat on Apache on a Windows 2000 box, java build 1.3.1-B24, hitting MSSQL 2000, SP3.
I'm working on a JSP app that uses a database with sun.jdbc.odbc.JdbcOdbcDriver.
The app seems to work fine for a while, like 10 minutes... then Tomcat crashes. Outputting errors to command line produces the following upon crash:
=========================================
Dynamic libraries:
0x00400000 - 0x00405000 c:\jdk1.3.1\bin\java.exe
0x77F80000 - 0x77FFB000 C:\WINNT\System32\ntdll.dll
0x77DB0000 - 0x77E0B000 C:\WINNT\system32\ADVAPI32.dll
0x77E80000 - 0x77F35000 C:\WINNT\system32\KERNEL32.DLL
0x77D40000 - 0x77DAC000 C:\WINNT\system32\RPCRT4.DLL
0x78000000 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
0x6D420000 - 0x6D4EF000 c:\jdk1.3.1\jre\bin\hotspot\jvm.dll
0x77E10000 - 0x77E74000 C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL
0x77570000 - 0x775A0000 C:\WINNT\System32\WINMM.dll
0x6D220000 - 0x6D227000 c:\jdk1.3.1\jre\bin\hpi.dll
0x6D3B0000 - 0x6D3BD000 c:\jdk1.3.1\jre\bin\verify.dll
0x6D250000 - 0x6D266000 c:\jdk1.3.1\jre\bin\java.dll
0x6D3C0000 - 0x6D3CD000 c:\jdk1.3.1\jre\bin\zip.dll
0x6D340000 - 0x6D348000 C:\jdk1.3.1\jre\bin\net.dll
0x75050000 - 0x75058000 C:\WINNT\System32\WSOCK32.dll
0x75030000 - 0x75043000 C:\WINNT\System32\WS2_32.DLL
0x75020000 - 0x75028000 C:\WINNT\System32\WS2HELP.DLL
0x74FD0000 - 0x74FEF000 C:\WINNT\system32\msafd.dll
0x75010000 - 0x75017000 C:\WINNT\System32\wshtcpip.dll
0x785C0000 - 0x785CC000 C:\WINNT\System32\rnr20.dll
0x77980000 - 0x779A4000 C:\WINNT\System32\DNSAPI.DLL
0x77340000 - 0x77353000 C:\WINNT\System32\iphlpapi.dll
0x77520000 - 0x77525000 C:\WINNT\System32\ICMP.DLL
0x77320000 - 0x77337000 C:\WINNT\System32\MPRAPI.DLL
0x75150000 - 0x75160000 C:\WINNT\System32\SAMLIB.DLL
0x75170000 - 0x751BF000 C:\WINNT\System32\NETAPI32.DLL
0x77BE0000 - 0x77BEF000 C:\WINNT\System32\SECUR32.DLL
0x751C0000 - 0x751C6000 C:\WINNT\System32\NETRAP.DLL
0x77950000 - 0x77979000 C:\WINNT\system32\WLDAP32.DLL
0x77A50000 - 0x77B3A000 C:\WINNT\system32\OLE32.DLL
0x779B0000 - 0x77A4B000 C:\WINNT\system32\OLEAUT32.DLL
0x773B0000 - 0x773DE000 C:\WINNT\System32\ACTIVEDS.DLL
0x77380000 - 0x773A2000 C:\WINNT\System32\ADSLDPC.DLL
0x77830000 - 0x7783E000 C:\WINNT\System32\RTUTILS.DLL
0x77880000 - 0x7790D000 C:\WINNT\System32\SETUPAPI.DLL
0x77C10000 - 0x77C6D000 C:\WINNT\System32\USERENV.DLL
0x774E0000 - 0x77512000 C:\WINNT\System32\RASAPI32.DLL
0x774C0000 - 0x774D1000 C:\WINNT\System32\RASMAN.DLL
0x77530000 - 0x77552000 C:\WINNT\system32\TAPI32.DLL
0x716F0000 - 0x7177A000 C:\WINNT\system32\COMCTL32.DLL
0x70BD0000 - 0x70C1C000 C:\WINNT\system32\SHLWAPI.DLL
0x77360000 - 0x77379000 C:\WINNT\System32\DHCPCSVC.DLL
0x775A0000 - 0x77625000 C:\WINNT\System32\CLBCATQ.DLL
0x777E0000 - 0x777E8000 C:\WINNT\System32\winrnr.dll
0x6D290000 - 0x6D29A000 C:\jdk1.3.1\jre\bin\JdbcOdbc.dll
0x1F7D0000 - 0x1F804000 C:\WINNT\System32\ODBC32.dll
0x76B30000 - 0x76B6E000 C:\WINNT\system32\comdlg32.dll
0x782F0000 - 0x78532000 C:\WINNT\system32\SHELL32.DLL
0x1F8C0000 - 0x1F8D6000 C:\WINNT\System32\odbcint.dll
0x77820000 - 0x77827000 C:\WINNT\system32\VERSION.dll
0x759B0000 - 0x759B6000 C:\WINNT\system32\LZ32.DLL
0x1F820000 - 0x1F83A000 C:\WINNT\System32\odbccp32.dll
0x75500000 - 0x75504000 C:\WINNT\System32\security.dll
0x782D0000 - 0x782EE000 C:\WINNT\system32\msv1_0.dll
0x41230000 - 0x412AF000 C:\WINNT\System32\SQLSRV32.dll
0x41100000 - 0x4110C000 C:\WINNT\System32\SQLWOA.dll
0x769A0000 - 0x769A7000 C:\WINNT\System32\NDDEAPI.DLL
0x77800000 - 0x7781D000 C:\WINNT\System32\WINSPOOL.DRV
0x73330000 - 0x73337000 C:\WINNT\System32\DBMSSOCN.DLL
0x77920000 - 0x77943000 C:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000 C:\WINNT\system32\DBGHELP.dll
0x690A0000 - 0x690AB000 C:\WINNT\System32\PSAPI.DLL
Local Time = Fri Sep 21 13:27:46 2001
Elapsed Time = 50
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1-b24 mixed mode)
#
# An error report file has been saved as hs_err_pid1420.log.
# Please refer to the file for further information.
#
==========================================
The error file that was generated looks like this:
==========================================

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x1f7d385d
Function name=MpHeapFree
Library=C:\WINNT\System32\ODBC32.dll
Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.freeConnect(Native Method)
at sun.jdbc.odbc.JdbcOdbc.SQLFreeConnect(JdbcOdbc.java:2713)
at sun.jdbc.odbc.JdbcOdbcDriver.closeConnection(JdbcOdbcDriver.java:831)
at sun.jdbc.odbc.JdbcOdbcConnection.close(JdbcOdbcConnection.java:736)
at sqlBeans.DbBean.close(DbBean.java:122)
at bugTracker.Bug.dbClose(Bug.java:384)
at bugTracker.Bug.closeRS(Bug.java:132)
at bugtracker._0002fbugtracker_0002feditbug_0002ejspeditbug_jsp_88._jspService(_0002fbugtracker_0002feditbug_0002ejspeditbug_jsp_88.java:713)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
Dynamic libraries:
0x00400000 - 0x00405000 c:\jdk1.3.1\bin\java.exe
0x77F80000 - 0x77FFB000 C:\WINNT\System32\ntdll.dll
0x77DB0000 - 0x77E0B000 C:\WINNT\system32\ADVAPI32.dll
0x77E80000 - 0x77F35000 C:\WINNT\system32\KERNEL32.DLL
0x77D40000 - 0x77DAC000 C:\WINNT\system32\RPCRT4.DLL
0x78000000 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
0x6D420000 - 0x6D4EF000 c:\jdk1.3.1\jre\bin\hotspot\jvm.dll
0x77E10000 - 0x77E74000 C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL
0x77570000 - 0x775A0000 C:\WINNT\System32\WINMM.dll
0x6D220000 - 0x6D227000 c:\jdk1.3.1\jre\bin\hpi.dll
0x6D3B0000 - 0x6D3BD000 c:\jdk1.3.1\jre\bin\verify.dll
0x6D250000 - 0x6D266000 c:\jdk1.3.1\jre\bin\java.dll
0x6D3C0000 - 0x6D3CD000 c:\jdk1.3.1\jre\bin\zip.dll
0x6D340000 - 0x6D348000 C:\jdk1.3.1\jre\bin\net.dll
0x75050000 - 0x75058000 C:\WINNT\System32\WSOCK32.dll
0x75030000 - 0x75043000 C:\WINNT\System32\WS2_32.DLL
0x75020000 - 0x75028000 C:\WINNT\System32\WS2HELP.DLL
0x74FD0000 - 0x74FEF000 C:\WINNT\system32\msafd.dll
0x75010000 - 0x75017000 C:\WINNT\System32\wshtcpip.dll
0x785C0000 - 0x785CC000 C:\WINNT\System32\rnr20.dll
0x77980000 - 0x779A4000 C:\WINNT\System32\DNSAPI.DLL
0x77340000 - 0x77353000 C:\WINNT\System32\iphlpapi.dll
0x77520000 - 0x77525000 C:\WINNT\System32\ICMP.DLL
0x77320000 - 0x77337000 C:\WINNT\System32\MPRAPI.DLL
0x75150000 - 0x75160000 C:\WINNT\System32\SAMLIB.DLL
0x75170000 - 0x751BF000 C:\WINNT\System32\NETAPI32.DLL
0x77BE0000 - 0x77BEF000 C:\WINNT\System32\SECUR32.DLL
0x751C0000 - 0x751C6000 C:\WINNT\System32\NETRAP.DLL
0x77950000 - 0x77979000 C:\WINNT\system32\WLDAP32.DLL
0x77A50000 - 0x77B3A000 C:\WINNT\system32\OLE32.DLL
0x779B0000 - 0x77A4B000 C:\WINNT\system32\OLEAUT32.DLL
0x773B0000 - 0x773DE000 C:\WINNT\System32\ACTIVEDS.DLL
0x77380000 - 0x773A2000 C:\WINNT\System32\ADSLDPC.DLL
0x77830000 - 0x7783E000 C:\WINNT\System32\RTUTILS.DLL
0x77880000 - 0x7790D000 C:\WINNT\System32\SETUPAPI.DLL
0x77C10000 - 0x77C6D000 C:\WINNT\System32\USERENV.DLL
0x774E0000 - 0x77512000 C:\WINNT\System32\RASAPI32.DLL
0x774C0000 - 0x774D1000 C:\WINNT\System32\RASMAN.DLL
0x77530000 - 0x77552000 C:\WINNT\system32\TAPI32.DLL
0x716F0000 - 0x7177A000 C:\WINNT\system32\COMCTL32.DLL
0x70BD0000 - 0x70C1C000 C:\WINNT\system32\SHLWAPI.DLL
0x77360000 - 0x77379000 C:\WINNT\System32\DHCPCSVC.DLL
0x775A0000 - 0x77625000 C:\WINNT\System32\CLBCATQ.DLL
0x777E0000 - 0x777E8000 C:\WINNT\System32\winrnr.dll
0x777F0000 - 0x777F5000 C:\WINNT\System32\rasadhlp.dll
0x6D290000 - 0x6D29A000 C:\jdk1.3.1\jre\bin\JdbcOdbc.dll
0x1F7D0000 - 0x1F804000 C:\WINNT\System32\ODBC32.dll
0x76B30000 - 0x76B6E000 C:\WINNT\system32\comdlg32.dll
0x782F0000 - 0x78532000 C:\WINNT\system32\SHELL32.DLL
0x1F8C0000 - 0x1F8D6000 C:\WINNT\System32\odbcint.dll
0x77820000 - 0x77827000 C:\WINNT\system32\VERSION.dll
0x759B0000 - 0x759B6000 C:\WINNT\system32\LZ32.DLL
0x1F820000 - 0x1F83A000 C:\WINNT\System32\odbccp32.dll
0x75500000 - 0x75504000 C:\WINNT\System32\security.dll
0x782D0000 - 0x782EE000 C:\WINNT\system32\msv1_0.dll
0x41230000 - 0x412AF000 C:\WINNT\System32\SQLSRV32.dll
0x41100000 - 0x4110C000 C:\WINNT\System32\SQLWOA.dll
0x769A0000 - 0x769A7000 C:\WINNT\System32\NDDEAPI.DLL
0x77800000 - 0x7781D000 C:\WINNT\System32\WINSPOOL.DRV
0x73330000 - 0x73337000 C:\WINNT\System32\DBMSSOCN.DLL
0x77920000 - 0x77943000 C:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000 C:\WINNT\system32\DBGHELP.dll
0x690A0000 - 0x690AB000 C:\WINNT\System32\PSAPI.DLL
Local Time = Fri Sep 21 13:13:17 2001
Elapsed Time = 490
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1-b24 mixed mode)
#
============================================
Does anyone know what this could be? I've been saerching all over the web and have found little info. I'm thinking it may have something to do with ODBC?
Zman
Have you used this with Java? I didn't see any mention of Java compatibility or any code examples.
intersting topic. How do I create a connection and pass it to a bean? What I'd like to do is have a global include that activates a connection in a dbBean and then throughout the page hands it off to whatever other bean needs to hit the database. each bean would use that one connection to do it's thing (request scope) and then at the end of the page I'd put another include that will close the connection.
Right now I have it so that all the beans access dbBean and each time they make a query they create a new connection. Which of course is not very efficient...
thanks
Zman
Does anyone have a recommendation for a JDBC driver that will run on Unix and connect to MS SQL Server?
I've been evaluating the i-net OPTA� 2000 available at
http://www.inetsoftware.de/English/Produkte/OPTA/default.htm
but the web license is $800 bucks. I'm not particularly sold or partial to this driver ... It seems to work OK. I was wondering if anyone had any experience with this or other drivers?
thanks
Zman
I have some date fields in a database storing dates like this:
2001-09-12 12:43:18.483
How do I take this, a String, and manipulate the way it is displayed. I would like it to be:
09-12-2001 12:43
thanks
Zman
22 years ago
found it...
String varname= pageContext.getAttribute( "sessionVarName", PageContext.SESSION_SCOPE).toString();
22 years ago
I have some custom tags. How do I access the page they are used in: session variables, form inputs, etc... without using parameters and set commands?
thanks,
Zman
22 years ago
I found the answer.... put the .jar files in the /ext directory!
22 years ago