| hibernate w/derby simple crud |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- analytical Skill for Java Development> As an experiment, give an "experienced" developer a problem and watch
> their
> analytical and problem solving skills seriously fail him/her. This of
> course, is the general case - there may be some corner cases where this
> will
> not occur.
So how can one learn better problem solving skills? In addition to
problem solving, where can one find better algorithms to use?
- 2
- Long delay using SSLSocketFactoryHi all,
I need to do HTTPS requests from a WLS container through a proxy which
requires encoded username/password authentication. Therefore, I am
using an extension of SSLSocketFactory (part of SUN's JSSE), which
does the proxy authentication for me and the tunnel handshake as well.
Principally, the solution I thought of works. However, after starting
the WLS, the very first connection to the proxy takes more than two
minutes. Running the test once again, the connection to the proxy is
established almost instantaneously. Can anyone explain the long delay
in the first connection? It occurs when invoking method
SSLSocketFactory.getDefault() (see the below code snippet).
I scanned the port of the proxy and found no activity during the
delay. Neither, there are any outgoing TCP packages from the source
machine (where the JVM is running). So I assume that the delay is not
due to a network problem; it must be somewhere in the depths of the
JSSE classes.
Best regards,
Thomas Mantay
Here is the code I am using:
import java.net.*;
import java.io.*;
import java.security.*;
import sun.misc.BASE64Encoder;
import javax.net.*;
import javax.net.ssl.*;
public class SSLTunnelSocketFactory extends SSLSocketFactory {
private String tunnelHost;
private int tunnelPort;
private SSLSocketFactory dfactory;
private String tunnelPassword;
private String tunnelUserName;
private boolean socketConnected = false;
private int falsecount = 0;
/**
* Constructor for the SSLTunnelSocketFactory object
*
*@param proxyHost The url of the proxy host
*@param proxyPort the port of the proxy
*@param proxyUserName username for authenticating with the
proxy
*@param proxyPassword password for authenticating with the
proxy
*/
public SSLTunnelSocketFactory(String proxyHost, int proxyPort,
String proxyUserName, String proxyPassword) {
NLUtil.ldebug("SSLTunnelSocketFactory", "Constructor", "creating
Socket Factory with password/username");
tunnelHost = proxyHost;
tunnelPort = proxyPort;
tunnelUserName = proxyUserName;
tunnelPassword = proxyPassword;
NLUtil.ldebug("SSLTunnelSocketFactory", "Constructor", "before
getDefault()");
Here is the line that causes the delay:
dfactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
NLUtil.ldebug("SSLTunnelSocketFactory", "Constructor", "after
getDefault()");
}
/**
* Gets the supportedCipherSuites attribute of the
SSLTunnelSocketFactory
* object
*
*@return The supportedCipherSuites value
*/
public String[] getSupportedCipherSuites() {
return dfactory.getSupportedCipherSuites();
}
/**
* Gets the defaultCipherSuites attribute of the
SSLTunnelSocketFactory
* object
*
*@return The defaultCipherSuites value
*/
public String[] getDefaultCipherSuites() {
return dfactory.getDefaultCipherSuites();
}
/**
* Gets the socketConnected attribute of the
SSLTunnelSocketFactory object
*
*@return The socketConnected value
*/
public synchronized boolean getSocketConnected() {
return socketConnected;
}
/**
* Creates a new SSL Tunneled Socket
*
*@param s Ignored
*@param host destination host
*@param port destination port
*@param autoClose wether to close the socket
automaticly
*@return proxy tunneled socket
*@exception IOException raised by an IO error
*@exception UnknownHostException raised when the host is
unknown
*/
public Socket createSocket(Socket s, String host, int port,
boolean autoClose)
throws IOException, UnknownHostException {
Socket tunnel = new Socket(tunnelHost, tunnelPort);
doTunnelHandshake(tunnel, host, port);
SSLSocket result = (SSLSocket) dfactory.createSocket(tunnel,
host, port, autoClose);
result.addHandshakeCompletedListener(
new HandshakeCompletedListener() {
public void handshakeCompleted(HandshakeCompletedEvent
event) {
NLUtil.ldebug("SSLTunnelSocketFactory", "handshakeCompleted",
"Handshake Finished!");
NLUtil.ldebug("SSLTunnelSocketFactory", "handshakeCompleted",
"CipherSuite :" + event.getCipherSuite());
NLUtil.ldebug("SSLTunnelSocketFactory", "handshakeCompleted",
"SessionId: " + event.getSession());
NLUtil.ldebug("SSLTunnelSocketFactory", "handshakeCompleted",
"PeerHost: " + event.getSession().getPeerHost());
setSocketConnected(true);
}
});
// thanks to David Lord in the java forums for figuring out
this line is the problem
// result.startHandshake(); //this line is the bug which stops
Tip111 from working correctly
return result;
}
/**
* Creates a new SSL Tunneled Socket
*
*@param host destination host
*@param port destination port
*@return tunneled SSL Socket
*@exception IOException raised by IO error
*@exception UnknownHostException raised when the host is
unknown
*/
public Socket createSocket(String host, int port)
throws IOException, UnknownHostException {
return createSocket(null, host, port, true);
}
/**
* Creates a new SSL Tunneled Socket
*
*@param host Destination Host
*@param port Destination Port
*@param clientHost Ignored
*@param clientPort Ignored
*@return SSL Tunneled Socket
*@exception IOException Raised when IO error occurs
*@exception UnknownHostException Raised when the destination
host is
* unknown
*/
public Socket createSocket(String host, int port, InetAddress
clientHost,
int clientPort)
throws IOException, UnknownHostException {
return createSocket(null, host, port, true);
}
/**
* Creates a new SSL Tunneled Socket
*
*@param host destination host
*@param port destination port
*@return tunneled SSL Socket
*@exception IOException raised when IO error occurs
*/
public Socket createSocket(InetAddress host, int port)
throws IOException {
return createSocket(null, host.getHostName(), port, true);
}
/**
* Creates a new SSL Tunneled Socket
*
*@param address destination host
*@param port destination port
*@param clientAddress ignored
*@param clientPort ignored
*@return tunneled SSL Socket
*@exception IOException raised when IO exception occurs
*/
public Socket createSocket(InetAddress address, int port,
InetAddress clientAddress, int clientPort)
throws IOException {
return createSocket(null, address.getHostName(), port, true);
}
/**
* Sets the socketConnected attribute of the
SSLTunnelSocketFactory object
*
*@param b The new socketConnected value
*/
private synchronized void setSocketConnected(boolean b) {
socketConnected = b;
}
/**
* Description of the Method
*
*@param tunnel tunnel socket
*@param host destination host
*@param port destination port
*@exception IOException raised when an IO error occurs
*/
private void doTunnelHandshake(Socket tunnel, String host, int
port) throws IOException {
NLUtil.ldebug("SSLTunnelSocketFactory", "doTunnelHandshake",
"doTunnelHandshake start");
OutputStream out = tunnel.getOutputStream();
//generate connection string
String msg = "CONNECT " + host + ":" + port + " HTTP/1.0\n"
+ "User-Agent: "
+ sun.net.www.protocol.http.HttpURLConnection.userAgent;
if (!tunnelUserName.equals("") && !tunnelPassword.equals(""))
{
NLUtil.ldebug("SSLTunnelSocketFactory", "doTunnelHandshake",
"Using proxy authencation with username '" + tunnelUserName + "' and
password '" + tunnelPassword + "'.");
//add basic authentication header for the proxy
sun.misc.BASE64Encoder enc = new sun.misc.BASE64Encoder();
String encodedPassword = enc.encode((tunnelUserName + ":"
+ tunnelPassword).getBytes());
msg = msg + "\nProxy-Authorization: Basic " +
encodedPassword;
}
msg = msg + "\nContent-Length: 0";
msg = msg + "\nPragma: no-cache";
msg = msg + "\r\n\r\n";
NLUtil.ldebug("SSLTunnelSocketFactory", "doTunnelHandshake", "msg:
" + msg);
byte b[];
try {
//we really do want ASCII7 as the http protocol doesnt
change with locale
b = msg.getBytes("ASCII7");
} catch (UnsupportedEncodingException ignored) {
//If ASCII7 isn't there, something is seriously wrong!
b = msg.getBytes();
}
out.write(b);
out.flush();
byte reply[] = new byte[200];
int replyLen = 0;
int newlinesSeen = 0;
boolean headerDone = false;
InputStream in = tunnel.getInputStream();
boolean error = false;
while (newlinesSeen < 2) {
int i = in.read();
if (i < 0) {
throw new IOException("Unexpected EOF from Proxy");
}
if (i == '\n') {
headerDone = true;
++newlinesSeen;
} else
if (i != '\r') {
newlinesSeen = 0;
if (!headerDone && replyLen < reply.length) {
reply[replyLen++] = (byte) i;
}
}
}
//convert byte array to string
String replyStr;
try {
replyStr = new String(reply, 0, replyLen, "ASCII7");
} catch (UnsupportedEncodingException ignored) {
replyStr = new String(reply, 0, replyLen);
}
//we check for connection established because our proxy
returns http/1.1 instead of 1.0
if (replyStr.toLowerCase().indexOf("200 connection
established") == -1) {
NLUtil.ldebug("SSLTunnelSocketFactory", "doTunnelHandshake",
"replyStr: " + replyStr);
System.err.println(replyStr);
throw new IOException("Unable to tunnel through " +
tunnelHost + ":" + tunnelPort + ". Proxy returns\"" + replyStr +
"\"");
}
//tunneling hanshake was successful
}
}
- 2
- Swing - how to catch all eventsProgramming in java for a while now, but I still have this silly
problem that I don't know if the experts has a simple answer.
I have a Swing app. Yes, simple stuff eh. Next, user logins to use
the app. If they don't do anything (mouse move, key press) for a
while, then I log out. The think is that detecting a mouse event, I
have to register with each of the tabpane of the app. I don't like
that. Also, I have to register with each components within the panel.
The same for keyboard. For keyboard, it seems I can register event
for just any component (with appropriate modifer to get the input map
and action map). However, I still have to register all keys which are
alot. I want the ability to catch the event from top down. Anyevent
would goes through my filters first. Would this be possible? How do
I solve this simple and common problem? Thank you very much in
advance.
- 3
- 5
- converting paper space to model space in dxf filesHello wise guys!
I'm writing a piece of code (java) that shold parse and draw the
content of a DXF file. The trouble is that some blocks (usually texts
or legend) are given in paper space. Can anyone give me a hint how
paper coordinates should be converted to model coordinates? Thanks a
lot!
Adrian
- 9
- "NullPointerException". (was Re: ArrayOutOfbounds, how come?)Mark Haase wrote:
>
> What exception, exactly?? Your subject says
> "ArrayOutOfBounds" but the catch block is
> "NullPointerException".
you got it right. it is indeed "NullPointerException".
mea culpa.
> You shouldn't be getting ArrayOutOfBoundsException, but
> your code will generate a NPE everytime because of a
> noobie mistake that you're making.
what is noobie?
> Below, you initialize a new array of JButton references,
> but each reference is still null.
>
>> button = new JButton[8][14];
>
> You need to put an object in each one of them before you
> start making calls like:
>
>
>> button[gridY1][gridX1].setText(button_text);
>
> How can you call setText on an object that doesn't exist?
> You can't. The runtime lets you know by throwing NPE.
>
> Do this:
>
> for (int i=0; i<8; i++)
> for (int j=0; j<14; j++)
> button[i][j] = new JButton();
>
> In the future, be more specific when you say "I have an
> error!! help!"..Name the exact error.
done.
no way. After changing to the following, it compiled pretty
well, but is still giving npe at = line.
-------------
JButton[][] button;
-----------------
for (int gridY1 = 0; gridY1 < d_rows; gridY1++) {
for (int gridX1 = 0; gridX1 < d_columns;
gridX1++) {
button[gridY1][gridX1] = new JButton();
}
}
-------------
when I changed the above block according to what was
suggested by Mr John in another thread of Mr Mike:
-------------
JButton[][] button = new JButton[d_rows][d_columns];
for (int gridY1 = 0; gridY1 < d_rows; gridY1++) {
for (int gridX1 = 0; gridX1 < d_columns;
gridX1++) {
button[gridY1][gridX1] = new JButton();
}
}
-------------
it again got compiled flawlessly, but I got npe at a further
line where I am refering a button for the first time:
------------
button[gridY1][gridX1].setText(button_text);
------------
what next?
-rawat
- 9
- Final member troubleimport java.awt.Image;
import javax.imageio.ImageIO;
import java.io.*;
public class FinalTryCatch {
final Image someImage;
public FinalTryCatch() {
try {
someImage = ImageIO.read(new File("someImageFile.gif"));
} catch (IOException ioe) {
someImage = null;
}
}
public static void main(String[] args) {
FinalTryCatch f = new FinalTryCatch();
// Do some stuff
}
}
This fails to compile with "variable someImage might already have been
assigned" on "someImage = null;". Remove that line and it complains,
"variable someImage might not have been initialized". Obviously. What would
you do in this situation? Make the variable non-final? Have the constructor
throw IOException? Something else?
- 11
- how to map from display metrics to physical metrics...Suppose I have a screen which is 1024x768, how can I map this rectangle in
pixels into physical world dimensions in meters or in inches? Actually I
want to know the physical size of the viewable area of the monitor...
Please help me...
- 13
- why allow multiple classes in one file?Hello,
I'm pretty new to Java, so please don't yell at me if my question is
dumb.
Each public file should be in a separate file. I don't understand why
is it allowed for a file contain additional non-public (default)
classes. Why is it not one class per file, public or default?
Thanks,
Hilbert
- 13
- what needed for j2me
hi all, I'm starting developing stuff for siemens c55, but for starting
I'd like to know what do I need to have to develop...
I've got j2dsk1.4.2 but when I call javax it says it doesn't exist...
what do I need to have in order to get my laptop undergoing on cell
phone SW????
nuno silva
- 13
- JTextField : limit number of input charactersHi,
How can I do limit the number of character into a JTextField component ? I'm
a Newbie, and I've some problem with this.
Other question, in a JTable, how can I do to put a DropDown into a field
from a column ?
Thanks for all
Bernard
- 13
- UIDefaults.getUI() failed for JInternalFrame$JDesktopIconI am using a particular Look and Feel, and a class derived from
JInternalFrame. Whenever the JInternalFrame class is invoked, it generated
an exception (please see stack trace at the bottom of this message).
I know that to correct this exception, I must do something along the lines
of the following:
UIManager.put(XXX, YYY);// Where XXX is the String used to identify the
JInternalFrame$JDesktopIcon's UIand YYY the ui class for it.
However, I do not know how to go about discerning the values for XXX and
YYY. How can I find those out? I have tried:
UIManager.getLookAndFeelDefaults().put("ClassLoader",
getClass().getClassLoader());
UIManager.put("JDesktopIcon",
javax.swing.JInternalFrame.JDesktopIcon.class.getName());
UIManager.put("JInternalFrame",
javax.swing.JInternalFrame.class.getName());
updateUI();
With no luck at al. Can someone please help me to find out what parameters I
need to pass here? Thanks, Ike
--------stack trace-----------------------
UIDefaults.getUI() failed: no ComponentUI class for:
javax.swing.JInternalFrame$JDesktopIcon[,0,0,0x0,invalid,hidden,alignmentX=0
.0,alignmentY=0.0,border=,flags=0,maximumSize=,minimumSize=,preferredSize=]
java.lang.Error
at javax.swing.UIDefaults.getUIError(Unknown Source)
at javax.swing.MultiUIDefaults.getUIError(Unknown Source)
at javax.swing.UIDefaults.getUI(Unknown Source)
at javax.swing.UIManager.getUI(Unknown Source)
at javax.swing.JInternalFrame$JDesktopIcon.updateUI(Unknown Source)
at javax.swing.JInternalFrame$JDesktopIcon.<init>(Unknown Source)
at javax.swing.JInternalFrame.<init>(Unknown Source)
at RalphVince.Controls.JScrollableDesktopPane.BaseInternalFrame.<init>()
- 13
- Creating Object With Methods During RuntimeHello All,
Is there a way to have a method create and name an object?
If my question is not clear, what I mean is instead of this:
...
Person abc = new Person();
...
where the programmer specifies the name of the object and where in the
program it is created, you have a method something like this:
...
//the string that is passed to this method is generated by another
//function which generates random strings - in other words, neither
//the programmer nor the user are involved in this step directly
private void createObject(String s)
{
Person s = new Person();
}
...
This might be used in a GUI simulation that is modeling the interaction
of different species in an ecosystem, for example. At some point the
user may wish to increase the complexity of the sim by adding more
creatures of one type or another. They could press a button which would
call the createObject function and insert another animal into the fray.
I hope that is enough to sufficiently explain what I am asking, in any case.
By the way, just in case you are wondering, I have not tested the
example function above (I know it won't work as is). Normally I would
try myself before asking here, but I don't have access to my PC right
now and I can't find what I'm looking for on the internet.
Thanks very much to any who can help.
A
- 14
- aliasHi,
I may be jumping guns here. I mean I'm totally new to java and yet, I
feel the need to do something like this for typing much less,
o = System.out.println; // problem, what data type for var of o here?
undefined.
or
alias o = System.out.println; // alias is supposed to be a special
command or the sort?
then, I do something like this
for (int i=0; i < 5; i++) {
switch(i)
case 0:
case 2:
case 4:
o(i + " is an even number"); // instead of System.out.println(i +
" is an even number");
break;
case 1:
case 3:
case 5:
o(i + " is an odd number"); // instead of System.out.println(i + "
is an odd number");
break;
default:
o(i + " is neither an odd nor even number");
// instead of System.out.println(i + " is neither an odd nor even
number");
}
Doable? How? TIA.
- 14
- JavaScript for MaximizationHi. I want onLoad(), to make my current IE window "maximized." I can resize
the window to Screen.width/height but the problem with that is that it
includes the full screen height (including the task-bar) and I need it to be
without the task bar. Any way to do this? Preferably a way that's
browser-independant but IE-specific if need be.
Alex
|
| Author |
Message |
3rdshiftcoder

|
Posted: 2007-1-7 16:39:00 |
Top |
java-programmer, hibernate w/derby simple crud
hi-
i am really new to hibernate.
i thought it would be cool to use in my hobby.
i want to make the code that deals with the db more readable in my projects.
i hope hibernate can help me in that regard.
i am trying to add a record?
i get an error that says attempting to modify an identity column.
i didnt specify the identity column in my constructor call.
i saw how to iterate through the table (read using HQL) but am looking
for an example of create,update, delete. i am missing the example
somewhere in my book (hibernate in action).
with delete i probably just set part of a collection to null....right?
if i can get help on this identity column issue, i may be able to figure the
examples out myself.
thank you,
jim
Session session = HibernateUtil.getSessionFactory().openSession();
Transaction tx = session.beginTransaction();
Date d1 = new Date(2006-10-14);
Date d2 = new Date(2006-10-15);
Accounts accounts = new Accounts("boo",d1,d2);
session.save(accounts);
tx.commit();
session.close();
--------------------------------------------------------------------------
// pojo
package bcalcpkg;
// Generated Jan 6, 2007 1:38:27 AM by Hibernate Tools 3.2.0.beta8
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.GeneratedValue;
/**
* Accounts generated by hbm2java
*/
@Entity
@org.hibernate.annotations.Entity(
dynamicInsert = true, dynamicUpdate = true)
@Table(name = "ACCOUNTS", schema = "USER1", uniqueConstraints = {})
public class Accounts implements java.io.Serializable {
// Fields
@Id @GeneratedValue
@Column(name = "ACCOUNTID")
private int accountid;
@Column(name = "ACCOUNTNAME")
private String accountname;
@Column(name = "ACCOUNTOPEN")
private Date accountopen;
@Column(name = "ACCOUNTCLOSE")
private Date accountclose;
// Constructors
/** default constructor */
public Accounts() {
}
/** minimal constructor */
public Accounts(int accountid, String accountname, Date accountopen) {
this.accountid = accountid;
this.accountname = accountname;
this.accountopen = accountopen;
}
/** full constructor */
public Accounts( String accountname, Date accountopen,
Date accountclose) {
//this.accountid = accountid;
this.accountname = accountname;
this.accountopen = accountopen;
this.accountclose = accountclose;
}
//public Accounts(String text) {
//this.text = text;
//}
// Property accessors
@Id
@Column(name = "ACCOUNTID", unique = true, nullable = false, insertable =
true, updatable = true)
public int getAccountid() {
return this.accountid;
}
public void setAccountid(int accountid) {
this.accountid = accountid;
}
@Column(name = "ACCOUNTNAME", unique = false, nullable = true, insertable =
true, updatable = true, length = 50)
public String getAccountname() {
return this.accountname;
}
public void setAccountname(String accountname) {
this.accountname = accountname;
}
@Temporal(TemporalType.DATE)
@Column(name = "ACCOUNTOPEN", unique = false, nullable = true, insertable =
true, updatable = true, length = 10)
public Date getAccountopen() {
return this.accountopen;
}
public void setAccountopen(Date accountopen) {
this.accountopen = accountopen;
}
@Temporal(TemporalType.DATE)
@Column(name = "ACCOUNTCLOSE", unique = false, nullable = true, insertable
= true, updatable = true, length = 10)
public Date getAccountclose() {
return this.accountclose;
}
public void setAccountclose(Date accountclose) {
this.accountclose = accountclose;
}
}
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- MI5 Persecution: Email Cruelty 11/3/96 (11157)From: email***@***.com (David Toube)
Newsgroups: uk.misc,uk.politics,uk.legal,uk.media,soc.culture.british
Subject: Re: Why Censorship Must Not Be Allowed on Uk.*
Reply-To: email***@***.com
Date: Mon Mar 11 11:47:13 1996
A OSHINEYE <email***@***.com> wrote:
:email***@***.com (David Toube) wrote:
:>I would also be very pleased if Mike Corley would not mailbomb me
:>via my university account with messages entitled 'This Is What
:>You Get For Censorship', thus closing down the entire college
:>email system.
:>
:>Although it does not personally inconvenience me, it is rather
:>dull for the college.
:When did this happen? BTW you can always use Pegasus Mail to send all
:email from Corley's address back to him and see how he likes it.
:--Ade
:
This weekend. The result, Mike Corley will be gratified to hear,
was that all users of the college system were prevented from
using email.
I suspect that there is no stopping Mike Corley. If mail is
automatically returned to him, he will return it back to you
tenfold. If he is thrown off his account, as he surely will be,
he will find another one.
I do not care whether Mike Corley has an email account or not. It
is a matter of supreme indifference to me whether his fanciful
account of persecution is aired or not. If he thinks that he has
been persecuted by M15 and Chris Tarrant, then that is a matter
for him. But there is a world of difference between repeatedly
spamming usenet - which is unacceptable - and setting up a Web
Site containing his post, which is entirely acceptable. Then it
will be possible to choose whether or not to partake of his
fantasy.
However although I would not like to see the censorship of posts
because they demonstrate evidence of mental illness, I suspect
that Mike Corley will inevitably be censored by his ISP following
a number of complaints of usenet abuse and mailbombing.
----
David Toube
Lecturer in Law
QMW, University of London
WWW: http://www.qmw.ac.uk/~ugtl027/index.html
David Boothroyd's British Elections Home Page
WWW: http://www.qmw.ac.uk/~laws/election/home.html
11157
- 2
- Graphics Line WidthNew to java Graphics, have been having a play, and have some good results,
but only very basic.
I can draw the primitive shapes, and fill them with a variety of fill
effects.
what I want to do is change the line thickness or width, very easy I'm sure
but no where I've looked can help with this.
any suggestions on this, and books for 2D graphics, available in the UK most
gratefully appreciated.
Thanks Deb
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.580 / Virus Database: 367 - Release Date: 06/02/2004
- 3
- Java program that reads websites to download from a fileSometime back I wrote a simple Java program that reads a list of URLs
from a file and stores their contents on the local file system. I
have no problems with normal (i.e. html) pages, but I am not able to
download asp files. They are stored as zero length files.
I would greatly appreciate if someone could suggest a way out.
-- Bhat
My source code follows:
/////////////////// Source code begin /////////////////////
// This program reads a list of URLs to access and store on the local
// file system from a file. The name of the file is passed as the
// first command line argument. Each URL is on a separate line.
// Lines beginning with the '#' character are treated as blanks and
// are skipped.
//
import java.io.*;
import java.net.*;
import java.security.*;
class WebsiteLoader
{
public static char replaceChar = '~';
public static void main(String argv[]) throws IOException
{
// The following two lines were suggested by the following
website:
// http://www.javaworld.com/javaworld/javatips/jw-javatip96.html
// They help in suppressing the java.net.MalformedURLException
System.setProperty("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
BufferedReader br;
String origName;
if(argv.length != 0)
{
br = new BufferedReader(new FileReader(argv[0]));
// Read URLs from the file. Skip blank lines and lines
beginning
// with the '#' character.
for(;;)
{
origName = br.readLine();
if(origName == null)
break;
origName = origName.trim();
if(origName.length() == 0)
continue;
if(origName.charAt(0) == '#')
continue;
URL url = new URL(origName);
if(url == null)
continue;
BufferedReader bufRdr = new BufferedReader(new
InputStreamReader(url.openStream()));
// The name of the file to which the website contents are
written
// is derived from the URL by substituting the following
characters
// with some "non-offending" character:
// \,/,:,*,?,",<,>,|
String modName = origName;
modName = modName.replace('\\', replaceChar);
modName = modName.replace('/', replaceChar);
modName = modName.replace(':', replaceChar);
modName = modName.replace('*', replaceChar);
modName = modName.replace('?', replaceChar);
modName = modName.replace('"', replaceChar);
modName = modName.replace('<', replaceChar);
modName = modName.replace('>', replaceChar);
modName = modName.replace('|', replaceChar);
FileWriter fWriter = new FileWriter(modName);
System.out.println("Writing contents of " + origName + " to "
+
"the following file: " + modName);
for(;;)
{
String thisLine = bufRdr.readLine();
if(thisLine == null)
break;
fWriter.write(thisLine);
}
}
}
}
}
- 4
- Using the network package for multicastingHi,
Can someone point me out to a good article on how to create/use IP
multicasting in Java applications? I'm interested in developing a
program that will use it. Thanks
Sona
- 5
- Applets on Sun site?Has anybody seen actual applets on Sun's
site recently? Got any URL's?
I went in search of them on the site recently.
I found lots of _images_ of applets,
as well as broken _links_ to applets,
their was a slew of applet _code_ and
many references to the applet _html tag_,
but I could not find a single _applet_.
- 6
- "new" [<TypeArguments>] <ClassOrInterfaceType> "(" [<ArgumentList>] ")" According to
http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.9
the following production holds
<ClassInstanceCreationExpression> ::=
"new" [<TypeArguments>] <ClassOrInterfaceType> "(" [<ArgumentList>] ")"
What would be an example for a class instance creation expression
with type arguments? Here's a reminder about those:
<TypeArguments> ::=
"<" <TypeArgument> {"," <TypeArgument>} ">"
What I would understand would be:
<ClassInstanceCreationExpression> ::=
"new" <ClassOrInterfaceType> [<TypeArguments>] "(" [<ArgumentList>] ")"
- 7
- Regex for finding a '?' in a StringIm trying to write a routine to replace the '?' in a String with values
supplied by the client.
ie
String myString = "Hello there, my first name is ? and my surname is
?";
String myRegex = "<a regex>";
myString = myString.replaceFirst(myRegex, "David");
myString = myString.replaceFirst(myRegex, "Bevan");
System.out.println(mString);
Required output is "Hello there, my first name is David and my surname
is Bevan"
What do i need as myRegex?
Many thanks
David Bevan
http://www.davidbevan.co.uk
- 8
- Binary distro o' java (freebsdfoundation down)So I was disheartened a few weeks ago to see:
March 11, 2005 - www.FreeBSDFoundation.org temporarily unavailable due to hardware failure.
Due to a hardware failure, the FreeBSD Foundation web site is temporarily unavailable. The full site will be restored within a few days.
But I was looking forward to the site coming back up and being able to pull down some binary java packages. Alas, no-go yet. Can anyone point me to a recent binary package that will work on 4-STABLE?
-Yanek.
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
- 9
- Cloning JDBC connection?In a JDBC appllication I want to create a second connection, which I
can run some queries while some longer queries hang on the primary
connection. Surprisingly, I fail to see an easy way to create a second
connection. The matter is as simple as getting user, pwd and url, but
how to get those? The Connection interface doesn't have this info; the
implementation class oracle.jdbc.driver.T4CConnection has it. It is a
hidden class, however. DatabaseMetadata has everything but pwd.
- 10
- URGENT: JDeveloper : Error in Updation through ViewObjectHi
I am getting a very simple but annoying problem. I have made a
business component project in which I have created a ViewObject named
"CountryView" using table in SQL Server. Table consists only two
columns CountryId (which is primary) and CountryName.
Uptill this it is smooth But when I test CountryView using Application
I am getting error in updating a record. When I change countryName
[haven't touched countryId] and then try to move on to next record, I
get error "FOR UPDATE clause cannot be specified with READ ONLY
CURSOR".
I read some docs on net and get to know that I have to set application
module's locking mode : optimistic. I did this and I can now move on
to next record. But when I try to commit data I again get the same
error i.e. "FOR UPDATE clause cannot be specified with READ ONLY
CURSOR". I have tried it with two Drivers "Microsoft" and "DataDirect"
but it has been of no use.
I am using
RDBMS : SQL SERVER
SQL Flavor : SQL92
Made view by selecting table from database
Connection url :
jdbc:microsoft:sqlserver://localhost:1433;SelectMethod=cursor;DatabaseName=june07
You may use SelectMethod=direct. This error still comes. Strange thing
is when I try the same thing on an Oracle Server and with SQL Flavour
Oracle then it works fine.
I would like to get the answers of following Qs.
1. Why JDeveloper APIs use a "Select FOR UPDATE" query when I have
called for commit and not just moving on to next record after
updating. There must be some queries to check if the record has been
locked by someone else.
2. Am I using a wrong Driver / doing something [incorrect / foolish]
or it is just a myth that JDeveloper + ADF APIs and SQL server are
compatible using a third party Driver.
and finally i will be grateful if someone can tell me how to bypass
this.
Thanks
Nitin Goyal
- 11
- wholesale and retail nike sports shoes,nike shoxes,air max,dunkour website:
http://www.FASHION4BIZ.com
our MSN:email***@***.com
our EMAIL:email***@***.com
paypal accept,wholesale and retail accept,dropship accept
sale new Nike Sneakers,Air Jordan Sneakers,AIR FORCE 1S,Nike Dunks SB,
Bape Sta from nike outlets and factory stores, also Nike wholesale -
Jordan Shoes we supply nike sneaker jordan sneaker air force 1s ...
Featuring unique gift ideas for birthdays, weddings, anniversaries &
holidays.Nike Air Max LTD-Nike Air Max Ltd Shoes, Nike Air Max Ltd
Trainers. ... We also sale and wholesale nike shoes other styles:nike
air max - nike air max Nike Air Max - Nike Air Max TN Plus,TN
BURBERRY,Gucci,TN L.V.. NIKE TN REQUINS CHAUSSURES, neuves hommes Nike
TN basketball shoes requins Chaussures : Nike Air Max TN Plus
men's ,Nike Shox - Mens, Womens Nike Shox basketball shoes wholesale
from china Nike Shox TL NZ R4 R5 Turbo Monster Nike shoes
wholesale,Puma - Puma Shoes. Nike shoes wholesale: Puma Shoes men's
women's trainers .. Puma Shoes cheap discount shoes nike wholesale and
sale to nike shop and nike We sell Nike Air Max shoes,nike air max
trainers for running and training- Nike Air Max 360 95 97 2003 Tn Plus
Nike shoes wholesale,air max2 cb 94,air max2 cb,air ...Nike
Wholesale,Nike Sneaker, jordan Sneaker, Air Force one 1s, Dunk Dunks
Jordan Jordans Air Max Shox Rift ... Timberland. Timberland
boots,Timberland shoes, Prada wholesale, Prada sale, Prada shop, Prada
store. we wholesale and sale cheap discount Timberland men's
women's ,We Wholesale Cheap Jordan Shoes, Michael Jordan Shoes, Nike
Jordan Basketball shoes, Nike Air Jordan ... Once again, thank you for
www.fashion4biz.com
Timberland - Timberland Boots. Nike shoes wholesale: Timberland Boots
men's women's trainers sneakers basketball shoes running shoes.
Timberland Boots cheap discount Nike Air Max 90-Nike Air Max 90 Shoes,
Nike Air Max 90 trainers. ... nikeshoes Nike Air Max -> Nike Air Max
90 (Note Mens model size 41 42 43 44 45 46.Nike shoes buy, nike shoes
wholesale, buy nike shoes from china nike shoes wholesale ...
www.fashhion4biz.com ,Nike Running shoes,nike shox and nike air max
Running shoes, nike shox tl nz r4 turbo monster running shoes,nike air
max tn,Puma - Puma Speed Cat. Nike shoes wholesale: Puma Speed Cat
men's women's trainers sneakers basketball shoes running shoes,Nike
Air Max 2003-Nike Air Max 2003 Trainers,Nike Air Max 2003 Shoes. ...
Nike Air Max 2003 cheap discount shoes nike wholesale and sale to nike
shop and nike store.Nike Air Max - Nike Air Max 2004 trainers. Nike
shoes wholesale: Nike Air Max ... Nike Air Max 2003 cheap discount
shoes nike wholesale and sale to nike shop and nike factory.Nike Air
Jordan 3,nike jordan 3 retro shoes,nike air jordan 3 retro sneakers,
Nike air jordan 3 shoes wholesale: Nike Air Jordan 3 men's women's
trainers sneakers ,Nike Shox - Nike Shox TL NZ R4 R5 Turbo Monster
Nike shoes wholesale. We wholesale nike shoes: Nike Shox TL, Nike Shox
NZ, Nike Shox R4, Nike Shox R5, Nike Shox Nike Air Dunk - Nike Air
Dunk High. Nike shoes wholesale: Nike Air Dunk High men's women's
trainers sneakers running shoes.Nike Air Max 97, Nike Womens Air Max
97 trainers, nike mens air max 97 trainers, nike air max 97 running
shoes sell cheap with discount,Nike Air Force 1 - Nike ... Nike Air
force 1 High cheap discount shoes nike wholesale and ... We also sale
and wholesale nike shoes other styles:nike air we sell cheap Nike Air
Max 95 shoes and trainers for womens, mens and for running, trainning,
tennis with all black color, pink color,red, blue..with discount,Nike
air jordan shoes for wholesale, We wholesale ans sale nike air jordan
Basketball shoes, buy quality of nike air jordan running shoes
trainers sneakers for our ...Nike cheap shoes, we sale nike shoes in
cheap price, buy cheap nike shoes Adidas. Adidas shoes, Adidas
wholesale, Adidas shop, Adidas store, Adidas goodyear, Adidas TMAC,
Adidas Running shoes,we wholesale and sale cheap discount Adidas.Nike
Dunk - Nike Air Dunk. Nike Dunk Air Dunk Low Mid High Nike shoes
wholesale. We wholesale Nike Dunk Air Dunk Men's Women's shoes
wholesale at cheap discount price,Nike Air Rift - Nike Rift Air Rift
Nike shoes wholesale. We wholesale nike shoes; Nike Rift shoes, Nike
Air Rift shoes.Puma - Puma Joggers. Nike shoes wholesale: Puma Joggers
men's women's trainers ... Puma Joggers cheap discount shoes nike
wholesale and sale to nike shop and nike Adidas - Adidas Shoes. Nike
shoes wholesale: Adidas Shoes men's women's trainers ... Adidas Shoes
cheap discount shoes nike wholesale and sale to nike shop and nike
Shoes. Nike Air Max. Nike Air Max TN Plus. Nike Air Max 90. Nike Air
Max 91. Nike Air Max 95 ... Nike Air force 1 Low. Nike Air force 1
High. Nike Air Jordan Nike Air Max Nike Air Max 360 95 97 2003 Tn
Plus ... Nike Air Max 360, Nike Air Max 95, Nike Air Max 97, Nike Air
Max 2003, ... www.fashion4biz.com
,Nike Air Jordan 2, Nike Jordan 2 Retro Shoes Nike Air Jordan 2 shoes
wholesale: Nike Air Jordan 2 men's women's trainers sneakers
basketball shoes running shoes,Nike Air Max - Nike Air Max 2005, Nike
Air Max 2005 Trainers. ... We also sale and wholesale nike shoes other
styles:nike air max - nike air max ,Nike Air Jordan 11 Retro- Nike Air
Jordan XI Retro. ... Nike Air Jordan 11 cheap discount shoes nike
wholesale and sale to nike shop andJordan 5-Jordan V,Nike Air Jordan 5
V- Nike Air Jordan 5. Nike air jordan 5 shoes wholesale: Nike Air
Jordan 5 men's women's trainers sneakers basketball shoes ,Nike Air
Force 1 - Nike ... Nike Air force 1 Low cheap discount shoes nike
wholesale and ... We also sale and wholesale nike shoes other
styles:nike air max ...Nike Shox Turbo- Nike Shox Turbo Oh+. Nike Shox
Trubo shoes . ... We also sale and wholesale Original,Retro,Retro
+ ,Re-Retro +,Re-Retro Laser,Nike Shox - Nike Shox R4. Nike shoes
wholesale: Nike Shox R4 men's women's ... Nike Shox R4 cheap discount
shoes nike wholesale and sale to nike shop and nike ,Nike Air Jordan
12- Nike Air Jordan Xii. Nike Air Jordan 12 Retro shoes wholesale:
Nike Air Jordan 12 men's women's trainers sneakers basketball shoes
running ...Nike Air Max - Nike Air Max TN Plus. Nike shoes wholesale:
Nike Air Max TN Plus ... We also sale and wholesale nike shoes other
styles:nike air max - nike air max Shoes. Nike Air Max. Nike Air Max
TN Plus. Nike Airwholesale: Nike Shox ... Nike Shox Turbo oh, iv,iii
shoes here at cheap price from wwww.fashion4biz.com
...Nike Air Dunk - Nike Air Dunk Low. Nike shoes wholesale: Nike Air
Dunk Low men's ... We also sale and wholesale nike shoes other
styles:nike air max - nike air max ,Jordan 4 - Jordan 4 retro, Jordan
iv retro sneakers Max 90. Nike Air Max 91. Nike Air Max 95 ... Nike
Air force 1 Low. Nike Air force 1 High. Nike Air Jordan Nike Air Max
Vends Nike Air Max TN Requin Chaussures. ... We also sale and
wholesale nike shoes other styles:nike air max - nike air max Nike Air
Max 360, Nike ... Nike Air Max 360 cheap discount shoes nike wholesale
and sale ... We also sale and wholesale nike Air Max shoes other
styles:Nike Nike shop wholesale nike shoes include: Nike air jordan,
Nike air dunk, Nike shox tl nz r4 turbo monster, Nike air ... Nike
Replica shoes wholesale, wholesale replica shoes nike timberland Nike
Shox - Nike Shox TL. Nike shoes wholesale: Nike Shox TL ... Get your
cheap Nike Shox tl shoes for mens and womens at www.fashion4biz.com
Nike Air Jordan - Nike Air Jordan XXI 21. Nike Air Jordan 21 XXI 11 3
4 5 6 7 20 ... We wholesale nike air jordan 21 1 2 3 4 5 6 8 9 10 11
12 13 14 17 18 19 20 21 22 retro cards.Prada - Prada Americas Cup.
Nike shoes wholesale: Prada Americas Cup men's women's trainers
sneakers basketball shoes running shoes. Prada Americas Cup cheap Nike
Shox - Nike Shox BMW. Nike shoes wholesale: Nike Shox BMW men's
women's ... We also sale and wholesale nike shoes other styles:nike
air max - nike air max Nike Shox R5- Nike Shox R5 Shoes. Nike shoes
wholesale: Nike Shox R5 men's ... Nike Shox R5 cheap discount shoes
nike wholesale and sale to nike shop and nike ...BapeSta - BapeSta
Shoes. Nike shoes wholesale: BapeSta Shoes men's women's trainers
sneakers basketball shoes running shoes. BapeSta Shoes cheap discount
shoes nike Nike Air Jordan Xvi- Nike Air Jordan 16. Nike Air Jordan 16
retro shoes wholesale: Nike Air Jordan 16 men's women's trainers
sneakers basketball shoes running shoes,Nike Shox 3- Nike Shox TL III.
Nike shoes wholesale: Nike ... Get your cheap Nike Shox TL 3 III with
wholesale price at www.fashion4biz.com,Nike Shox Monster - Nike Shox
Monster Shoes. Nike Shox Monster shoes wholesale: ... and Womens Nike
Shox Monster shoes at www.fashion4biz.com Nike Air Jordan 6 shoes-
Nike Air Jordan 6 retro sneakers. ... jordan 6 shoes and sneakers Nike
Air Max - Nike Air Max 91. Nike shoes wholesale: Nike Air Max 91
men's ... We also sale and wholesale nike shoes other styles:nike air
max - nike air max Nike Air Jordan Dub Zero for wholesale, Nike Air
Jordan dub zero shoes, Nike Air ... Shoes ID: JDB-02. Air Jordan Dub-
Zero. Nike Air Jordan 5- Nike Air Jordan 5 v retro shoes. ... We also
sale and wholesale nike shoes other styles:nike air max - nike air
max ...BapeSta,A baping ape sta,Baping Sta,Bape
sta,shoes,shop,store,sale,wholesale ... Nike Air Max TN Plus. Nike Air
Max 90. Nike Air Max 91. Nike Air Max 95. Nike Air ...Puma shoes,
wholesale and sale Puma shoes from our puma shop puma store, wholesale
and sale Puma shoes sizes include mens women's mens womens.Nike Air
Jordan 8 sneakers-Nike Air Jordan VIII Shoes. ... Nike Air Jordan 8
cheap discount shoes nike wholesale and sale to nike shop and Nike Air
Max - Nike Air Max LTD. Nike shoes wholesale: Nike Air Max LTD
men's ... We also sale and wholesale nike shoes other styles:nike air
max - nike air max ...Nike Shox - Nike Shox NZ. Nike Shox Nz shoes
wholesale: Nike Shox NZ men's .. Nike Shox NZ cheap discount shoes
nike wholesale and sale to nike shop and nike We Sell Air Jordan 1
Shoes, Nike Air Jordan 1 Retro shoes at cheap price for wholesale
and ... Nike Air Jordan 1, Nike Air Jordan 1 Retro for Mens.Nike Air
Max , Nike Air Max 95. Nike shoes wholesale: Nike Air Max 95 men's ...
We also sale and wholesale nike shoes other styles:nike air max - nike
air max.Nike Shox TL II 2, Nike Shox TL 2, Nike Shox TL II, Nike Shox
TL 2 II running shoes, We wholesale Litmited nike shox TL 2 II mens'
women's shoes.Nike Air Max 97, Nike Womens Air Max 97 trainers. ...
Nike Air Max 97 cheap discount shoes nike wholesale and sale to nike
shop and Nike Air Max 90, Nike Air Max 90 running, Nike Air Max 97
Women's Trainer, Nike Air Max 90 shoes. ... We can Produce shoes in
all sizes : Kids shoes , Big size US 14 US15 Prada shoes, Prada shoes
wholesale, Prada Americas Cup shoes wholesale. ... Nike Air Max TN
Plus. Nike Air Max 90. Nike Air Max 91. Nike Air Max 95. Nike Air Max
97 Nike Shox - Nike Shox Turbo. Nike shoes wholesale: Nike Shox Turbo
men's women's ... Nike Shox Turbo cheap discount shoes nike wholesale
and sale to nike shop and Nike Air Max 90, Nike Air Max 90 running
Trainers, Nike Air Max 90 shoes. ... Nike Air Max 360, Nike Air Max
360 running, nike air max 360 Shoes, Nike air max 180.Nike Air Jordan
- Nike Air Jordan 8 sneakers. Nike shoes wholesale: Nike Air Jordan 8
men's women's trainers sneakers basketball shoes running shoes. Nike
Air,Nike air jordan shoes for wholesale, We wholesale ans sale nike
air jordan Basketball shoes, buy quality of nike air jordan running
shoes trainers sneakers for our.Prada shoes, Prada shoes wholesale and
sale, buy replica prada shoes from our prada shop store. ... Nike Air
Max TN Plus. Nike Air Max 90. Nike Air Max 91. Nike ,Evisu T-
shirts,Gino Green Global t -shirts Lacoste polo china wholesale,Polo
shirts t-shirts Edhardy chanel AF bape CD evisu shirt B.R.M t-shirts
Dsquared,LRG tshirts,lacoste shirts t-shirts g-star and
BBC,DG,burberry t-shirts,shirt china wholesale,china t-shirts at cheap
price,factory wholesale price,nike,polo for child,Sean
John,prada,GUINT,CROPPED HEADS armani,10 deep t-shirt,COOGI,juicy t-
shirts desquared woman t-shirt,callaway-golf,baby woman t-
shirts,artfull dodger,adidas,seven shirts t-shirts NBA jerseys NFL
jersey,nba jersey china factory wholesale,discount nfl jersey china
suppliers. lacoste t-shirts Made In China Products,lacoste t-shirts
China Suppliers and China Manufacturers, lacoste t-shirts China
wholesale. Red monkey jeans evisu edhardy Made In China edhadry jeans
bape hoody bape bbc hoodies Products,evisu jeans China Suppliers and
China Manufacturers,edhardy jeans China Salers,seven jeans China
Buyers,evisu jeans manufacturer,evisu factory wholesale.cheap evisu
jeans,discount diesel jeans.replica evisu jeans,china wholesale evisu
boss jeans.cheap red monkey jeans,discount BBC jeans, wholesale ape
jeans, ANTIK jeans,DG jeans,TAVERNITI SO JEANS china suppliers Levis
jeans,take two jeans,bape Diesel jeans factory wholesale ,artful
dodger green bbc global jeans,seven jeans,true religion jeans rock
republic jeans evisu jeans manufacture edhardy jeans D&G woman Jeans
rock republic woman jeans people for peace jeans,buy wholesale sale
sell cheap jeans men's.Wholesale replica designer Handbags, replica
knockoff designer handbag, gucci,handbag,coach handbag,chanel handbag.
coach handbag,louis vuitton,handbag,Cheap gucci,handbag
wholesale,discount handbag prada,fendi handbag china
wholesaler,burberry handbag factory,wholesale designer handbag, OEM
factory dooney and bourke handbag in china, chloe handbag
cheap,handbag dior,handbag lv replica handbag,juicy couture handbag
dooney and burke replica handbag replica knockoffs fake handbag marc
jacobs replic,Cellular Phones, Cell Phones, Wireless Phones, Wholesale
Cell Phones, Wholesale, Nokia N95, wholesale price, dropship, import
and export deal, stock details ,Nokia N95 at Wholesale Price for
exporters from outside of China.China Distributor/Wholesaler of Nokia
N95, 8800, N93, N93i, N90, N77, N75, ... wholesale replica nokia
sirocco motorola samsung,apple iphone vertu.Sell Mobile Phone N95,
Mobile Phone, Nokia Phone, Cell Phone ... wholesale Mobile Phone
supplier in China,wholesale :Mobile Phone,Nokia N95,Nokia ,Nokia N95,
8800, N93, N93i, N90, N77, N75, 5700xm, Samsung, Motorola, Dopod,
Blackberry, GSM, Dual Sim Card Cell Phone. Get ... wholesale ...
Mobile Phones ,Latest Mobile Phones. Nokia 5700. Nokia N95 ... on
mobile phones | wholesale Nokia phone deals | wholesale Motorola phone
deals
- 12
- X3D and Java3DDoes anyone know if there are debs for X3D and Java3D that will work
with Sarge? It seems that X3D depends on Java3D. I have the X3D jar
but would prefer if possible to have a deb. I can't find either for
Java3D and Sarge, the jars seem to be all for Woody. I know I'll need
the nVidia drivers for my TNT2 card for this to work, but I think I can
get those (if I can figure out which of the legacy drivers will work).
I have the Sun 1.5 jre and sdk.
Thanks!
--
Blessings
Wulfmann
Wulf Credo:
Respect the elders. Teach the young. Co-operate with the pack.
Play when you can. Hunt when you must. Rest in between.
Share your affections. Voice your opinion. Leave your Mark.
--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
- 13
- any LWP::UserAgent equivalent in java && a java regex questionHi All
I have found Perl's LWP::UserAgent and related packages useful. Does
java have any thing
equivalent i.e. that won't make me do encoding when I want to do an
http POST? I am a newbie
to java. Also, is there anything like java CPAN ?
Also, in perl, if I do /some pattern (some other pattern)/ I get "some
other pattern" in $1. I found
out that () have different meanings in Java. The only to get $1 in
Java is to write more lines.
Thanks in advance
Z. M. Wu
- 14
- problem with two JFrameI have a JFrame vith various JPanel. Attached to a component there's a
listener. When double-click occured a second JFrame will open. If i
close this with X all application go closed. Why why why why?!?!??!
I want close second JFrame but not first! :-(
Bye!
- Simone -
P.s. ...and always sorry for my bad english.
- 15
- Empty cacerts file installed by jdk-1.4.2p5 port causedThis is a multi-part message in MIME format.
------=_NextPart_000_0039_01C3BE43.75A7BFC0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Hello,
I was successfully running an SSL-enabled application on the Linux =
version of JDK 1.4 on FreeBSD 4.8-STABLE, and decided to go native. When =
I built the native JDK and ran my app on it, I got the following =
exception when it attempted to open an SSL connection to a host the =
Linux JDK had never had trouble connecting to:
sun.security.validator.ValidatorException: No trusted certificate found
After some research, I tracked down the problem to the =
jre/lib/security/cacerts file installed by the jdk-1.4.2p5 port: it was =
only 32 bytes in size and contained no certificates. I copied the =
cacerts file from the Linux JDK's directory and that fixed the problem.
Is this a known issue? Or am I the only human being in the world to ever =
have this problem? I have attached the cacerts file installed by the =
port.
Please reply to the list only, for my supplied address is fake.
Thanks,
Nick
---
MSN2Go - Web-based MSN Messenger client
http://www.msn2go.com/
------=_NextPart_000_0039_01C3BE43.75A7BFC0
Content-Type: application/octet-stream;
name="cacerts.bak"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="cacerts.bak"
/u3+7QAAAAIAAAAA4mhuRftD36TZkt1BzrayHGMw15I=
------=_NextPart_000_0039_01C3BE43.75A7BFC0
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
------=_NextPart_000_0039_01C3BE43.75A7BFC0--
|
|
|