comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * strange jboss exception while deploying entity bean - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/939a82ff18d7d6a3 * Multiple JVMs; specifying the runtime lib - 4 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a0514c6cbf4dc13a * Roadmap for Java 1.5? - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1d35053de60e13a0 * Java trick - 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bfd25be52dc6a3ad * suggestion for a java cache for http session - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3eb3d59058a37e4f * J2ME: The Complete Reference - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/29dde018c381d116 * help fix a problem with modal windows - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/871053c08e392c83 * Memory leakage problem with a database application - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cd24fb0a93e5b285 * simpleDateFormat and April month - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/383df9c88dcb10ba * Developing Web Services in JAVA using Apache Soap on a tomcat server - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/521d4ed2e2814bb0 * html:img with a dynamic value STRUTS - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8307d0b6770ca5f3 * JNI and threads - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3507a5e81272b473 * Better looking fonts in Java - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fd4bf36346e298a5 * .NET Programmer Needs To Learn Java - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b99c5dff939a0cea * java.io.FileReader and java.io.FileWriter encoding - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/48b32bb0299455e8 * How to incremet IndetAddress / IP numbers - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/94897e32234ceaaf ========================================================================== TOPIC: strange jboss exception while deploying entity bean http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/939a82ff18d7d6a3 ========================================================================== == 1 of 2 == Date: Fri, Sep 17 2004 9:18 am From: [EMAIL PROTECTED] (tmaus) hi there .. im running into a strange problem while deploying an entity bean .. these are my xdoclet tags: * @ejb.finder * query = "SELECT object(o) FROM User o WHERE o.login=?1 AND o.password=?2" * signature = "com.ikatomi.im.user.ejb.UserLocal findByUsernameAndPassword(java.lang.String login,java.lang.String password)" * * @jboss.query * query = "SELECT object(o) FROM User o WHERE o.login=?1 AND o.password=?2" * signature = "com.ikatomi.im.user.ejb.UserLocal findByUsernameAndPassword(java.lang.String login,java.lang.String password)" */ and this is the error jboss is throwing .. 17:35:48,147 ERROR [EntityContainer] Starting failed jboss.j2ee:jndiName=UserLocal,service=EJB org.jboss.deployment.DeploymentException: Query method not found: findByUsernameAndPassword(java.lang.String,java.lang.String) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.getQueryMethods(JDBCQueryMetaDataFactory.java:322) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.getQueryMethods(JDBCQueryMetaDataFactory.java:243) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.createJDBCQueryMetaData(JDBCQueryMetaDataFactory.java:65) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.<init>(JDBCEntityMetaData.java:862) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.<init>(JDBCApplicationMetaData.java:363) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:75) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:705) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:417) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:365) at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:147) at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:337) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) i have to add that i can use the findByPrimaryKey method without any probems which means that i made a mistake in my finder method ... but i dont know why it throws a NullPointerException greetings from berlin == 2 of 2 == Date: Fri, Sep 17 2004 10:08 am From: Sudsy <[EMAIL PROTECTED]> tmaus wrote: <snip> > 17:35:48,147 ERROR [EntityContainer] Starting failed > jboss.j2ee:jndiName=UserLocal,service=EJB > org.jboss.deployment.DeploymentException: Query method not found: > findByUsernameAndPassword(java.lang.String,java.lang.String) <snip> Difficult to diagnose as the xdoclets look okay to me. Have you had a peek at the META-INF/jbosscmp-jdbc.xml file? It should contain something like this: <query> <query-method> <method-name>findByUsernameAndPassword</method-name> <method-params> <method-param>java.lang.String</method-param> <method-param>java.lang.String</method-param> </method-params> </query-method> <jboss-ql><![CDATA[SELECT object(o) FROM User o WHERE o.login=?1 AND o.password=?2]]></jboss-ql> </query> Only other thing I could suggest (even though it should not make a difference, technically speaking) is to add spaces before and after the equals sign. I seem to recall having problems in the past with parsers which required white-space between tokens... ========================================================================== TOPIC: Multiple JVMs; specifying the runtime lib http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a0514c6cbf4dc13a ========================================================================== == 1 of 4 == Date: Fri, Sep 17 2004 9:22 am From: [EMAIL PROTECTED] (Scott Edward Skinner) [EMAIL PROTECTED] (Tim Jowers) wrote in message <snip "humor"> > Seriously, java.exe is the exectuable. Executables are found via PATH. > "set PATH" works in Windows and Linux/Unix. Or even launch using > chosen JVM. Seriously, I know all this. Have you tried this yourself? Uninstall every reference to Java from your Windows Registry. Then copy the j2sdk1.4.2_05 folder to your HD. Then set all the environmental variables you want; you know; things like JAVA_HOME and PATH and CLASSPATH. Then try to run HelloWorld... <insert my original question here> -S == 2 of 4 == Date: Fri, Sep 17 2004 9:33 am From: Andrew Thompson <[EMAIL PROTECTED]> On 17 Sep 2004 09:22:30 -0700, Scott Edward Skinner wrote: > <insert my original question here> <insert my original answer here> == 3 of 4 == Date: Fri, Sep 17 2004 9:45 am From: [EMAIL PROTECTED] (Scott Edward Skinner) Andrew Thompson <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > On 16 Sep 2004 06:35:54 -0700, Scott Edward Skinner wrote: > > Please don't top-post Edward, I find it most confusing.. > <http://www.physci.org/codes/javafaq.jsp#netiquette> > > See further comments in-line. > > > Andrew Thompson <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > >> On 15 Sep 2004 10:18:32 -0700, Scott Edward Skinner wrote: > >> > >>> In general, what is the best way to handle multiple JVMs? > >> > >> Java Webstart. > .. > > thought JWS was for client-side stuff like Applets. > > or applications. > > >..I'm talking > > about multiple JVMs for QA.. > > Question and Answer? QA = Quality Assurance. Q&A = Question and Answer. > What has that to do with the conversation? QA is fairly relevant to any development process... > > >..--server-side stuff. > > So, is this a web-service? Is it > defined in the web.xml file? Or are > these simply applications that run > on the server? Servlets. JSPs. That sort of thing. > > > Is there a list of undocumented parameters ... > > If there was a list, ..they would > then be documented. I'm using undocumented in the sense of something that is not widely known or distributed. > >...beyond what "java -help" provides? > > No. Are you certain of this? Absolutely certain? > 'batch files' is not the way to go here > in any case. I am not sure how to do it if > you are talking anout a web-service, but for > applications, WebStart has all you need. > > You can specify not only a minimum version, > but even specific micro-versions of the JRE. > > They are 'installed' in that if the requested > JRE is not present, it will be downloaded and > installed, but it does not 'take over' as the > main JRE in the way it would if you install a > different Java version yourself. == 4 of 4 == Date: Fri, Sep 17 2004 10:43 am From: Andrew Thompson <[EMAIL PROTECTED]> On 17 Sep 2004 09:45:07 -0700, Scott Edward Skinner wrote: > Andrew Thompson <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... >>>> On 15 Sep 2004 10:18:32 -0700, Scott Edward Skinner wrote: >>>> >>>>> In general, what is the best way to handle multiple JVMs? >>>> >>>> Java Webstart. >> .. >>> thought JWS was for client-side stuff like Applets. >> >> or applications. .. >>>..--server-side stuff. >> >> So, is this a web-service? Is it >> defined in the web.xml file? Or are >> these simply applications that run >> on the server? > > Servlets. JSPs. That sort of thing. So, you're talking about the JVM used for the Java based server? I'm afraid that's a bit outside my field of expertise, I expect it is more complicated by the fact that these Servlets and JSP's are being called from a JVM that is already loaded and running. >>> Is there a list of undocumented parameters ... >> >> If there was a list, ..they would >> then be documented. > > I'm using undocumented in the sense of something that is not widely > known or distributed. > >>>...beyond what "java -help" provides? >> >> No. > > Are you certain of this? Absolutely certain? I am 99% sure that I am absolutely certain about nothing. I do offer a 'money back quarantee' though. ;-) You are going to need to get one of the server gurus into this conversation, but I am still pretty sure that 'batch' files is not the way to go. -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.lensescapes.com/ Images that escape the mundane ========================================================================== TOPIC: Roadmap for Java 1.5? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1d35053de60e13a0 ========================================================================== == 1 of 2 == Date: Fri, Sep 17 2004 9:30 am From: Dave Stallard <[EMAIL PROTECTED]> I see Java 1.5 is up to Release Candidate status now. Does anybody know when it's going to be an official release? I can't seem to find this info on the javasoft website, or elsewhere... Dave == 2 of 2 == Date: Fri, Sep 17 2004 12:00 pm From: Mark Thornton <[EMAIL PROTECTED]> Dave Stallard wrote: > I see Java 1.5 is up to Release Candidate status now. Does anybody know > when it's going to be an official release? I can't seem to find this > info on the javasoft website, or elsewhere... > > Dave Target date is apparently 30 September 2004. ========================================================================== TOPIC: Java trick http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bfd25be52dc6a3ad ========================================================================== == 1 of 3 == Date: Fri, Sep 17 2004 9:32 am From: "Thomas G. Marshall" <[EMAIL PROTECTED]> andreas coughed up: >> Yes, we're all aware of this. IMHO it's a nasty kludge that only >> serves to confuse people. The people who designed Java and wrote the >> JLS must have been smoking some pretty heavy stuff when they allowed >> this. >> > > IMHO this behaviour is very consistent. > since a object can be null at any time and the method returns > an object of type CDummy the returned value is > > null of type CDummy. *Almost*. > therefore the static variable is accessable. > > andreas I agree in that I think that the static should be honored, and the code should work. But you've got the explanation a little wrong. "null" is /always/ of the /Null Type/. It has its own type, always. I'm not a fan of that particularly, but it's the way it is in the jls. The reason it works is that a variable to a class object of any value can still yield access to a static. It's makes sense to me, since the static variable /belongs/ to the class, regardless of what the object reference is, or isn't. -- Forgetthesong,I'dratherhavethefrontallobotomy... == 2 of 3 == Date: Fri, Sep 17 2004 9:35 am From: "Thomas G. Marshall" <[EMAIL PROTECTED]> Joona I Palaste coughed up: > Brian <[EMAIL PROTECTED]> scribbled the following: >> Chris Smith <[EMAIL PROTECTED]> wrote: >>> The ugliness of this example isn't that the reference is null when >>> the variable is accessed; it's that the static variable can be >>> accessed through a reference in the first place. Since there's no >>> clear meaning to using a static variable through a reference at >>> all, it's pointless to talk about whether or not it's consistent to >>> allow access through a null reference. At that point, you've just >>> gotta abandon "consistent" and read the JLS with a fine-toothed >>> comb. > >> [novice here] > >> So using static members and methods via references /could/ be >> disallowed with no ill effects? > > Yes. It's just syntactic sugar for accessing them via class names, as > only the type of the reference matters, not its value. Given that you can do this, again I have no issue with the result. But if the question ever became "should you be allowed to grab a class static from a reference", then I'd really have to answer "no." AFAIAC, it seems to violate something fundamental in OO land.... -- Forgetthesong,I'dratherhavethefrontallobotomy... == 3 of 3 == Date: Fri, Sep 17 2004 11:43 am From: Michael Borgwardt <[EMAIL PROTECTED]> Thomas G. Marshall wrote: > The reason it works is that a variable to a class object of any value can > still yield access to a static. Actually, there is no object involved at any point. The *compiler* directly inserts a reference to the class for which the variable is declared, so it might work differently than expected if inheritance is involved. ClassA reference = new SubClassOfClassA(); System.out.println(reference.staticVariable); is equivalent to System.out.println(ClassA.staticVariable); NOT to System.out.println(SubClassOfClassA.staticVariable); ========================================================================== TOPIC: suggestion for a java cache for http session http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3eb3d59058a37e4f ========================================================================== == 1 of 1 == Date: Fri, Sep 17 2004 9:33 am From: Shanmuhanathan T <[EMAIL PROTECTED]> Hi, I have a need to store bulky objects on the server side, between requests. I was looking for java object caches and found JSR-107. The open source projects I could find were: 1. jcache http://jcache.sourceforge.net/ 2. jcs http://jakarta.apache.org/turbine/jcs/ 3. ehcache http://ehcache.sourceforge.net/ My main need is a java cache - distributed cache is not a major requirement for me now. Simplicity would be more important. Would like to know which of them is better. The comparisons and the info on their current pages seems to indicate ehcache is better. Would appreciate if people who have used them could share their experiences. Thanks, Shanmu. ========================================================================== TOPIC: J2ME: The Complete Reference http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/29dde018c381d116 ========================================================================== == 1 of 1 == Date: Fri, Sep 17 2004 8:05 am From: "Darryl L. Pierce" <[EMAIL PROTECTED]> Tabrez Iqbal wrote: >>Then I would wager it's a MIDP 1.0 book. I personally don't have that one. > > yes, it covers only the first versions of MIDP and CDLC. > Unfortunately, the other book that I have, J2ME in a Nutshell, also > does not cover new versions of CDLC/MIDP. There are a few MIDP 2.0 books available. Try Jonathan Knudsen's book on MIDP. That's my preferred one. -- /** * @author Darryl L. Pierce <[EMAIL PROTECTED]> * @see The Infobahn Offramp <http://mcpierce.mypage.org> * @quote "Lobby, lobby, lobby, lobby, lobby, lobby..." - Adrian Monk */ ========================================================================== TOPIC: help fix a problem with modal windows http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/871053c08e392c83 ========================================================================== == 1 of 1 == Date: Fri, Sep 17 2004 9:42 am From: [EMAIL PROTECTED] (Jean Lutrin) Hi all, I'm doing some maintenance/refactoring on a "medium sized" Swing applications. This application is deployed on several machines, in an uncontrolled environment. There are quite a lot of annoying problems with modal windows/frames, amongst other: - for whatever reason, a modal window appears under the main frame and the stays blocked until the user someone notice that there's a window "underneath" is current window - on some systems using "desktop pager", the modal window sometimes appears on the wrong "desktop" and the user never gets to see it (this arrives, for example, it the user switches quickly from one desktop to another... so it's not a bug of the Swing app, but a "bug" (call it a feature if you like ;) of the "desktop pager"). The users complaints are, in those two cases, the same : there's a window open, but they don't see it... So they think the app is blocked until they, somehow, find where that modal window is. I don't see it as a bug of the Swing app and it definetely can happen in an uncontrolled environment because of a "feature" of the underlying operating system/windowing environment. So my question is : is it imaginable to conceive a Swing app so that everytime a modal window pops up, all the other windows gives a visual clue, indicating that there's a modal windows opened somewhere ? I was thinking about "greying" automatically all the other windows (I mean, all the other windows of the Swing application of course, not all the windows of the other programs the operating systems may be running). Is it something that can be relatively easy done in Swing ? (If this can be done, the user would instantly notice that the application is not blocked nor "frozen" and would get used to the fact that this means that there's another windows "somewhere" that waits for inputs). How would you go to implement such a feature in a Swing application ? (I am not a Swing guru at all) ? Would it be possible to do something even more descriptive, like both greying the currently unavaible windows and displaying a message in red saying something like "This windows is unavailable until you have given input to the modal windows XXX" ? (say, in an normally invisible JLabel or whatever ?) Have you any ideas about a nice, clean way of doing this ? Thanks in advance, Jean -- "I invented the term Object-Oriented and I can tell you I did not have C++ in mind." Alan Kay ========================================================================== TOPIC: Memory leakage problem with a database application http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cd24fb0a93e5b285 ========================================================================== == 1 of 2 == Date: Fri, Sep 17 2004 9:43 am From: [EMAIL PROTECTED] (Devian) Babu Kalakrishnan <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Devian wrote: > > > > While the opened frame is closing Frames[iFrmIdx] is set to null.And > > all of the components of the frame is set to null.But the memory > > leakage problem goes on.Finally gc() is closed after the frame closed > > but this dos not solve the problem. > > > > Are you sure you're calling dispose() on the frame before setting it to > null ? > > BK I'm calling dispose() in WindowClosing function of the frame then I set Frames[iFrmIdx] to null.Frames[iFrmIdx] is in the main frame and defined static to reach from the opened frame. == 2 of 2 == Date: Fri, Sep 17 2004 10:09 am From: Paul Lutus <[EMAIL PROTECTED]> Devian wrote: / ... > I'm calling dispose() in WindowClosing function of the frame then I > set Frames[iFrmIdx] to null.Frames[iFrmIdx] is in the main frame and > defined static to reach from the opened frame. This is not very clear. You may want to confirm whether the dispose() operation is always executed, in all cases, and before the null setting operation. If necessary, put debugging calls into the code to verify that this sequence is always followed. -- Paul Lutus http://www.arachnoid.com ========================================================================== TOPIC: simpleDateFormat and April month http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/383df9c88dcb10ba ========================================================================== == 1 of 3 == Date: Fri, Sep 17 2004 9:49 am From: [EMAIL PROTECTED] (Nurettin Arslankaya) Hi, I found that, the problem is daylight saving. Now can anyone say how to parse a date as is (without daylight timezone differences etc.) Andrew Thompson <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > On 16 Sep 2004 10:40:21 -0700, Nurettin Arslankaya wrote: > > > Does anyone know why it resulting wrong. > > Daylight saving? If not.. > <http://www.physci.org/codes/sscce.jsp> == 2 of 3 == Date: Fri, Sep 17 2004 10:17 am From: Paul Lutus <[EMAIL PROTECTED]> Nurettin Arslankaya wrote: > Hi, > > I found that, the problem is daylight saving. Explain, in full, how you detected the problem, and how you see the connection between that and the conversion error. > Now can anyone say how to parse a date as is (without daylight > timezone differences etc.) Do it as I did, with your unchanged code, at a time amd place where my computer is honoring daylight time. In other words, I don't think you have adequately researched the problem or its solution. -- Paul Lutus http://www.arachnoid.com == 3 of 3 == Date: Fri, Sep 17 2004 11:04 am From: "P.Hill" <[EMAIL PROTECTED]> Nurettin Arslankaya wrote: > SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); You might learn something by adding zzz to your format and see what if any DLS it is applying. >>>1975-04-12 00:00:00 returns 1975-04-12 01:00:00 -Paul ========================================================================== TOPIC: Developing Web Services in JAVA using Apache Soap on a tomcat server http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/521d4ed2e2814bb0 ========================================================================== == 1 of 1 == Date: Fri, Sep 17 2004 9:45 am From: Asher Blum <[EMAIL PROTECTED]> In article <[EMAIL PROTECTED]>, John Cox wrote: [snip] > Or, in the Unix Bourne shell (/bin/sh): > > CLASSPATH = $CLASSPATH;$SOAP_LIB/soap.jar > CLASSPATH = $CLASSPATH;$SOAP_LIB/mail.jar > CLASSPATH = $CLASSPATH;$SOAP_LIB/activation.jar [snip] I realize this isn't relevant to your question, but these instructions are wrong for four reasons: 1. The Bourne Shell does not allow spaces around an equals sign. 2. The Bourne Shell interprets ';' as a control operator that terminates the command. If you really wanted a ';', you'd need to escape or quote it. 3. The current Linux version of Sun's JVM uses ':' as the CLASSPATH separator. (java.io.File.pathSeparatorChar) 4. Merely setting an environment variable in the shell does not make it part of the environment of any child processes you may launch, such as the JVM. You need to export the variable. So a fixed version of the command, at least for Linux/Bash is: export CLASSPATH=$CLASSPATH:$SOAP_LIB/soap.jar:$SOAP_LIB/mail.jar:$SOAP_LIB/activation.jar ========================================================================== TOPIC: html:img with a dynamic value STRUTS http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8307d0b6770ca5f3 ========================================================================== == 1 of 1 == Date: Fri, Sep 17 2004 9:54 am From: Sudsy <[EMAIL PROTECTED]> Jamie McIlroy wrote: > I have a form bean (searchFormBean) with a String field called 'imageText'. > > That string references an image within my app. > > When I try <html:img name="searchFormBean" property="imageText">, the > jsp fails to render. > > What am I doing wrong? There is no property attribute for that tag. I suggest you review the javadocs here: <http://struts.apache.org/userGuide/struts-html.html#img> ========================================================================== TOPIC: JNI and threads http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3507a5e81272b473 ========================================================================== == 1 of 1 == Date: Fri, Sep 17 2004 10:20 am From: Thomas Fritsch <[EMAIL PROTECTED]> Aaron Fude schrieb: > Hi, > > I will ask a somewhat vague question because I'm working with three > different technologies at once and I first want to get a feel of where the > error is before I give full details. > > I have a native methd myNativeMethod() and the following code: > > myNativeMethod(); > myNativeMethod(); > new Thread() { > public void run() { myNativeMethod();} > }.start(); > > The methods works the first two times (or any N times) but then reliably > fails when called from another thread - an object (global to the native > functions) which used to return non-null now returns null. > > So my vague general question is this: from the JNI perspective, what is > different about a method called from the main thread compared to a method > called from a different thread? (This does not appear to be a > synchronization problem.) Your native method gets called with a different JNI interface pointer (the first argument of your native method: JNIEnv *env), because it is a per-thread structure. Quoted from the JNI spec.: "The JNI interface pointer is only valid in the current thread. A native method, therefore, must not pass the interface pointer from one thread to another." My vague thought: Disregarding this rule might well lead to problems like yours. > > Very many thanks in advance! > > Aaron Fude -- Thomas<dot>Fritsch<squiggle>ops<dot>de ========================================================================== TOPIC: Better looking fonts in Java http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fd4bf36346e298a5 ========================================================================== == 1 of 2 == Date: Fri, Sep 17 2004 11:02 am From: Steve Horsley <[EMAIL PROTECTED]> John wrote: > I am writing a small XHTML printing class, and am testing it against > Firefox. I have noticed that the default font in Firefox shows up quite > fine (1 pixel line on the screen). I want to get Java to do this as well > (the printed output is much fatter). > > Any suggestions? > > John I would like to know that, too. Swing's fonts look bloody awful. I'm told that Sun think "it's OK" and aren't interested in fixing them. I an beginning to wonder if I should look at using SWT or Mono instead for making GUIs. Steve == 2 of 2 == Date: Fri, Sep 17 2004 12:04 pm From: "Mickey Segal" <[EMAIL PROTECTED]> "Steve Horsley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Swing's fonts look bloody awful. I'm told that Sun think "it's OK" and > aren't interested in fixing them. I an beginning to wonder if I should > look at using SWT or Mono instead for making GUIs. Have you turned on anti-aliasing: http://www.smithvalley.com/test/aademo.htm ========================================================================== TOPIC: .NET Programmer Needs To Learn Java http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b99c5dff939a0cea ========================================================================== == 1 of 1 == Date: Fri, Sep 17 2004 10:17 am From: "scorpion53061" <[EMAIL PROTECTED]> Thank you much for a very informative and helpful resposnse. "Christian Hvid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "scorpion53061" <[EMAIL PROTECTED]> wrote in message > news:<[EMAIL PROTECTED]>... >> Hello, >> >> I am a vb.net programmer. That being said I have been forced to conclude >> I >> need to learn java ... >> >> Some questions: >> >> 1. Is there a low cost way to learn, compile and develop for this >> langauge? >> (aka Visual Studio but not costing an arm and a leg like this platform) > > Yes. Besides the latest SDK from Sun - you probably need: > > 1. An IDE: > > http://www.eclipse.org/ or > http://www.jetbrains.com/idea/index.html (recommended) > > 2. A build/make tool: > > http://ant.apache.org/ > > 3. If you are doing web applications - some web application framework > and server. Look at these open source projects: > > http://jakarta.apache.org/velocity/ > http://jakarta.apache.org/tomcat/index.html > http://struts.apache.org/ > > If you are doing GUI, you will do with Swing (contained in the SDK) > but in that case consider the alternative IDEs JBuilder or NetBeans > for their good GUI builders. > >> 2. Can programs written here run on AIX 5.1 (non DB2 environment)? is >> there >> a specific install I need to do to make these programs work on AIX 5.1? > > Built programs (jar files and class file) should run without > modification on IBM AIX. Beware of what Java version is running on the > AIX. > >> 3. I believe they use .idx files for their database structure. Can Java >> be >> of use in reading, modifying and inserting data into these environments? > > Dunno? IDX files sound like DB2, Java can talk to DB2. > >> 4. What is the java equivalent (if there is one) to ADO.NET? > > There is the java.sql package in the standard Java distribution and > some of the EJB stuff may be relevant. But also look at these two open > source projects, which may be very helpful in what you are trying to > do: > > http://www.hibernate.org/ > http://xstream.codehaus.org/ > >> 5. Am I looking at a huge learning curve? > > IBM AIX is not exactly user friendly. You might be learning two new > environments: Unix and Java at the same time. Be patient and persitent > :-D > > regards, > > Christian Hvid > http://vredungmand.dk ========================================================================== TOPIC: java.io.FileReader and java.io.FileWriter encoding http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/48b32bb0299455e8 ========================================================================== == 1 of 1 == Date: Fri, Sep 17 2004 11:36 am From: Michael Borgwardt <[EMAIL PROTECTED]> Mario Maestro wrote: >> As an alternative, you can specify the encoding explicitly in >> InputStreamReader, >> which is the preferred way. > > > I always do it, but the problem is still there with software written by > others. Then your only hope is to get -Dfile.encoding to work, because if the conversion is done wrongly, it's not necessarily reversible. ========================================================================== TOPIC: How to incremet IndetAddress / IP numbers http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/94897e32234ceaaf ========================================================================== == 1 of 1 == Date: Fri, Sep 17 2004 11:49 am From: "Markus Kern" <[EMAIL PROTECTED]> i am sorry, but your answer in java.help didn't help me out really. and no one replyed to further posts. so i thought of posting the question here again, maybe i get some more ideas here. i am sorry that i don't know how to do crosspostings - post one thread into several newsgroups. Markus ======================================================================= You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer". comp.lang.java.programmer [EMAIL PROTECTED] Change your subscription type & other preferences: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe Report abuse: * send email explaining the problem to [EMAIL PROTECTED] Unsubscribe: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe ======================================================================= Google Groups: http://groups-beta.google.com ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/BCfwlB/TM --------------------------------------------------------------------~-> <a href=http://English-12948197573.SpamPoison.com>Fight Spam! Click Here!</a> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/kumpulan/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
