comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * How to deference a String? - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/826d1418a6f42154 * multi-inheritance between EntityBeans - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c56b1038efd7ffbb * Structuring JUnit tests for large package structures? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4a4ee9978ce4598d * Tool for visual develop web forms in Java - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5e4381ceb0623b7d * How to get my IP address - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bd97add828fa8a4a * why this Applet fails - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f1a64e18e89e48c8 * regex replace \\ by \ - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9f662bcf0fda45f7 * No_connection_to_QM with reason code 2103 using WAS 5.0 server - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/323b1768d7b600e8 * Challenge: Triangles puzzle - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5e013ca5d7daa5f0 * Building an Exception Layer - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a8359d1a0e5422fb * Global Servlet Filter - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7d63140db52052d6 * Coverting Ascii Hexidecimal Number - 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6d845951875c2539 * Passing Servlet Context to a non servlet object. - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ea7f86915490db6b * JBOSS and JMS pb - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4ab66499a9607b46 * Filtering files containing keywords - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4c5b8ec2cea85367 * URGENT: InsertBefore - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bd347881151debdd * has someone seen this error before? - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f8e9f76b902386f4 ========================================================================== TOPIC: How to deference a String? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/826d1418a6f42154 ========================================================================== == 1 of 3 == Date: Wed, Nov 3 2004 1:18 am From: Frank <[EMAIL PROTECTED]> Nick Coleman wrote: > I can't use a TreeMap to store the values of the constants as keys along > with their associated values (spec prevents it). Please elaborate? == 2 of 3 == Date: Wed, Nov 3 2004 2:41 am From: "Stefan Schulz" <[EMAIL PROTECTED]> On Wed, 03 Nov 2004 16:20:25 +1100, Nick Coleman <[EMAIL PROTECTED]> wrote: > > I can't use a TreeMap to store the values of the constants as keys along > with their associated values (spec prevents it). Use a HashMap, then ;) If you are gunning at Reflection, see the other answers. If not, i would like to know more why using some Map implementation (which would be the logical thing to do) is not possible. -- Whom the gods wish to destroy they first call promising. == 3 of 3 == Date: Wed, Nov 3 2004 7:00 am From: "xarax" <[EMAIL PROTECTED]> "Nick Coleman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I guess I'm still stuck in C programming mode, despite two semesters of > Java. > > I have a bunch of static finals, one of which is S1 = "Database"; > > I am passed a String containing the value "S1". I want to use the value > of the String to refer to the constants and resolve (in this case) to > "Database". So that: > > String static final S1 = "Database"; > String key = "S1"; > String result = (insert tricky stuff here); // result is "Database" > > I can't use a switch statement as there is no consistency in the format > of the static constants. > > I can't use a TreeMap to store the values of the constants as keys along > with their associated values (spec prevents it). > > Is there a way to resolve "S1" to S1? > > thanks for any help, > Nick HashMap translate = new HashMap(); // Or HashTable if multi-threading String static final S1 = "Database"; String key = "S1"; // all keys must be immutable and naturally ordered translate.add(key,S1); // add all {key,value} pairs String result = (String) translate.get(key); // result is "Database" This is how keys are resolved to values in Java. Throw away the spec. ========================================================================== TOPIC: multi-inheritance between EntityBeans http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c56b1038efd7ffbb ========================================================================== == 1 of 1 == Date: Wed, Nov 3 2004 1:14 am From: "Grzegorz Trafny" <[EMAIL PROTECTED]> "Hal Rosser" wrote: > > Question is lightly theoretical but how to implement project > > (for example: data model ) in which was used multi-inheritance? > > Especially, how to model multi-inheritance in apps which data > > is based on EntityBeans? [cut] > you can try (drum roll) > implementing multiple interfaces Not exactly, I meant situation where project directly show that (for example) 3 entities are dependent like these: "ClassC extends ClassA, ClassB" and everyone class must has instance variables. What Java programmer should do in that situation? Is the only way out from this situation is change of project, how better to do this? Greetings GT ========================================================================== TOPIC: Structuring JUnit tests for large package structures? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4a4ee9978ce4598d ========================================================================== == 1 of 1 == Date: Wed, Nov 3 2004 1:30 am From: [EMAIL PROTECTED] (Oliver Nautsch) Stephen Riehm <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Hi, > > I'm an old-hat perl junkie that has grown very accustomed to setting up > a simple testing structure and then simply adding test cases whenever I > add functionality to my code. (ie: write test for new feature, write > feature, test, go back to step 1,...) > > Now I'm branching into the world of Java and haven't quite 'got-it' when > using JUnit. > > In the FAQ at http://junit.sourceforge.net/doc/faq/faq.htm#organize_2 > Mike Clark presents a way of creating a TestSuite which contains a lot > of tests. So far so good. He does this by using a static method which is > called directly from the main method. Is it possible to wrap up a > TestSuite in a "higher" TestSuite? > > In my case, I've split my application into several packages, just 5 so > far, but they'll be more. ie: myapp.data, myapp.gui, myapp.cli, > myapp.interfaces. I would *like* to group the test cases for each > package into a TestSuite (ie: myapp.data.AllDataTests) and then have > them all run from a central point. (ie: myapp.AllTests). The idea being > that once the structure is in place, all we would need to do is write > tests and classes, and not have to fiddle with the administration of > test cases. > > Is there a neat way of recursively grouping suites of TestSuites (I > tried subclassing TestSuite, but with little success) or is JUnit > limited to a single TestSuite of TestCases? Have I missed something obvious? > > Thanks for your enlightenment! > > Steve Hello Steve yes it is possible. Let's say you have the following suites. AllTests in root is the top-level testsuite which should include suites in the subdirectories. Then: org.huhu.root.AllTests.java org.huhu.root.subdir1.AllTests.java org.huhu.root.subdir2.AllTests.java In org.huhu.root.AllTests.java ... public static Test suite() { TestSuite suite = new TestSuite("Test for org.huhu.root"); suite.addTest(org.huhu.root.subdir1.AllTests.suite()); suite.addTest(org.huhu.root.subdir2.AllTests.suite()); return suite; } ... Regards Oliver Nautsch ========================================================================== TOPIC: Tool for visual develop web forms in Java http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5e4381ceb0623b7d ========================================================================== == 1 of 2 == Date: Wed, Nov 3 2004 1:37 am From: [EMAIL PROTECTED] (Piotr Galuszkiewicz) Hi ! Who could point me a tool/technology for easy way, graphical, events-orietnted development of web UI's which has a following features: graphical/mouse development of web page with possibility of easy setting properties and event handlers like in Delphi (and writting these handlers in Java or scripts) and with generation target HTML/JSP pages from its visual project. By the way, I'm looking for a Java web tool/technology for web pages development which has a possibility to: - develop web form/page in pure Java and some set of classes, - then this class transforms its internal object structure (with nested f.e. html table or html button or other html-oriented objects) to HTML page (which content corresponds to this Java object) and outputs this HTML, for example, durning call from a some servlet. This is similar to XML DOM parser - you can create "document" object, add "attributes" and "sub-items" Java objects to it, then, on finish, transform these objects to output pure-XML file. Knows anybody about that Java technology ? Thanks for help, Regards, Peter == 2 of 2 == Date: Wed, Nov 3 2004 2:29 am From: "KC Wong" <[EMAIL PROTECTED]> > Who could point me a tool/technology for easy way, graphical, > events-orietnted development of web UI's which has a following > features: > graphical/mouse development of web page with possibility of easy > setting properties and event handlers like in Delphi (and writting > these handlers in Java or scripts) and with generation target > HTML/JSP pages from its visual project. I think JSF (Java Server Faces) might be what you're looking for. The IDE is called Java Studio Creator by Sun. ========================================================================== TOPIC: How to get my IP address http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bd97add828fa8a4a ========================================================================== == 1 of 2 == Date: Wed, Nov 3 2004 1:08 am From: Gordon Beaton <[EMAIL PROTECTED]> On Wed, 3 Nov 2004 09:57:16 +0100, Neutrino wrote: > I agree with you, 127.0.01 is correct, but inside my program I have to > connect to a host specifying the local port, so I decided to use the > function : socket (host, remote_port, local, local_port). The easiest and most general solution to your problem is to specify only the local port, not the local address. Here is one way: Socket s = new Socket(); // unconnected socket! s.bind(new InetSocketAddress(localPort)); s.connect(new InetSocketAddress(remoteHost, remotePort)); > If I change the IP address 127.0.0.1 in the local InetAddress with > the IP address of my interface (I have only one net interface), the > connection is ok. I don't understand why ? No, you have at least 2 interfaces. lo (with address 127.0.0.1) and another one, with a different address. You can type "ifconfig -a" to see all of your interfaces and their addresses. The local address you choose must be one from which the remote address is reachable, but 127.0.0.1 isn't such an address (have a look at your routing table: "netstat -r"). /gordon -- [ do not email me copies of your followups ] g o r d o n + n e w s @ b a l d e r 1 3 . s e == 2 of 2 == Date: Wed, Nov 3 2004 3:59 am From: "Tim Ward" <[EMAIL PROTECTED]> "Neutrino" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thank you for your answer, > I agree with you, 127.0.01 is correct, but inside my program I have to > connect to a host specifying the local port, so I decided to use the > function : socket (host, remote_port, local, local_port). In a order to get > the local address, I used local = InetAddress.getLocalHost(); this is > working perfectly with Windows XP (java 1.4.2), but with Linux Red Hat, the > connection fails with a Socket Exception "Invalid argument or Cannot assign > requested address". If I change the IP address 127.0.0.1 in the local > InetAddress with the IP address of my interface (I have only one net > interface), the connection is ok. I don't understand why ? The world is like that, that's why. Typically your machine will have many IP addresses, of which 127.0.0.1 is quite often one. Any API that tries to return "the" IP address of the machine just guesses which one you want, and different APIs (or even the same API on different operating systems) make different guesses. (Even when you managed to work out which is the right one of your IP addresses you're not finished if you also need the subnet mask - last time I tried it there appeared to be no (portable) way to get this in Java.) -- Tim Ward Brett Ward Limited - www.brettward.co.uk ========================================================================== TOPIC: why this Applet fails http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f1a64e18e89e48c8 ========================================================================== == 1 of 2 == Date: Wed, Nov 3 2004 3:02 am From: "Madhur Ahuja" <[EMAIL PROTECTED]> Hello This Applet runs fine as an application but does not displays output in the console window as it does in the application. Any ideas? import java.applet.*; import java.awt.*; public class Applet2 extends Applet { public Applet2() { Thread ff=new Thread( new Runnable() { public void run() { for(int i=0;i<10000;++i) { System.out.println(i); try { Thread.sleep(100); } catch(Exception e) { e.printStackTrace(); } } } }); ff.start(); } public static void main(String args[]) { new Applet2(); } } -- Madhur Ahuja [madhur<underscore>ahuja<at>yahoo<dot>com] Homepage http://madhur.netfirms.com == 2 of 2 == Date: Wed, Nov 3 2004 3:32 am From: Andrew Thompson <[EMAIL PROTECTED]> On Wed, 3 Nov 2004 16:32:16 +0530, Madhur Ahuja wrote: > This Applet runs fine as an application but > does not displays output in the console window .... What browser? What Java? <http://www.physci.org/pc/property.jsp?prop=java.version> > ...as it does in the application. It displays continuous numbers when run from AppletViewer. Ditto for IE 6 running Java 1.5.0. What did I (or you) miss? -- 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: regex replace \\ by \ http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9f662bcf0fda45f7 ========================================================================== == 1 of 2 == Date: Wed, Nov 3 2004 3:10 am From: [EMAIL PROTECTED] (Stephan Ehlert) Hi, I have a problem with java.regex. In a given String \\ has to be replaced by \ My code leads to the following exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.charAt(String.java:444) at java.util.regex.Matcher.appendReplacement(Matcher.java:551) This is my code: ... Pattern p = Pattern.compile("\\\\"); Matcher m = p.matcher(s); StringBuffer sb = new StringBuffer(); boolean result = m.find(); while(result) { m.appendReplacement(sb, "\\"); result = m.find(); } m.appendTail(sb); System.out.println(sb.toString()); ... Any idea? Thanks, Stephan == 2 of 2 == Date: Wed, Nov 3 2004 4:29 am From: "jAnO!" <[EMAIL PROTECTED]> "Stephan Ehlert" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have a problem with java.regex. In a given String \\ has to be replaced by \ > > My code leads to the following exception: > java.lang.StringIndexOutOfBoundsException: String index out of range: 1 > at java.lang.String.charAt(String.java:444) > at java.util.regex.Matcher.appendReplacement(Matcher.java:551) > > > This is my code: > ... > Pattern p = Pattern.compile("\\\\"); > Matcher m = p.matcher(s); > StringBuffer sb = new StringBuffer(); > boolean result = m.find(); > while(result) { > m.appendReplacement(sb, "\\"); > result = m.find(); > } > m.appendTail(sb); > System.out.println(sb.toString()); > ... > > Any idea? Can be done simpler: String bla = Pattern.compile("\\\\").matcher(yourString).replaceAll("\\"); Or String bla = yourString.replaceAll("\\\\", "\\"); should work . ========================================================================== TOPIC: No_connection_to_QM with reason code 2103 using WAS 5.0 server http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/323b1768d7b600e8 ========================================================================== == 1 of 1 == Date: Wed, Nov 3 2004 3:40 am From: "Alexey J.1001958768" <[EMAIL PROTECTED]> Hello! Trying to register a JMS resource in WAS 5 to connect to MQSeries on Linux. When ListenerPort starts an error occur while establishing a connection to the MQSeries with reason code 2103. Does anyone know how to resolve this problem? Thank you. ========================================================================== TOPIC: Challenge: Triangles puzzle http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5e013ca5d7daa5f0 ========================================================================== == 1 of 1 == Date: Tues, Nov 2 2004 11:06 pm From: Dirk Thierbach <[EMAIL PROTECTED]> Gareth McCaughan <[EMAIL PROTECTED]> wrote: >> BTW, one more important difference is that some algorithms just counted, >> while some actually computed all solutions. Some algorithms restricted >> themselves to two "fans" of lines, while some allowed an arbitrary >> geometry. And so on, and so on. > Indeed. The solution that was a 3-character program in J > (or whatever it was) was particularly notable in this respect :-). Yes. J (and APL, and K) can be very terse, but also somewhat hard to read (at least for me). > (I get the impression that you think I think it was cheating > to avoid using a separate file for the data. No. I guess the point was that other differences are much more important. - Dirk ========================================================================== TOPIC: Building an Exception Layer http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a8359d1a0e5422fb ========================================================================== == 1 of 1 == Date: Wed, Nov 3 2004 4:50 am From: [EMAIL PROTECTED] "Rizwan" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > what i can think of is that PermissionException and BusinessRulesException > inherites from Exception while StructureException and DAOException inherites > from RuntimeException. > > "Rizwan" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I am trying to build an Exception Layer for a new system. The exceptions I > > want to catch are : > > * system/configuration failures e.g., Hibernate configuration file missing > > etc. (StructureException) > > * system access voilation e.g. wrong user id etc. (PermissionException) > > * business rules voilation (BusinessRulesException) > > * data access voilation (DAOException) > > > > My question is should these above Exception sub-classes be inherited from > > Exception or RuntimeException? Please explain why? > > > > In this system I am planning to use Hibernate and Struts. > StructureException > > will be used in Hibernate and Struts initialization. I was thinking about > > creating 2 classes HibernateStructureException and > StrutsStructureException > > inherited from StructureException and using them in respective code. What > do > > you guys think? > > > > Thanks > > > > Thanks > > > > Don't inherit from RuntimeException. See http://java.sun.com/docs/books/tutorial/essential/exceptions/runtime.html .ed www.EdmundKirwan.com - Home of The Fractal Class Composition ========================================================================== TOPIC: Global Servlet Filter http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7d63140db52052d6 ========================================================================== == 1 of 1 == Date: Wed, Nov 3 2004 5:09 am From: Mark F <[EMAIL PROTECTED]> I'm writing a servlet filter that will keep track of the number of hits for my site but the site is composed of several web applications. I'd like to write it in such a way as to allow it to work with all of the applications at one time, instead of tallying individual counts by hand. Any pointers or suggestions are appreciated. Thanks, -Makr ========================================================================== TOPIC: Coverting Ascii Hexidecimal Number http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6d845951875c2539 ========================================================================== == 1 of 3 == Date: Wed, Nov 3 2004 5:33 am From: JVSFugitive <[EMAIL PROTECTED]> Interesting problem to solve here: I have an ASCII representation of an integer such as "FF". It is stored in my Java app as array byte[2] = { 70, 70 }; The question is how would I convert that to it's integer equivalent which would be in this case equal to 255. i.e. FF = 1111 1111 binary = 255 decimal "FF" as ascii representation = { 70, 70 }; Thanks == 2 of 3 == Date: Wed, Nov 3 2004 5:37 am From: Michael Borgwardt <[EMAIL PROTECTED]> JVSFugitive wrote: > Interesting problem to solve here: > > I have an ASCII representation of an integer such as "FF". It is stored > in my Java app as array byte[2] = { 70, 70 }; > > The question is how would I convert that to it's integer equivalent > which would be in this case equal to 255. > > i.e. FF = 1111 1111 binary = 255 decimal > "FF" as ascii representation = { 70, 70 }; byte[] bytes = new byte[]{70,70}; int integer = Integer.parseInt(new String(bytes,"US-ASCII"), 16); == 3 of 3 == Date: Wed, Nov 3 2004 5:54 am From: JVSFugitive <[EMAIL PROTECTED]> Michael Borgwardt wrote: > JVSFugitive wrote: > >> Interesting problem to solve here: >> >> I have an ASCII representation of an integer such as "FF". It is >> stored in my Java app as array byte[2] = { 70, 70 }; >> >> The question is how would I convert that to it's integer equivalent >> which would be in this case equal to 255. >> >> i.e. FF = 1111 1111 binary = 255 decimal >> "FF" as ascii representation = { 70, 70 }; > > > byte[] bytes = new byte[]{70,70}; > int integer = Integer.parseInt(new String(bytes,"US-ASCII"), 16); Thank you very much :) ========================================================================== TOPIC: Passing Servlet Context to a non servlet object. http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ea7f86915490db6b ========================================================================== == 1 of 1 == Date: Wed, Nov 3 2004 5:51 am From: Sudsy <[EMAIL PROTECTED]> Andrew Purser wrote: > As you can tell by my subject line I am fairly new to java and > servlets. > > I was hoping I could get some feed back as to the merits / problems / > suggestions of other ways to do it for the code skeleton below. > > Basically I have created a Something java class that I want to call > from a servlet. The catch is I want the Something java class to > include Jsps depending on various things. The only way I can see to do > this if for my servlet to pass the ServletContext, HttpRequest and > HttpResponse to the class. I get the feeling this may be a bad thing > to do. Can someone enlighten me? <snip> If class Something depends on servlet container facilities, why are you trying to break it out into a separate class? Sounds like the function- ality belongs in the servlet. Your architecture is confusing; care to elaborate? -- Java/J2EE/JSP/Struts/Tiles/C/UNIX consulting and remote development. ========================================================================== TOPIC: JBOSS and JMS pb http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4ab66499a9607b46 ========================================================================== == 1 of 1 == Date: Wed, Nov 3 2004 6:03 am From: [EMAIL PROTECTED] (Hugo) Hello, I have try to deploy an ear application on JBOSS 4.0 that were before on JONAS 4.1 (and work perfectly). After lots a work for the migration of certain files when I start JBOSS I have got the following error. I don't know where to find the solution as I didn't use a durableConnectionConsumer in my own code. Any help are wellcom 11:42:29,765 WARN [JMSContainerInvoker] JMS provider failure detected: javax.jms.JMSException: Null or empty subscription at org.jboss.mq.SpyConnection.createDurableConnectionConsumer(SpyConnection.java:151) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:675) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:767) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891) at $Proxy159.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:416) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:170) at org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.java:262) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:416) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy59.start(Unknown Source) at org.jboss.ejb.EjbModule.startService(EjbModule.java:394) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:416) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy20.start(Unknown Source) at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:605) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:927) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709) at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy8.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:416) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy4.start(Unknown Source) at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:693) 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) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy5.deploy(Unknown Source) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:396) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293) at org.jboss.Main.boot(Main.java:151) at org.jboss.Main$1.run(Main.java:405) at java.lang.Thread.run(Thread.java:534) ========================================================================== TOPIC: Filtering files containing keywords http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4c5b8ec2cea85367 ========================================================================== == 1 of 2 == Date: Wed, Nov 3 2004 6:21 am From: [EMAIL PROTECTED] (otimus) I don't know how to filter/search files in java for a particular directory that contain keywords. Any help needed. Thanks for your time. Oguzhan == 2 of 2 == Date: Wed, Nov 3 2004 6:30 am From: Michael Borgwardt <[EMAIL PROTECTED]> otimus wrote: > I don't know how to filter/search files in java for a particular > directory that contain keywords. Please repeat your question in correct English with more details. ========================================================================== TOPIC: URGENT: InsertBefore http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bd347881151debdd ========================================================================== == 1 of 2 == Date: Wed, Nov 3 2004 6:24 am From: [EMAIL PROTECTED] (Achille) Hi to everybody, I want to use the DOMparser to insert a new Node in my DOM tree. Can you furnish me an example? I thought about using the insertBefore but I have not succeeded in understanding whether to use it. You see my code: Node m = null; m = node.cloneNode(false); node.insertBefore(m,node) but don't work. I take this error: org.apache.xerces.dom.DOMExceptionImpl: DOM008 Not found Thanks! == 2 of 2 == Date: Wed, Nov 3 2004 7:05 am From: Martin Honnen <[EMAIL PROTECTED]> Achille wrote: > Node m = null; > m = node.cloneNode(false); > node.insertBefore(m,node) node.getParentNode().insertBefore(m, node); -- Martin Honnen http://JavaScript.FAQTs.com/ ========================================================================== TOPIC: has someone seen this error before? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f8e9f76b902386f4 ========================================================================== == 1 of 2 == Date: Wed, Nov 3 2004 6:33 am From: "VK" <[EMAIL PROTECTED]> Seems more like a queue limitation, rather than buffer. Do you have a setting like "tcp_conn_request_max" and what (if any) does it say? == 2 of 2 == Date: Wed, Nov 3 2004 7:04 am From: Louis <[EMAIL PROTECTED]> [EMAIL PROTECTED] wrote... > Seems more like a queue limitation, rather than buffer. > Do you have a setting like "tcp_conn_request_max" and what (if any) does it > say? I believe the OP stated it was a single connection that was saturated. ======================================================================= 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
