Hello, I'm running Java Facets on a IBM WebSphere 6.1. I'm getting
this strange error message when I start the server:
[2009-07-21 15:49:35:784 CEST] 00000015 ServletWrappe E SRVE0100E: Did not realize init() exception thrown by servlet Faces Servlet: java.lang.IllegalStateException: ApplicationAssociate ctor not called in same callstack as FacesConfigParser.contextInitialized().
Does anyone have an idea what's wrong?
I am developing a web application. I am using Eclipse as IDE. I was using generic and for each loop, both being feature of java 1.5, and it compiled quite fine when used in backend means in simple java classes. But when I'm using these on jsp, jsp is failing to compile with error showing generic and for each as culprit. Can you shed some light on this? Maybe I am at fault with Eclipse settings?
I need to build a Java app with considerable IO requirements, supporting tens of thousands of concurrent TCP connections.
I found a library called Raining Sockets which seems intended to make it easier to use Java's asynchronous NIO package, but the last update was 6 years ago.
Are there other libraries, that are preferably still under active development, and with a public maven repository, that I should look at?
Hi all. I need to add events to google calendar form java with out using IDE. What are the requirements are needed to develop my application. Any api is needed to do that? Is it needed how to use that api in java. Now I have jdk1.6 only. Can anyone help me to do this?
I'm trying to sort a Vector in java but my Vector is not a vector of int, it is a vector of objects
the object is :
public MyObject()
{
numObj = 0;
price = new Price();
pax = new Pax();
}
so I have a Vector of MyObject and I want to order it by numObject, how do i do it, i'm new in java?
thank you so much for all your help
<javancss srcdir="C:\Projekti\KIS\Model\src"
generateReport="true"
includes="**/*.java"
outputfile="docs/javancss_metrics.xml"
format="xml" />
if i use includes="*/.java" then no metrics are calculated. If i delete includes then works. Any idea why?
I asked a question earlier about ESBs written in Erlang or Java, and there didn't seem to be anything in Erlang, and only products in Java.
http://stackoverflow.com/questions/2453641/what-would-be-the-best-language-in-which-to-write-an-esb/2453683#2453683
I guess I find it difficult to understand why a language like Erlang has no such middleware products, especially seeing as it should be ideally suited to the job.
Hi,
I have read about Java Reflections but till date it has been a vague concept to me. Can someone give a brief details with short example on how to use reflections in Java ?
Thanks.
Hello I have a problem while trying to run a makefile.
I change the path where my java install folder is(C:\Program Files\Java\jdk1.6.0_18\bin), but when I try to run 'make' from my command line I receive : 'make' is not recognized as an internal or external command, operable program or batch file.
I need to use makefiles for my current application.
In java, Does the following line has a possiblity (even 0.01%) to throw a NullPointerException??
if (str1 == null)
Actually I am falling some bug in the code and It says that similar line throws a java.lang.NullPointerException ?!
I created an application ( Creating up to 1,00,000 files in a folder ) with 2 different languages ( C#.Net & JAva ) with file concepts and its best methods.
The Application that I created with .NET takes just 3 seconds to create all the files. At the same time, with Java, it takes 15 seconds.
Why is it so ?
If I open two Java projects in Eclipse which depend on each other, I have to add dependencies between these two projects in the Build Path (Properties - Java build path). This works fine for one way, but why doesn't allow Eclipse to set the dependencies vice versa? The following error message occurs:
A cycle was detected in the build path
of project 'A'
and
A cycle was detected in the build path
of project 'B'
I know what's causing this error but i wonder why exactly this isn't allowed. Thanks.
I found the following code example for Java on RosettaCode:
public static boolean prime(int n) {
return !new String(new char[n]).matches(".?|(..+?)\\1+");
}
I don't know Java in particular but understand all aspects of this snippet except for the regex itself
I have basic to basic-advanced knowledge of Regex as you find it in the built-in PHP functions
How does .?|(..+?)\\1+ match prime numbers?
in java, you can use File.listRoots() to get all drives in the system. I'm looking to get only the external drives, i.e. USB drives, external hard disks, optical drives, floppy etc'.
is there any way to do it in java? if not, native c++ code would be good as well. in that case, i need both windows and linux code
thanks
Hi,
I would like to multi-thread an application, however one library i'm using is not multi-thread capable (i don't know what's the right word ? synchronized ?).
What are my options ?
As far as i know there's nothing in between threads and processes (Runtime.exec) in java (no abstraction in the jvm to have something like an isolated "java process").
How would you deal with that ?
hello
I am working on writing an web application which will be monitoring an java process which moves files from one location to another. The monitoring application needs to do following things
Monitor log files
View the content of moved files
Is there any opensource framework which provides monitoring capabilities over logging.
I am building this application in java.
Thanks
Suppose i have one webiste with simple pages in php like
page1.php
page2.php
Now there is one page where i want some detailed functioning and i want to use python for that and it will look like
page3.py
and in other page i want to use java like
page4.jsp
Provided i have installed python , java on webserver.
Is it possible
I used SystemEnvironment class in java for getting system information.
In that i can get only RAM size, i can't get the specific disk space like c: and D:
code is,
com.sun.management.OperatingSystemMXBean mxbean = (com.sun.management.OperatingSystemMXBean)ManagementFactory.getOperatingSystemMXBean();
System.out.println("Total RAM:"+mxbean.getTotalSwapSpaceSize()/(1024*1024*1024)+""+"GB");
Can i get this using in java program?
Hi to all! I can't choise between Microsoft stack and Java stack.
I'm start to develop highload system. Over 500 000 transactions per day.
Best choice is Java stack or Microsoft ?
I use Solr in my website, and now I am about to configure my VPS account.
I am at the stage where I need to install java in order to make Solr work.
Now, I only plan on running solr, and using it as it is (I have no java programming skills at all), so my Q is, do I need the entire JDK which includes JRE, or is JRE enough?
Thanks
BTW: My server OS is Linux (ubuntu 9.10).
Thanks
Hi,
Please understand firstly that I fully understand that Java will return a String when I use ""+int.
What I'm really not sure about is what exactly is happening down at the memory aspect. How exactly is java performing this conversion. I mean this in a very indepth way, not 'auto boxing' or anything like that :)
I'm hoping someone with a deeper understanding can explain what exactly is done.