| Getting the references of all the instantiated classes in my program |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- HL7 and HAPIHello,
I am trying to write an HL7 wrapper in my Java app. I have stumbled
across HAPI, which seems to have everything I need. However, the only
thing I can find with regards to documentation of HAPI is the Java
Doc. This is great and all, but I would really like a bit more, such
as examples. There are a few on their site,
http://hl7api.sourceforge.net/, but they are very basic. I need
something a bit more.
Has anyone emplemented anything using HAPI? Are there any good
examples online anywhere? Has anyone maybe found a better tool than
HAPI? I have found references to different tools, but HAPI seems to
be the most common.
Seeing as how I know very little about HL7 and HAPI, I could use
whatever help you can offer.
Thanks
Dan
- 1
- write a string from URLConnection to a servletI'm trying to write a string from URLConnection to a servlet. what I'm
trying to do is, get an XML file from client over URL so that the
servlet can get it and process it and send the response to the client.
The problem, here is I'm not getting the XMLstring to the servlet. I
do the
>following steps:
>
> *client side*
> 1. create URL corresponding to the servlet
> 2. get URLConnection ( url.openConnection() )
> 3. enable output ( connection.setDoOutput(true) )
> 4. get output stream ( connection.getOutputStream() )
> 5. wrap the output stream into PrintWriter
> 6. println(string)
> 7. flush/close output stream
> *server side*
> 1. get input stream for the servlet ( request.getInputStream() )
> 2. wrap it to BufferedReader
> 3. read the string
> 4. process it using SAX Parser
> 5. send the response to the client
>It looks like the string has not come
>through to the servlet.
for details:
*********servlet side*********************
reader = new BufferedReader(new
InputStreamReader(httpRequest.getInputStream()));
String line = null;
int letter = 0;
while ((letter = reader.read()) != -1) {
buffer.append(letter);
//System.out.println(line);
}
} catch (Exception e) {
log(ERROR,"Cannot read from URL" + e.toString());
throw e;
} finally {
try {
reader.close();
} catch (IOException io) {
log(ERROR,"Error closing URLReader!");
throw io;
}
}
System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
SaxParser sp= new SaxParser(buffer.toString(), true);
**************client Side***********************
URL url = new URL("http://localhost/lkn?action=cartToCart");
HttpURLConnection connection = (HttpURLConnection)
url.openConnection();
connection.setDoOutput(true);
connection.setDoInput(true);
connection.setUseCaches(false);
connection.setDefaultUseCaches(false);
String queryString = buildXml().toString();
OutputStream out = connection.getOutputStream();
out.write(queryString.getBytes());
//out.write(queryString.getBytes());
out.flush();
out.close();
- 4
- Inverting IntegerHi,
Can someone please tell me what inverting a integer is?
Also what is it used for?
If you have a simple example then please let me know.
There is not much on the Internet regarding this subject.
Regards,
Simon
- 6
- ImageIO.read with PNG fileHi,
using JDK 1.5.0_04 I try to read a PNG image with ImageIO.read():
String uri = "http://www.w3.org/Icons/right.png";
//String uri = "http://www.w3.org/Icons/w3c_home.png";
try
{
InputStream inputStream = new URL(uri).openStream();
BufferedImage bufferedImage = ImageIO.read(inputStream);
}
catch (Exception e)
{
e.printStackTrace();
}
I get the following exception:
java.lang.IllegalArgumentException: LUT has improper length!
at
javax.imageio.ImageTypeSpecifier$Indexed.<init>(ImageTypeSpecifier.java:866)
at
javax.imageio.ImageTypeSpecifier.createIndexed(ImageTypeSpecifier.java:955)
at
com.sun.imageio.plugins.png.PNGImageReader.getImageTypes(PNGImageReader.java:1463)
at
com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1348)
at
com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1530)
at javax.imageio.ImageIO.read(ImageIO.java:1400)
at javax.imageio.ImageIO.read(ImageIO.java:1322)
at ImageIOTest.main(ImageIOTest.java:26)
When I read the other file (http://www.w3.org/Icons/w3c_home.png)
everything is fine. Is this a problem with the PNGImageReader or with
the PNG image itself? Various image viewing programs can handle the image.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
- 9
- JSP tags questionsI am VERY new to JSP, so I hope my question makes sense.
I am trying to use a tag from the google API estimatedTotal.
<google:estimatedTotal />
If I just put it in my jsp like this, it prints the number of
estimated search results directly on the page. I don't want this. What
I want is to collect this value and stick it into a java variable for
future processing.
Can this be done? If so, what's the syntax?
Thank you so much in advance
- 10
- DataSource problemHi,
I would like to use javax.sql.DataSource to connect to the database from a
simple application.
I have the next program fragment:
Context initctx = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource)initctx.lookup(
"java:comp/env/jdbc/MyDatabase");
java.sql.Connection cx = ds.getConnection(user,password);
I do not know how what "java:comp/env/jdbc/MyDatabase" means and how to set
the database url, the jdbc driver and so on.
I have read many documents but I cannot find the solution. Can anybody help
me?
Okip
- 11
- stock prices off the net.Hey,
I want to grab stock prices off the net, but I'm not sure how to go
about it. I'm pretty sure I should be able to query the web-server on a
financial web-site and parse the HTML that is returned. Is there some sample
code out there?
Thanks in advance,
//Rob
- 13
- [ports-i386@pointyhat.freebsd.org: jdk-1.4.2p7 pkg-plist errorsOn Sat, Mar 26, 2005 at 04:33:32PM -0800, Kris Kennaway wrote:
> ----- Forwarded message from User Ports-i386 <email***@***.com> -----
>
> list of extra files and directories in / (not present before this port was installed but present after it was deinstalled)
> 907052 8 drwxr-xr-x 3 root wheel 512 Mar 25 12:25 usr/local/jdk1.4.2
> 907053 8 drwxr-xr-x 3 root wheel 512 Mar 25 12:25 usr/local/jdk1.4.2/jre
> 948668 8 drwxr-xr-x 2 root wheel 512 Mar 25 12:20 usr/local/jdk1.4.2/jre/.systemPrefs
> 948669 0 -rw-r--r-- 1 root wheel 0 Mar 25 12:20 usr/local/jdk1.4.2/jre/.systemPrefs/.system.lock
> 948670 0 -rw-r--r-- 1 root wheel 0 Mar 25 12:20 usr/local/jdk1.4.2/jre/.systemPrefs/.systemRootModFile
>
>
> ----- End forwarded message -----
This was broken by the change to the dynamic plist. These files are
installed by the pkg-install script, which occurs after the packing list
has been generated :(. A simple fix should be to add an explicit
PLIST_FILES/PLIST_DIRS setting for these files. I suspect the breakage
for jdk15 is the same. I'll look into it.
--
Greg Lewis Email : email***@***.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology FreeBSD : email***@***.com
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 13
- Netbeans 4.0 beta2 color scheme configuration?I just downloaded Netbeans again (tried 3.2 and 3.3 way back when). At one
time, you could change the colors of the application (not *just* the
editor) with an XML file or use a custom L&F. I need to setup Netbeans to
be a much darker color scheme since the default one is *way* too bright and
very uncomfortable to use. I get a headache within 30 minutes of using it.
However, I've not had much luck getting anything to work (what little I
remember for 3.2/3.3 days). Any pointers would be appreciated.
Regards,
Dan
- 14
- Streaming Project / red5Hi Java-Developers,
i'm looking for a solution for the following project:
I have a Travelmoviewebsite called www.triponia.com and I'm planning
to integrate some "WebTV boxes". Currently every movie is shown by
progessive flv download over my own player.
In the "WebTV players" i plan to show a "multicast" stream depending
on a playlist. The playlist should be changeable every time without
reloading the player application. So i need a real stream, that every
person can see the same picture in the same moment.
Additionally there should be an option to show a livestream (mpeg-
stream over IP-Cam) out of a webcam.
I plan to use red5 as streaming server (http://osflash.org/red5).
I know that there are already some examples which i could modify for
my uses. But I'm only a perl programmer - not a java coder ;-)
So i need an interface which i can control over config files or other
ways from my perl application to control the current stream (setting
the playlists and configure a livestream).
Please send offers directly to my e-mail address using the same
subject. If you have any questions please reply within the newsgroup.
Thank you.
Kai
- 14
- I'm having trouble installing TomCat on my mac. I'm a C# developer ready to make the transition to the Java world! I
need some help setting up my IDE. I am getting a permission denied
error when installing TomCat 5.5 on my Mac OsX machine. When I run a
sudo as the root, I get an error saying that i typed an invalid
command. Any suggestions?
Also, I would like to integrate TomCat 5.5 with Eclipse using JSP. If
you all know of a guide guide for this, please let me know.
THanks...
- 14
- writing wrapping code around C codeHi all,
My boss wants me to write some Java wrappers around some old C code... I'm
just an intern so I don't know the first step to take to do this. Could you
point me in the directions of some classes or documentation I should
consider to write java wrappers around C?
Thanks,
Andrew
- 14
- Site Manager job offering at Microsoft - Java a plus!On 13 Aug 2003 17:10:18 -0700, asj wrote:
> if you wanna work for Microsoft, it helps to know Java:
> http://www.microsoft.com/careers/search/details.aspx?JobID=e63b1566-bc7d-4eb5-a0ba-5499f97e4e7c
>
> from: http://weblogs.java.net/pub/wlg/364
... and?
Don't you remember that not so long ago, Microsoft had the best Java
Virtual Machine out there? Companies don't throw out technology they've
developed for internal infrastructures unless it doesn't work any more.
Simon
- 15
- about org.eclipse.test.performance packageHello, everyone,
now I worked on a project of creating a new java compiler. And I wanna
evaluate the performance of the compiler by comparing it with Javac.
Also someone told me that in org.eclipse.test.performance package, it
can be used to evaluate the performance of a compiler.
I am new to eclipse, can anyone tell me if I can use this
org.eclipse.test.performance to evaluate the compiler on linux?
is it easy to do?
thanks
- 16
- mozilla style sidebarG'Day All,
Would like to build a mozilla style sidebar for a java application.
However, before going off and reinventing the wheel, thought there may
be one in existance already. Google searching has not turned any up
yet.
Does anyone know of a good swing based sidebar ?
|
| Author |
Message |
D Sandher

|
Posted: 2003-9-24 23:55:00 |
Top |
java-programmer, Getting the references of all the instantiated classes in my program
Hi All,
I want to do something like the following: Say I have an Auctioneer and a
Bidder class and then in my program I write:
a1=new Auctioneer(blah blah blah);
b1= new Bidder(blah blah blah);
b2= new Bidder(blah blah blah);
Is there a way I can get a list of references for the objects? I would
like to have an array with a1,b1,b2 as references. Is that possible?
I look forward to hearing from you soon.
Thanks,
Dil
|
| |
|
| |
 |
Michael Borgwardt

|
Posted: 2003-9-25 0:04:00 |
Top |
java-programmer >> Getting the references of all the instantiated classes in my program
D Sandher wrote:
> I want to do something like the following: Say I have an Auctioneer and a
> Bidder class and then in my program I write:
>
> a1=new Auctioneer(blah blah blah);
> b1= new Bidder(blah blah blah);
> b2= new Bidder(blah blah blah);
>
> Is there a way I can get a list of references for the objects? I would
> like to have an array with a1,b1,b2 as references. Is that possible?
Sure:
Object[] array = new Object[]{a1,b1,b2};
|
| |
|
| |
 |
Chris Smith

|
Posted: 2003-9-25 0:20:00 |
Top |
java-programmer >> Getting the references of all the instantiated classes in my program
D Sandher wrote:
> I want to do something like the following: Say I have an Auctioneer and a
> Bidder class and then in my program I write:
>
> a1=new Auctioneer(blah blah blah);
> b1= new Bidder(blah blah blah);
> b2= new Bidder(blah blah blah);
>
> Is there a way I can get a list of references for the objects? I would
> like to have an array with a1,b1,b2 as references. Is that possible?
A list of all references in the application? No. You'd have to keep
track of specific references as they are created, modified, go out of
scope, etc.
Alternative, the profiling or debugging interfaces to the VM may be able
to provide this information to native code, for debugging purposes.
--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
|
| |
|
| |
 |
tam

|
Posted: 2003-9-25 5:27:00 |
Top |
java-programmer >> Getting the references of all the instantiated classes in my program
Michael Borgwardt <email***@***.com> wrote in message news:<bksf8v$5bujp$email***@***.com>...
> D Sandher wrote:
> > I want to do something like the following: Say I have an Auctioneer and a
> > Bidder class and then in my program I write:
> >
> > a1=new Auctioneer(blah blah blah);
> > b1= new Bidder(blah blah blah);
> > b2= new Bidder(blah blah blah);
> >
> > Is there a way I can get a list of references for the objects? I would
> > like to have an array with a1,b1,b2 as references. Is that possible?
>
> Sure:
> Object[] array = new Object[]{a1,b1,b2};
I'm guessing the original poster wants to be able to go somewhere and
get a list of all of the Auctioneers and Bidder's that have been created.
If that's what you want, and you never want to get rid of one of these
(or you're willing to call some special destructor method when you do),
then you can have code in the constructors for these objects save
the objects in some kind of collection.
I.e., you could have code like:
[in the bidder constructor]
public Bidder(blah blah blah) {
...
collection.add(this)
...
}
Then when you want a list of all of the actors you do something
like:
actors = collection.toArray();
There are a fair number of subtleties to watch out for,
especially if you want the collection to have disparate
classes or if the code is multithreaded.
Good luck,
Tom McGlynn
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- JProgressBar Flickering!Hi everyone! I just have a little question here!
I have a Swing GUI in which I put a JProgressBar.
I also have a static class where I put a static variable JProgressBar.
In my main program, because the static methods are time consuming, I
start a new thread, where I initialize the static JProgressBar with the
one in main gui.
So I'm able to update the text, value, etc in the GUI without locking
my main program.
The problem is:
I put progression report [ progressBar.setValue(int) ] in my loops to
see the change. It works perfectly BUT!!!
Every time it sets a new value, the progress bar show a lot of
flickering! I enabled double buffering on it, but no effect!
How can I remove this bad effect??? If some knows please tell me quick
:)
Thanks,
Ad
- 2
- change defaultsHi,
How do you change the default font for all components ( frame, label, etc )
in swing ?
regards
Johan
- 3
- RMI first stepHello,
For testing purpose, I'm trying to use RMI...
Here is the exception when I run Main.java :
Exception in thread "main" java.security.AccessControlException: access
denied (java.net.SocketPermission 192.168.0.1:1099 connect,resolve)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:264)
at
java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
at java.net.Socket.connect(Socket.java:501)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.<init>(Socket.java:365)
at java.net.Socket.<init>(Socket.java:178)
at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketF
actory.java:22)
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketF
actory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at testRMI.Main.main(Main.java:28)
(jdk1.5.0_01 - Win2000Pro - no firewall)
What am I doing wrong ?
Thanks for your help,
Martin.
The code :
===================================================================
Main.java :
package testRMI;
import java.net.MalformedURLException;
import java.rmi.AlreadyBoundException;
import java.rmi.Naming;
import java.lang.SecurityException;
import java.rmi.RMISecurityManager;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
public class Main extends UnicastRemoteObject implements Meeting
{
private String ivDate = new String("25/3/2005");
private static final long serialVersionUID = 1;
public Main() throws RemoteException {
}
public String getDate() throws RemoteException {
return ivDate;
}
public static void main(String[] args) throws
AlreadyBoundException,RemoteException,
MalformedURLException,SecurityException {
System.setSecurityManager(new RMISecurityManager());
Main ms = new Main();
Naming.rebind("rmi://192.168.0.1/Meeting",ms);
}
}
===================================================================
Meeting.java
package testRMI;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface Meeting extends Remote
{
public String getDate() throws RemoteException;
}
===================================================================
ClientRMI.java
package testRMI;
import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RMISecurityManager;
import java.rmi.Remote;
import java.rmi.RemoteException;
public class ClientRMI
{
public static void main(String[] args)
throws RemoteException, MalformedURLException,NotBoundException {
System.setSecurityManager(new RMISecurityManager());
Remote r = Naming.lookup("rmi://192.168.0.1/Meeting");
String s = null;
if(r instanceof Meeting)
{
Meeting ms = (Meeting)r;
s = ms.getDate();
}
System.out.println(s);
}
}
===================================================================
- 4
- JNI Trouble calling FindClass from Worker threadHello
I am able to get the class object when i call FindClass in the main
thread. Now when i spawn a worker thread and attempt the same call
after caching the JVM and creating a new Env . it fails and triggers an
exception on the Java side .
My code for a DLL looks like this
JMVM *jvm = NULL ;
..
DLLMain()
{
}
JNIEXPORT jint JNICALL Initialize
(JNIEnv *pEnv, jclass)
{
pEnv->GetJavaVM(&jvm);
ASSERT(jvm!=NULL);
jclass cls = pEnv->FindClass("demoflashplugin/views/Objfactory");
if(cls!=NULL)
AfxMessageBox("cls found");
AfxBeginThread(WindowThread , NULL);
}
UINT WindowThread(LPVOID p)
{
JNIEnv *env = NULL ;
jclass cclass ;
if(jvm!=NULL)
{
if (0==jvm->AttachCurrentThread((void**)&env,NULL))
{
if ((env)->ExceptionOccurred()) {
AfxMessageBox("Exception occured");
(env)->ExceptionDescribe() ;
}
if(env!=NULL)
{
AxMessageBox(getenv("CLASSPATH"));
cclass = env->FindClass(demoflashplugin/views/Objfactory");
if(cclass!=NULL)
{
AfxMessageBox("Class is not Null");
}
else
AfxMessageBox("Class is s Null");
}
else
{
AfxMessageBox("env is NULL ");
}
AfxMessageBox("Finished checking for string");
}
else
{
AfxMessageBox("JVM IS Null");
}
}
}
- 5
- Nunni FSM Generator v. 1.1 released!NunniFSMGen v. 1.1 has been released on August 12th 2004
NunniFSMGen is Open Source and comes with GPL license.
http://nunnifsmgen.nunnisoft.ch/en/home.jsp
NunniFSMGen is a java tool that starting from a transition table
generates the corresponding FSM (Finite State Machine) in Java, C
or C++ source code. It has been developped in 2003 at NunniSoft
for generating the FSMs of our own software and successfully used
(here at NunniSoft) since it's first internal release (in June 2003).
Changes since 1.0.3
- generation of C code is now more optimized for size
- some clean up
NunniFSMGen has also been used to develop two other Open
Source projects, distributed under the LGPL licence:
NunniMJAX http://nunnimjax.nunnisoft.ch/en/home.jsp
and
NunniMCAX http://nunnimcax.nunnisoft.ch/en/home.jsp
The above are two minimal and lightweight libraries for
parsing XML. The first is written in Java, the sencond in C.
Best regards.
--
Roberto Nunnari -software engineer-
mailto:email***@***.com
Residenza Boschetto 12 tel/fax: +41-91-6046511
6935 Bosco Luganese """ mobile: +41-76-3208561
Switzerland (o o)
========================oOO==(_)==OOo========================
- 6
- 7
- Circular linked listHi
I'm looking for a circular linked list implementation.
Any references appreciated.
Cheers
Sharp
- 8
- java.util.logging for Java 1.3.1Being stuck in Java 1.3 becuase of application vendors, I would love to
have a backwards port of java.util.logging libraries to 1.3.
Has anybody out there have such a port?
Thanks,
Tim
- 9
- Something a bit goofy about Generics
Iterable<? extends JavaFileObject>
You'd think a JavaFileObject[] or a JavaFileObject... would fullfil
that requirement, but it doesn't. It fills it sufficiently to do a
for:each but not to satisfy this parameter.
That is like a piece of purple lint on a white sweater.
People say arrays and generics don't mix, but they damn well SHOULD.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
- 10
- 11
- debrisW a t c h o u t!
ALLIACNE ENTERPRSIE (A ETR)
Currnet Prcie: 0.80
Add this g e m to your w atch list, and w atch it tard closely!
Nwes Releaes!
Taeocrp announces breackrough in removing deadly l andmines.
Mill Valley, California August 25, 2006 - The Alliance Etnerprise Corpoartion announced today a breakthrough in developing an Areial Lnadmine Sysetm aimed at locating, detecting and mapping deadly landm ines.
TeaCorp's mission is to reclaim lands around the globe embedded with l andmines that victimize countries and their stakeholders.
More than 100 m i l l i o n landm ines in 83 countries are holding international communities and industries hostage, preventing the inv estment in and development of product ive lands and the re-building of infrastructure. A broad variety of landmine s have been scattered over pro ductive areas effectively crippling the eco nomy and disabling thousands of children and adults. There are no reliable records that accurately show where these d e v a s t a t i n g landmine s lie in wait for their v ictims.
With the present day c osts to clear a single land mine ranging between $1,000 to $1,500, solving the problem of de-mining lands will reach billions of dol lars. TaeCorp has developed a technology based, cos t effective solution to this problem using its three tiered approach to scanning, mapping and removing la ndmines. TaeCorp's System will provide many social and eco nomic benef its to countries and their industries including oil and gas, mining, agriculture, roads and infrastructure development.
About TaeCorp.
TaeCorp's vision is to be the recognized leader in providing Aeiral Deteciton Systmes including global de-mining, clearing a path to a safer planet for all humankind.
Here comes the big one!
All signs show that AET R is going to Explode!
Concl usion:
The examples above show the awesome, earning potential of little known companies that explode onto invesotr's radar screens; Many of you are already familiar with this. Is A ETR poised and positioned to do that for you? Then you may feel the time has come to act... And please watch this one trdae tomorrow! Go AE TR.
Pen ny sotcks are considered highly speculative and may be unsuitable for all but very aggressive investros. This prof ile is not in any way affil iated with the featured company. This report is for entertainment and advertising purposes only and should not be used as invesmtent advice. If you wish to stop future m a i lings, or if you feel you have been wrongfully placed in our membership, send a blank e m a i l with No Thanks in the subject to
--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
- 12
- PAAppViewer3 (AppViewer3)?Hello,
Might anyone please kindly answer my question? Thank you very
much.
I can't read the result of performing bootstrapping in Amos 6.0.
In the Amos text output, on the left hand side, there are two
sections. The lower section is the result of performing bootstrap,
including estimates/bootstrap, estimates of bootstrap standard error,
estimates of bias-corrected percentile method.
However, I can't read any of them. Nothing shows up.
Also, I find this message,
Error number: 70
Source: PAAppViewer3 (AppViewer3)
Description: Permission denied
Call stack: frmMain hdoc_ onmouseover
How can I be able to read the result of performing bootstrapping in
Amos 6.0.?
Thank you very much and look forward to your kind reply.
Please take care
Best wishes to your life
Caroline
- 13
- -Xmx---m getting smaller and smallerHi,
I have Windows XP SP3 with 4GB memory (I know Windows only allows apps to use
about 3.25GB.) I have no applications running. I ran System Mechanic 7 to
defrag the memory with the result of the largest contiguous block of memory
being 2.74GB.
However, everytime I started Eclipse 3.3.2, the JRE 1.6.0_04 JVM terminated
with a -1 code. I started at -Xmx1024m and continually decremented until I
reached -Xmx600m when Eclipse started okay. This morning I was running
Eclipse with -Xmx900m okay.
The only changes I made were to (1) set the system variable JAVA_HOME to
reference JDK 1.6.0_04 and replaced java.exe, javaw.exe, javaws.exe in c:
\WINDOW\System32\ with the JRE 1.6.0_04 files. They were 1.4.2_07.
Does anyone have any idea why the JVM terminates because of not enough memory
when there is more than enough contiguous memory? This is really
frustrating.
Thank you,
Don
- 14
- run Client and the server on two different machine!! it doesen't work!!Hi,
I am trying to execute my Corba/Java program with the Client on one
machine and the server on another (things work
fine on a single machine).
-------------------------------------
- tnameserv -ORBInitialPort 1500
- java Server -ORBInitialPort 1500 -ORBInitialHost htest
- java Client -ORBInitialPort 1500 -ORBInitialHost htest
----------------
I've tried running tnameserv on the server only."htest" is the
servermachinename!!
But any attempt to use the name service results in the error :
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed:
No
at
com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:148)
at
com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:65)
at
com.sun.corba.se.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:67)
at
com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:652)
at
com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:594)
at
com.sun.corba.se.internal.corba.ClientDelegate.request(ClientDelegate.java:886)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)
at
org.omg.CosNaming._NamingContextExtStub.resolve_str(_NamingContextExtStub.java:156)
at Test.Client.main(Client.java:48)
Any ideas on what is missing??????
thanks
Tina
- 15
- Proposal. Sort should return a boolean.Here is an idea. I would like it if Collections. sort and Arrays.sort
would return a boolean. true means something actually changed. false
means the array was already in order.
Further there would be an additional boolean parameter to the sort to
say "items probably already in order". The sort would then do a quick
check to make sure the items were in order, and if so, bypass the full
sort.
This would be useful when you have to avoid needlessly calling
fireTableDataChanged after a sort.
It would also allow you to use sorts in an assert to ASSURE the data
are already sorted, and explode if they are not already sorted.
Since the sort is void now, all existing code would still work. You
would just have an additional method call with the optional boolean
parameter, or perhaps only in would get the boolean return.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
|
|
|