| [Struts] Composite actions using include? |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- Wholesale all NIKE shoes.all models of nokia .Apple Ipods Nano, Xbox 360, Sony PS3, Sony PSP.wii.all laptops http://www.new-nikeshoes.cnhi
We are the biggest wholesale suppliers..........We have a lot of very
nice quality merchandises with the very special price
We are wholesaler of Nike Jordan and Other Shoes in China. We are big
Shoes Manufacturer in China. We supply many kinds of Shoes, such as
Nike Shoes, Jordan 1-22, Air Jordan, AF1, DUNK, Air max series etc.
Most of them are in stock and can be supplied surely on time. All
these shoes are packed with original-boxes and cards. So we can offer
series of brand Nike shoe with the lowest price and high quality, We
are looking forward to doing business with you
Very fast and safety delivery by TNT, UPS, DHL OR EMS, we can delivery
within 24 hours upon receiving your payment. It is very safe door to
door service, never get problems with customs.
There are various and latest styles for your choice in our website.
Our main markets are the USA, the UK, Germany, France, Italy, Greece,
Jordan, Australia, Canada,Sweden, and many other countries in Europe
and the Middle East regions.
our brands , Ipod nano 1G 2G 4G 8G 30G 60G ,Ps3 ,psp ,wii,are also
available for sale at cheaper rate. They are all brand new with full
accessories and 1 year international warranty, unlocked, work
effectively with any network worldwide and come with user manual guide
in various languages.
Ipod nano 1G 45$ ,2G 55$, 4G 65$,8G 70$, 30G 100$ ,60G 120$
ps3 60GB 330$ 20GB 180$ 80GB 450$
psp 150$
wii 200$
We have all models of nokia
NOKIA N95 $250
NOKIA N93 $190
NOKIA N92 $160
NOKIA N91 $170
NOKIA N90 $180
Nokia N70 $165
NOKIA N73 $180
NOKIA 7600 (UNLOCK) $150
Nokia 8800 Sirocco Gold Edtion -$250
Nokia 8800 Sirocco Black$250
We wholesale all laptops
Sony VGN-CR13/B 380$
Sony VGN-CR13/L 350$
Sony VGN-CR15/B 320$
Sony VGN-CR13/P 480$
Sony VGN-C21CH 450$
Sony VGN-SZ44CN 580$
Sony VGN-C22CH/W 620$
Sony VGN-N17C 480$
Sony VGN-CR13/W 580$
Sony VGN-FZ15 560$
Apple MacBook 580$
Apple MacBook Pro(MA896CH/A)680$
Apple MacBook Pro(MA896CH/A) 630$
Apple MacBook (MB063CH/A) 580$
Apple MacBook Pro(MA895CH/A) 580$
Apple MacBook(MB062CH/A) 590$
Apple MacBook(MA700CH/A) 580$
Apple MacBook(MA701CH/A) 550$
Apple MacBook Pro (MA610CH/A) 650$
Apple MacBook Pro (MA611CH/A) 680$
Apple MacBook (MA699CH/A) 580$
(1).all products are all original and new
(2).they have 1year international warranty.
(3).free shipping include ems, tnt, dhl, ups. you may choose one kind
(4).deliver time is in 7 days to get your door
We insist the principia: Prestige first,high-quality,competitive
price,
best services,and timely delivery.
Website: http://www.new-nikeshoes.cn
msn: email***@***.com
Hong-da Co., Ltd.
- 1
- java x509 certificate issuer hashIs there any all-java equivalent to the following openssl x509 hash of
the certificate issuer name?
$ openssl x509 -hash -noout < somecert.1
I'm trying to compute the 8-digit xxxxxxxx to name the file as
xxxxxxxx.0 in a certificates directory. Thanks,
--
Benjamin Rutt
- 1
- Date and Time conversionI have an Integer variable which contains date in YYYYMMDD format. I want to
convert it first to a Date variable and then to a String variable with
format MM/DD/YYYY. How can I do that?
I also have an Integer which contain time in HHMMSS format. I want to
convert it to a String variable with format HH:MM:SS. How can I do that?
TIA
- 3
- Java performanceLasse Reichstein Nielsen <email***@***.com> writes:
> Roedy Green <email***@***.com> writes:
>
>> On Sun, 04 Nov 2007 09:21:55 -0800, Knute Johnson
>> <email***@***.com> wrote, quoted or indirectly quoted
>> someone who said :
>>
>>>The coming JRE is going to have greatly improved startup performance.
>>>
>>>https://jdk6.dev.java.net/6uNea.html
>>
>> "The Quick Starter feature will prefetch portions of the JRE into
>> memory, substantially decreasing the average JRE cold start-up time
>> (the time that it takes to launch a Java application for the first
>> time after a fresh reboot of a PC)."
>>
>> Sounds like they are loading a pre-loaded RAM image to get the basic
>> classes going. Yea! I have been asking for this since day 1.
>
> That, or they are making yet another "QuickStart" that loads and takes
> up memory at boot time, whether you use it or not.
> It can sit next to Office QuickStart, Firefox Quickstart and
> a gazillion other programs that think they are so important that
> you have to start everything but the GUI every time you start
> your machine.
Ack, I was hoping I was wrong. And I was, although only slightly so:
"The fix, then, is for us to take advantage of the disk cache to make
sure that the memory pages on disk that we must read at startup have
already been loaded before we need them. How do we do this? We cannot
magically pre-load the pages just prioir to launching; unfortunately,
the VM currently lacks the ability to see into the future to detect
when the user will be launching Java (we would love to have this
feature in the future, but it is not yet present). But we can
pre-load at some earlier time, such as Windows boot or login
time. And we can keep the pages warm in the disk cache as machine and
memory conditions allow."
From <URL:http://weblogs.java.net/blog/chet/archive/2007/05/consumer_jre_le.html#Quickstarter>
They do load everything into memory, only cache memory instead of
program memory. And they then keep hitting the pages to ensure that
no cache algorithm gets to do its job.
That's just being egoistical. I bet every application wants to be
loaded from RAM. Well, at least I get to turn it off.
/L
--
Lasse Reichstein Nielsen - email***@***.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
- 7
- 9
- RTF in JEditorPane - failure with simple document?Can anybody get a stacktrace for the document 'help.rtf'
mentioned here?
<http://www.physci.org/test/doc/rtf.html>
The page links to launch files for 1.4, 1.5 & 1.6, as
well as the code used and the problem document.
(Note: X-posted to c.l.j.programmer/gui, with follow-ups
set to c.l.j.programmer only.)
Andrew T.
- 10
- How do I get the paint Rectangle in paintComponent()Help! I have been stuck on this problem for hours.
How do I get the Rectangle of the original repaint() call
in a components paintComponent(Graphics graphics) method?
For example. Say a repaint(0, 0, 10, 10) is called somewhere
in the code.
Say my JComponent has a bounds of Rectangle(9, 9, 5, 5)
In the components paintComponent(Graphics graphics) method
I can call:
graphics.getClipBounds() and that will return (0, 0, 1, 1)
Basically it returns the intersection of the original repaint rectangle (0,
0, 10, 10)
and my bounds (9, 9, 5, 5) relative to my components coordinates, which
gives 0, 0, 1 1.
But I want a way to get the 0,0,10,10 rectangle from the paintComponent
method. Is there a way to do this?
Thanks,
Bill
- 11
- log4j JDBC loggingI have a various different packages within this web application that I
am writing and I am attempting to set up log4j to log directly to a
database. So each class is calling just a generic logger:
Logger.getLogger("generic");
and I have the PropertyConfigurator read in some properties from a log
file that define the database connection, the user, pass, ...
The logging to the database works, but it does not log every statement
it comes across. I have defined numerous logger.debug() statements
throughout the code and the first 6 statements throughout various
classes will be logged, but other logging statements will not.
So I set up just a stupid Logger that logs to a file on the system and
placed log statements after each log4j statement that I have in each
class. The stupid logger will successfully log all of the statements,
but the log4j statements stop logging after a bit.
Why would this be? Are statements getting lost because I am
connecting to the database? The database is on the local machine so I
couldn't imagine that being the case...does anyone have any ideas?
Thanks for your thoughts...
- 11
- GUI testing - open source toolsHi,
sorry if this has already been discussed.
I've been attempting to automatize a test sequence using the
following tools: Abbot and Marathon. However, Abbot happens to crash the
VM up to JDK 1.5.0_09 and Marathon runs unbelievably slowly (to the
extent that it's useless).
I wonder if there are any other GUI open source (!) tools, not listed
at http://en.wikipedia.org/wiki/GUI_Testing#Java_Test_Tools, allowing
record and replay.
What tools do you use?
AS
- 11
- API Design QuestionHi,
I'm designing an API of container objects such that:
there is an abstract ContainerObject,
ContainerObjectA extends ContainerObject, and stores:
ContainerObjectB, which extends ContainerObject, and stores:
ContainerObjectC, which extends ContainerObject, and stores:
ContainerObjectD, which also extends ContainerObject.
However, I wish to make ContainerObjectD an abstract class that must be
extended by the API user to allow for customization of the final level of
containment. This may seem a little odd, but the data is organized in
such a way that the upper levels of containment objects will be identical,
but the lower objects will differ (i.e. ContainerObjectD will contain
one or more customizable objects). So, my question is, how do I handle
ContainerObjectC? - it will only ever access the interfaces in
ContainerObjectD defined by the abstract ContainerObject, not any of the
extended elements. But, I won't know what the name or location of the
extended object of ContainerObjectD will be. Do I just leave it to the
API user to edit ContainerObjectC and insert the name of the new extended
class, or is there a way to approach this is a more structured manner?
Also, can an abstract class be extended by an abstract class? Should I
use an interface instead? That will still leave the problem of how I
should refer to the abstract class within a non-abstract one. I hope this
makes sense, and thanks for any advice!
Best Regards,
Scott
- 12
- Serial Port AppletHi everyone,
I need to develop an applet that access the serial port on the host
computer. This features is not projected for an Internet site, but for a
local web-based softwere. I would like to know if it's possible to
bypass restriction with a certificate to use the comm. api of java.sun.com.
Thanks,
Giovanni
- 14
- Swing Alignment ProblemsI have had this problem a number of times, and I've always had to hack
around to fix it, and I'm not sure what is actually going on. Due to work
agreements, I don't have code I can show at the moment, but I've seen this
so often I'm hoping it's not unique to me.
I have a JPanel, and within that, a JLabel, and within that, of course,
text.
I've set the layout for the panel like this:
JPanel myPanel = new JPanel();
myLayout = new BoxLayout(myPanel, BoxLayout.Y_AXIS);
myPanel.setLayout(myLayout);
Then I have 3 or 4 or more JLabels, each set up like this:
JLabel myLabel = new JLabel("Here is my text.");
myLabel.setAlignmentX(JLabel.LEADING); //Sometimes try LEFT instead
myLabel.setHorizontalAlignment(JLabel.LEADING); //Sometimes LEFT
And I still end up with all my labels aligned to the RIGHT. (Remember, I've
tried LEFT instead of LEADING in all cases!)
I've had this happen many times. I even set the alignment on myPanel to
LEFT. I simply cannot figure it. I've set the alignment on the panel, and
on every element in the panel and on the text in every element (using both
setHorizongalAlignment and setHorizontalTextPosition(JLabel.LEADING)) and
it STILL aligns things to the right.
I've had this happen on a number of Swing panels and windows. I've heard
people comment, at times, that Swing can do screwy things like that, but
I'm not sure if they were serious or just frustrated at the time.
So does this happen for a reason? Is there something else I should align
that I haven't mentioned?
Thanks!
Hal
- 14
- Validating XML using the Xerces DOM parserI have a web app that reads an XML file uploaded by a user, parses it
and adds the information inside it to a database.
To make sure that the users aren't putting invalid data into the
database, I thought the easiest way to do this would be to write an
XML schema to validate it.
I want all documents uploaded to be validated by this particular
schema. I'm only interested in processing documents that conform to
this schema. I want the parsing to fail for any other file.
I've checked my XML file and my schema by validating them using XML
Spy. XML Spy has no problems applying the schema to the xml file and
picking up any deliberate errors that I put into the file.
I'm using the Xerces DOM parser (version 2.6.2) to read the XML. When
I run the code with valid XML, it works fine, but if I include errors
in the XML file it doesn't pick them up.
DOMParser parser = new DOMParser();
parser.setFeature("http://xml.org/sax/features/namespaces", false);
parser.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",
"http://localhost:8080/assetDB/schema/assetList.xsd");
Parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking",
true);
parser.parse(xmlSource);
parser.setErrorHandler(this);
Document assetDoc = parser.getDocument();
What I really want to do is this:
get XML file
Validate xml file
If valid
process file
else
give helpful error messages
end if
Am I even going about this the right way?
I appreciate any help (or even pointers to good java/xml resources)
Helen
- 16
- How to get file name from URL objectHi,
I am trying to save web pages to file but sometimes the URL doesn't
have the file name with it as www.google.com doesn't for example. In
this case I don't know how to get the file name of the web page since
it is not specified. If there is way to use the URL class or other
classes to get the URL to look like so http://www.google.com/index.html
then my problem would be solved.
Is there anyone here who can help me,
Thanks,
Carl
- 16
- restrict file access to only one particular user who enters correct password in webHi all,
I want to restrict tomcatserver files to particularly one client that
who enters username and password correctly anywhere in web(specifically
in another system).But nobody without username and password cannot
access the those files.
For example,
I have avi files in tomcatserver.If any client enters username and
password correctly only can access those avi files and others cannot
able to access those files even by using
the(http://xxx.xxx.x.x/dir/filename.avi ).
|
| Author |
Message |
Sebastian Millies

|
Posted: 2004-6-29 22:57:00 |
Top |
java-programmer, [Struts] Composite actions using include?
Hi,
I have a Struts 1.1 based webapp. A new requirement has come
up, which I can satisfy by executing the existing actions A, B, C
and forwarding to a new page xyz.jsp. The idea would be to
write an action X and from there include (not forward) the
existing actions, do some additional magic, and finally return
an ActionForward poiting to xyz.jsp.
How can I define an ActionMapping that allows me to do that?
Or must I hardcode includes to A, B, C in X using
RequestDispatcher.include()?
Is this even feasible?
What are the alternatives? Perhaps I could define A', B', C' in my
struts-config, such that A' forwards to B' forwards to C' forwards to xyz.
(But this would require changing existing code, too, because there would
be no place for X's extra magic).
Any thoughts?
-- Sebastian
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- HP/UX Java 1.3.1.02 date/time differencesHi!
We seem to have differences between the unix system time (coming from
an NTP server) and the time our java application has (as it produces
timestamps).
At the start of the app the time is synchro and after about 2 weeks
the time is 20secs ahead of the system time...
Does the Java VM calculates the current time by its own (i.e. counting
secs from start)? Or should it better get the time (if
System.currentTimeMillis() is called) from the host system?
Regards,
Steffen
- 2
- Daylight Savings Time in CalendarPhilipp wrote:
> Philipp wrote:
>> John B. Matthews wrote:
>> So I really want to take any locale and remove the DST (only if there
>> is one).
>>
>> I know of a workaround which is to write:
>>
>> cal.setTimeInMillis(now.getTime() - cal.get(Calendar.DST_OFFSET));
>>
>> but this is ugly as I am actually changing the timestamp and not the
>> representation of the timestamp.
>
> Update: this workaround is actually wrong during one hour at the time
> change period. So it's not a good solution. If anybody knows of a better
> one, I'd be happy to use it.
DateFormat df = new SimpleDateFormat("HH");
TimeZone tz = TimeZone.getTimeZone("GMT");
tz.setRawOffset(cal.getTimeZone().getRawOffset());
df.setTimeZone(tz);
System.out.println(df.format(cal.getTime()));
Arne
- 3
- GWT: Deploying the server code in TomcatCan anybody point me to some simple instructions for deploying the server
code in Google Web Toolkit to a Tomcat server?
--
Paul Tomblin <email***@***.com> http://blog.xcski.com/
---------------- hit any user to continue ----------------
- 4
- Relationships using BMP Entity BeansHi,
Is there anyway to create a relationship between two BMP Entity Beans?
I know that CMP Entity Beans 2.0 supports relationships throgh CMR
fields, but I didn't find a way to do the same with BMP.
Anybody knows?
Thanks,
Joan
- 5
- Force Reload on JSP Pages?I've noticed this odd behavior when working on my Web application, where if
a JSP page was cache-able then the servlet would never run. I guess this is
normal since the browser assumes the page doesn't change, so it doesn't put
a request in to the server.
But I'm curious. Is there some command or perhaps a server config that would
allow all JSP pages, whether cached or not, to always reload? I hope this
makes sense, if more is required, I'd be glad to explain more. Thanks for
any assistance in advance!
Emery.
/\^/\^/\
Sun Certified Java Programmer
www.websamba.com/javarobotics/
E-stronomy - Astronomical Resources
www.websamba.com/e-stronomy/
- 6
- float to int conversionSystem.out.println(new Float(21082007.0).intValue()); // -> 21082008
System.out.println(new Double(21082007.0).intValue()); // -> 21082007
Why?
System.out.println(new BigDecimal(21082007.0F).intValue()); // ->
21082008
System.out.println(new BigDecimal(21082007.0D).intValue()); // ->
21082007
Again, why?
And what's the proper way of doing it, using always a double?
Thanks in advance
- 7
- Why jsp can't get the Vector fill with user-defined class by the Remote interface?Because It is a big project so i provide a model to express my
question,
Qestion is:I want get the Vector full fill with the a Object in Jsp.
but I can't get it,There will problem will return test return,but we I
Choose String but no class a 's object ,It can be return successful.It
seems that jsp Can't recognize the class a,,but I really include the
Ejb module in jsp's lib.and editor alse prompt a's information.
I alse test it in JBoss server It alse occur Exception!
I cant understand why,
so come to here ask why?Please help me,3ks very much!!!
----------------------------------------------------------------------------------------------------
I use Netbean 6.1,Glassfish.Ejb3
import javax.ejb.Stateless;
1.
@Stateless(mappedName="T")
public class vectorBean implements vectorRemote {
//Vector v;
//@PostConstruct
//public void Init(){v=new Vector}
public Vector test(){
Vector v=new Vector();
v.add(new a("alex",14));
return v; }
}
2. a is a simple class
public class a {
public String m;
public int n;
public a(String m, int n) {
this.m = m;
this.n = n;
}
getter,and setters!
}
3.Jsp
InitialContext ctx=new InitialContext();
//ShoppingCartRemote
s=(ShoppingCartRemote)ctx.lookup("shopcart");
vectorRemote s=(vectorRemote)ctx.lookup("T");
Vector v=s.test();
Enumeration e=v.elements();
while(e.hasMoreElements()){
a p=(a)e.nextElement();
out.println(p.m);
}
- 8
- Passing by reference, more confusion...I have an object that's passed in to a function as a parameter i.e public
boolean getProjectTitle(ProjectHeader_DTO obj) {...}
If I then call a method on this object inside the function i.e
obj.setTitle("test") then using obj.getTitle() from outside the function it
displays the property set correctly!
But doing something like this inside the function doesn't -
ProjectHeader_DTO x = new ProjectHeader_DTO();
x.setProjectTitle("test");
obj=x;
As long as I explictly set the properties it works but why not when
assigning another object?
Tried using the clone() method aswell & inside the function its works fine
until after the return!
I do not want the object to be return'ed from the function!
Any ideas?
thanks
harry
- 9
- MessageBoxHi,
Call me stupid but where can I find the messagebox in Java?? Or do I have to
create one myself? What I need is a simple function just like Alert( "I'm
annoying!" ); in JavaScript.
Greetings,
Rick
- 10
- Slashdot says Nyet to MonoNot that I particularly care anymore, especially given the very strong
push by Java in open source circles (e.g. Apache's planned J2EE
Geronimo app server and Red Hat's plan to create an open source Java),
but it seems a lot of open source advocates in slashdot seem to feel
the same way I do - Mono is a useless and doomed project that is also
rendered dangerous for Linux by the Microsoft patents hanging over it.
http://www.freeroller.net/page/kalimantan/20030914#slashdot_says_nyet_to_mono
- 11
- Ant complaintHaving spent the past several hours trying to solve what ought to have
not even been a problem to begin with, I've noticed something about
Ant.
It appears that Ant as it is delivered comes with a bunch of optional
tasks that it knows about inherently, such as the Scp task.
It also appears that while Ant ships knowing what these tasks are, it
does not ship with jars they depend upon, such as jsch. The
documentation tells you to go out and get these jars on your own, and
put them in your Ant lib folder.
Here's the part I don't like. When Ant starts, it appears to try to
load optional tasks like Scp. When such tasks fail to load the first
time, due to the dependencies not being there, it is then impossible
to recreate a task with the same classname later using a taskdef
element, even if you include your own path containing all the jars it
needs.
Let me explain why this is a big issue. I work in a team. X number of
developers on my team share the same build script, on far-flung
machines.
I want to add Scp to the build script. I cannot simply manually put
the jsch jar in my own Ant lib folder. It won't work when anyone else
on my team tries it.
Instead, I need to check the jsch jar into my project along with the
ant script. Then, every developer on my team who gets the new script
will also get the jar to go with it. So far this seems fine.
The problem is that when the developer runs Ant, I still cannot
instantiate the Scp task because the jsch jar is not in the classpath
when ant starts. And, for some bizzare reason, I cannot even define a
new scp taks using a taskdef element with a classpath (the way you'd
do it if you were deploying your own task). Why this fails I don't
know. My guess is that Ant somehow keeps track by class name that the
task failed to load when Ant started, and refuses to try to load it
again.
I tried many ways to solve this problem, including copying the jsch
jar into Ant's lib folder. Nothing works because before I can do
anything Ant has already decided that Scp is an unloadable task.
This is terrible behavior. Ant should either not come with "optional"
tasks predefined that won't load, or it should at least offer the
chance to reload them with a specific classpath later.
Can anyone think of any way around this problem?
- 12
- Class.forname() vs clone()email***@***.com (Mitch Ratisher) wrote in message news:<email***@***.com>...
> email***@***.com (iksrazal) wrote in message news:<email***@***.com>...
> > email***@***.com (Mitch Ratisher) wrote in message news:<email***@***.com>...
> > > I'm not quite sure what you are trying to do, but the way I've done
> > > factories is to load a Map with Class objects when the factory is
> > > created. Then all you have to do is pass the Map whatever you mapped
> > > the class to, and call newInstance() on the Class object.
> > >
> >
> > Could you post some code? I've seen maps of objects using clone, and
> > passing a class name string to forname/newInstance, but never maps
> > directly with newInstance.
> >
> > I have a Abstract class, and I want to use a static method to retrieve
> > the requested factory. The class is not a singleton, although I
> > suppose it could be.
> >
> > Thanks for the reply,
> > iksrazal
>
>
>
> private static Map map = new HashMap();
>
> // static initializer
> static {
> map.put("class1" MyClass1.class);
> map.put("class2" MyClass2.class);
> }
>
> public static Object newObject(String type)
> {
> Class clazz = (Class)map.get(type);
> return clazz.newInstance();
> }
>
>
> You'll still have to catch a bunch of exceptions that can be thrown by
> newInstance(), but that's all there is to it. If you can't hardcode
> the class names, use Class.forName(name) as the 2nd argument in the
> put() calls, where name is a String that was read from a properties
> file.
Thanks a lot Mitch!
iksrazal
- 13
- SIGSEGV in java 1.4.2-p6
--Boundary-00=_CsGdAwPnbap1q+D
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello,
Running a freenet node I manage to get a segfault from javavm. It appears
to happen at random intervals. Attached is the java error log and system CV.
Please let me know if I can provide more information.
--
Wade Klaver
Wavefire Technologies Corporation
GPG Public Key at http://archeron.wavefire.com
/"\ ASCII Ribbon Campaign .
\ / - NO HTML/RTF in e-mail .
X - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
--Boundary-00=_CsGdAwPnbap1q+D
Content-Type: text/plain;
charset="us-ascii";
name="typescript"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="typescript"
Script started on Wed Apr 7 13:41:44 2004
bash-2.05b$ uname -a
FreeBSD ***.***.com 5.2-CURRENT FreeBSD 5.2-CURRENT #26: Thu Mar 11 08:25:16 PST 2004 root@***.***.com:/usr/obj/usr/src/sys/WORKSTATION-5.0-SMP i386
bash-2.05b$ javavm -version
java version "1.4.2-p6"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p6-root_12_mar_2004_07_21)
Java HotSpot(TM) Client VM (build 1.4.2-p6-root_12_mar_2004_07_21, mixed mode)
bash-2.05b$ cat hs_err_pid50222.log
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x2814A927
Function=flockfile+0x1F
Library=/lib/libc.so.5
Current Java thread:
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:770)
at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1059)
at java.net.InetAddress.getAllByName0(InetAddress.java:1009)
at java.net.InetAddress.getAllByName0(InetAddress.java:981)
at java.net.InetAddress.getAllByName(InetAddress.java:975)
at java.net.InetAddress.getByName(InetAddress.java:889)
at freenet.transport.tcpAddress.doDeferredLookup(tcpAddress.java:119)
at freenet.transport.tcpAddress.connect(tcpAddress.java:130)
at freenet.OpenConnectionManager$ConnectionJob.run(OpenConnectionManager.java:969)
at freenet.OpenConnectionManager.createConnection(OpenConnectionManager.java:451)
- locked <0x2c5eb158> (a freenet.OpenConnectionManager$ConnectionJob)
at freenet.node.ConnectionOpener.checkpoint(ConnectionOpener.java:95)
at freenet.node.states.maintenance.Checkpoint.checkpoint(Checkpoint.java:54)
at freenet.node.states.maintenance.Checkpoint.received(Checkpoint.java:47)
at freenet.node.StateChain.received(StateChain.java:177)
at freenet.node.StateChain.received(StateChain.java:61)
- locked <0x2c5eafc0> (a freenet.node.StateChain)
at freenet.node.StateChainManagingMessageHandler$ChainContainer.run(StateChainManagingMessageHandler.java:332)
- locked <0x2c5eafc0> (a freenet.node.StateChain)
at freenet.node.StateChainManagingMessageHandler$ChainContainer.received(StateChainManagingMessageHandler.java:285)
at freenet.node.StateChainManagingMessageHandler$ChainContainer.access$100(StateChainManagingMessageHandler.java:204)
at freenet.node.StateChainManagingMessageHandler.handle(StateChainManagingMessageHandler.java:96)
at freenet.Ticker$Event.run(Ticker.java:323)
at freenet.thread.YThreadFactory$YThread.run(YThreadFactory.java:250)
Dynamic libraries:
0x8048000 /usr/local/jdk1.4.2/bin/java
0x28080000 /usr/lib/libpthread.so.1
0x280a3000 /lib/libc.so.5
0x2816f000 /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
0x28589000 /usr/lib/libstdc++.so.4
0x2863b000 /lib/libm.so.2
0x28653000 /usr/local/jdk1.4.2/jre/lib/i386/native_threads/libhpi.so
0x28661000 /usr/local/jdk1.4.2/jre/lib/i386/libverify.so
0x28676000 /usr/local/jdk1.4.2/jre/lib/i386/libjava.so
0x28695000 /usr/local/jdk1.4.2/jre/lib/i386/libzip.so
0x40a66000 /usr/local/jdk1.4.2/jre/lib/i386/libnet.so
0x40a99000 /usr/local/jdk1.4.2/jre/lib/i386/libnio.so
0x2804e000 /libexec/ld-elf.so.1
Heap at VM Abort:
Heap
def new generation total 4288K, used 1920K [0x2c430000, 0x2c8d0000, 0x2d7e0000)
eden space 3840K, 48% used [0x2c430000, 0x2c5fd4b8, 0x2c7f0000)
from space 448K, 16% used [0x2c860000, 0x2c872e60, 0x2c8d0000)
to space 448K, 0% used [0x2c7f0000, 0x2c7f0000, 0x2c860000)
tenured generation total 54720K, used 34048K [0x2d7e0000, 0x30d50000, 0x3c430000)
the space 54720K, 62% used [0x2d7e0000, 0x2f9202d0, 0x2f920400, 0x30d50000)
compacting perm gen total 6400K, used 6241K [0x3c430000, 0x3ca70000, 0x40430000)
the space 6400K, 97% used [0x3c430000, 0x3ca48568, 0x3ca48600, 0x3ca70000)
Local Time = Wed Apr 7 13:18:48 2004
Elapsed Time = 2786
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-p6-root_12_mar_2004_07_21 mixed mode)
#
bash-2.05b$ exit
Script done on Wed Apr 7 13:42:24 2004
Loaded symbols for /libexec/ld-elf.so.1
#0 0x2809a42f in pthread_testcancel () from /usr/lib/libpthread.so.1
(gdb) bt
#0 0x2809a42f in pthread_testcancel () from /usr/lib/libpthread.so.1
#1 0x2808c8c1 in sigaction () from /usr/lib/libpthread.so.1
#2 0x28086cf5 in pthread_kill () from /usr/lib/libpthread.so.1
#3 0x280866e0 in raise () from /usr/lib/libpthread.so.1
#4 0x28148b07 in abort () from /lib/libc.so.5
#5 0x2845eae2 in os::abort(int) ()
from /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
#6 0x2845c9e4 in os::handle_unexpected_exception(Thread*, int, unsigned char*, void*) () from /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
#7 0x28460ff5 in JVM_handle_bsd_signal ()
from /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
#8 0x2845fa7d in signalHandler ()
from /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
#9 0x2808b513 in sigaction () from /usr/lib/libpthread.so.1
#10 0x2808b3ba in sigaction () from /usr/lib/libpthread.so.1
#11 0x2808be89 in sigaction () from /usr/lib/libpthread.so.1
#12 0x28093767 in pthread_mutexattr_init () from /usr/lib/libpthread.so.1
#13 0x280936b2 in pthread_mutexattr_init () from /usr/lib/libpthread.so.1
#14 0x28135363 in _ctx_start () from /lib/libc.so.5
#15 0x2816cd84 in __isthreaded () from /lib/libc.so.5
--Boundary-00=_CsGdAwPnbap1q+D
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
--Boundary-00=_CsGdAwPnbap1q+D--
- 14
- Why Linux + Javaasj wrote:
> Yes, a smartcard runs a 30 MB JVM....get a clue and read about it
> before you post.
> I suppose these Java SPOT (smart programmable objects) have a 30 MB JVM
> too?
forgot the link:
http://sunspotworld.com/
> I suppose a lower end mobile phone runs a 30 MB JVM?
- 15
- selling EJBHi,
Where can be EJB components sold on the internet. We are a software company:
ZetaFoxeDesign Software Developement and we are thinking about starting new
activity. We just don't konw if it's a good idea to off the shelf EJB
component vendor.
Sebastian
|
|
|