 |
 |
Index ‹ java-programmer
|
- Previous
- 2
- 2
- Tomcat app re-deploying is removing symbolic linksHi there,
Is there any way tomcat can be told what folders to remove when
redeploying an application.
I set up symbolic links from directories containing critical files
outside of tomcat into a tomcat web application.
My problem is, when I redeploy the tomcat web application, the data
contained in the symbolic link folders also gets removed.
Any ways around this?
Regards,
Brian.
- 2
- Java IDEsI am new to Java, and am going to start learning it. What are my choices as
far as IDEs are concerned? Can someone list the major ones (free and not
free)? You don't need to say much about them, once I know the names I can
find info about them.
Thanks
Zach
- 6
- Window resizing eventHow can I listen for a JFrame resize event? I need to reset my frame
widht and height variables in a program to reflect the new size of the
frame if the user resizes the window. Any help is appreciated. Thanks
-Rick
- 7
- JAVA Regular ExpressionHi can anyone help me understand the following
I have a regular expression that has to match for example:
<format zipped="false" encrypted="false" />
My expression:
Pattern singleTag = Pattern.compile("< *(\\w+) *(\\w+\\=\"\\w+\" *)*/>");
matches only 3 Groups
group(0) = <format zipped="false" encrypted="false" />
group(1) = format
group(2) = encrypted="false"
it skippes the 'zipped="false"' argument.
When i change the regexp to fit this string exactly,
like this:
Pattern singleTag = Pattern.compile("< *(\\w+) *(\\w+\\=\"\\w+\"
*)(\\w+\\=\"\\w+\" *)/>");
i get the four groups i expect:
group(0) = <format zipped="false" encrypted="false" />
group(1) = format
group(2) = zipped="false"
group(4) = encrypted="false"
it seams that repeating a group '()*' does not create a new group, but
overwrites the previous one.
Can anyone confirm this?
Thanx,
Remko
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
- 8
- Open a file - MacIn article <42bb6902$0$24874$email***@***.com>,
JScoobyCed <email***@***.com> wrote:
[...]
> I would like to (for example) open a PDF file in the PDF Viewer (or
> any program registered to open PDF file). I have tried:
> Runtime.getRuntime().exec("open \"/Volumes/Tiger/user1/Doc1.pdf\"");
[...]
> JSC
Works OK for me. You might examine the error stream to see where it's
getting lost. Also, you may need to use -a in your command line to
specify the application.
import java.io.*;
class ExecTest {
public static void main (String[] args) {
String s;
try {
Process p = Runtime.getRuntime().exec(
"open /Documents/StudioDisplay.pdf");
BufferedReader err = new BufferedReader (
new InputStreamReader (p.getErrorStream()));
while ((s = err.readLine()) != null) {
System.out.println(s);
}
}
catch (Exception e) {
e.printStackTrace();
}
}
}
--
John
jmatthews at wright dot edu
www dot wright dot edu/~john.matthews/
- 9
- javac vs Makefile problem ...Hi everybody,
I actually have the following problem :
I have a Java/JNI application which mixes ".h", ".cpp", ".java" (native
and regular files)
In order to compile everything easily, I did a Makefile.
I know that "javac" resolves the dependencies but because I have to
generate ".h" files from ".class", I had to include the Java
compilation in my Makefile.
To be clearer, here is my compilation chain :
javac javah CC
X.java => X.class => X.h => X.o
X.cpp
All this chain is achieved thanks to my Makefile.
It works but not as well as I expect it to.
My problem is :
1/ Consider that "Y.java" depends on "X.java"
2/ If "Y.java" is compiled later, it involves "X.java" to be compiled
again.
3/ Consequently, the modify time of "X.java" is changed so all the long
job starting from "X.class" is done again and my Makefile takes a while
...
Is there a way to disable the "javac" automatic dependency resolution
in order to completely manage it in a Makefile ?
Do you have another issue which could help me ?
Thanks in advance.
- 16
- JDBC - multiple databaseHi
If i invoke a select statement through JDBC, can JDBC send that to
two different databases and combine the results for me?
thanks
from Peter (email***@***.com)
- 16
- Package level interfacesI posted this previously:
*****
Could someone explain this:
interface myInterface{
void foo();
}
then...
class myClass implements myInterface{
void foo(){
'do this
}
}
I want the Interface, its methods, and the implementing class and its
methods to have "package" level permissions. But I get the complier error:
attempting to assign weaker access privileges; was public
Could someone explain this (or provide a link that does) ?
Thanks
****
I got a one answer that mentioned that when it comes to interfaces they are
automatically public and abstract. The abstract aspect I accept.
But isn't there a way to create an interface that can only be implemented by
classes in the same package? Or more genereally a way to restrict who can
implement my interfaces? Separately, could an abstract base class be
declared with "package" level permissions to achieve the same goal (though I
don't care for that, I's do it if I hafta)
Thanks,
PS: Apologies for reposting. I use Outlook Express and it "lost" the
reponses to my original post.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.714 / Virus Database: 470 - Release Date: 7/2/2004
- 16
- extends multiple classes?Hi,
Appology if silly question but can you have a class which extends more than
one other class?
If so what is the correct syntax?
eg class1 needs to extend class2 & class3
thanks
Ian.
- 16
- Jar file dependency in a JSP pageI have written a java class (let's just call it foo) that can
successfully be accessed from my jsp page by jsp:useBean. Then I
imported some methods from a jar that are now being used in foo, and
this compiles successfully.
The problem is that now my jsp page won't compile anymore (after
importing the methods from the jar). I get a Jasper exception on the
line where I make a call to the method imported from the jar. Do I
have to import the jar on the jsp page as well?
Let me know if I need to clarify my question
Thanks,
Sarah
- 16
- Reporting in GUI formathi
is there any tool that could be integrated in JFC. in visual basic
there are amny tools, Crystal Report is one of them.
i got one Jasper Report. but is difficult to integrate into JFC frame.
if you have any idea then plz reply with possible
solutions/links/libraries
- 16
- Expression Language Not Being Evaluated - NSM Exception with isELIgnored falseI recently downloaded JBoss with Tomcat 5.0.26 and created a jsp with
something like "<font color="red">Message:${param.msg}</font>" and it
was rendered in the browser as "Message:${param.msg}". So I figured
I'd just turn on EL... I put
<%@ page isELIgnored="false" %> in my jsp, but then I get this:
java.lang.NoSuchMethodError:
javax.servlet.jsp.PageContext.getVariableResolver(), which I googled
and got no hits. It doesn't surprise me that it got a no such method,
since in the 1.4 API, I don't see a getVariableResolver method. It's
almost like it should be using some other PageContect implementation.
Ideas?
Does this work for anyone else?
--Dale--
- 16
- 16
- Binary-Coded Decimal conversionWhat is the best way to create a function that converts a BCD number
(stored in an int to make things simple) into a normal integer (ie.
int) value (or throw an exception if it cannot be done)?
--
I am only a mirage.
|
| Author |
Message |
frog_toe

|
Posted: 2003-7-25 16:04:00 |
Top |
java-programmer, zlib in Java
Anybody know what version of Zlib is used in JDK 1.4?
(in java.util.zip)
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- clueless student trying to parse XML
I need pointing in the right direction regards writing a parser to parse
HTML/XML in order to extract the data from it.
Im writing a prototype for the final application but bieng fairly new to
java I'm totally at a loss where to start.
I'm getting quite frustrated as i havent got a clue where to start (ive read
some of the javadoc & have a pile of java reference books)
Ive read up on the DOM/SAX standards and java's support for XML parsing but
still no idea how to actually get coding.
The final application is aimed at extracting data which meets user critera
from a given website.
thanks
sal
ps this is a final year University Computer Science Project
more deails at http://www.mellowmoose.org/project.html
- 2
- more than one EJB container on one serverIf you want to set up an environment that has EJBs that must run in
separate EJB containers (remote EJBs) on a single machine, how do you
do this? Can you set up multiple EJB containers under one Weblogic
server instance?
- 3
- Strange results from hprofHi everyone,
I have a stand-alone application that spends (or should spend)
most of its time waiting for network packets. However, it
consistently uses upwards of 20% of the CPU time on a
1.8GHz Pentium M/2GB RAM/WinXP laptop.
I have run it for 24 hours with hprof sampling enabled:
java -agentlib:hprof=cpu=samples my.MainClass
(If I run it with "cpu=times" it runs far too slowly to
react promptly to the network events of interest, so profiling
actual CPU time usage is not feasible.)
The resulting profile data shows that the top CPU users are:
1 37.44% 37.44% 142475377 300285
sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0
2 12.48% 49.91% 47492232 300210
java.net.PlainDatagramSocketImpl.receive0
3 12.48% 62.39% 47492137 300348
java.net.PlainSocketImpl.socketAccept
4 12.48% 74.87% 47492136 300347
java.net.PlainDatagramSocketImpl.receive0
5 12.48% 87.35% 47492125 300342
sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0
6 12.48% 99.83% 47490216 300355
sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0
7 0.17% 100.00% 650911 300344
java.net.NetworkInterface.isUp0
And even after a 24-hour run, using 20% of the CPU the whole
time, these are the *only* stack traces that show up in the
profile data. Since my selects are called with 1000ms
timeouts, and datagrams arrive at the socket only perhaps
a couple of times per second at most (verified via Ethereal),
I would expect most of the time in all of these methods to be
spent sleeping. I cannot see any reason why socketAccept(),
for example, would be using anything close to even 1% of the
CPU; I would expect that call to spend most of its time blocked
in the Windows kernel. And NetworkInterface.isUp() is called
only every ten seconds, and returns almost instantaneously;
its presence in the profiling data baffles me. I see nothing
here that could account for 20% CPU utilization.
So, questions:
(0) Am I completely misinterpreting this data?
(1) I would expect hprof to ignore samples taken from
blocked and/or sleeping threads. Is that the case?
(2) Is there a profiler other than hprof that I would be
better-advised to use? I need one that will not have too
serious an impact on performance, since when a packet
arrives my software must react to it and send a response
within approximately 100 ms. Also, open-source is vastly
preferable, since if I have to buy a commercial profiler,
it is going to take me weeks to get that approved :-P
Any input would be appreciated.
Many thanks,
-- JK
--
(declare (antichrist i) (anarchist i)) ; -- the sexp-pistols
- 4
- Jar as serviceGot a demo software called FQuiz which opens up the Browser to run the
QUiz. I would like to automatically start the FQUiz software for which
i have to do a File Open Jar file. when the jar file is run thru the
FQuiz software it opens up the browser.
My Question is : How do i keep this software running all the time. so
that people can access the Quiz software via the browser.
The machine has to be logged off everyday
- 5
- Wrenching TorqueWe are implenting a J2EE project where WebSphere is handling
connection pooling for the application calls to a database. We have a
JDBC Resource configured which tested successfully. We also have the
application successfully connecting to the database which is confirmed
by the following error message.
rethrown as org.apache.torque.TorqueException: [IBM][CLI Driver][DB2]
SQL0204N "TSTUSER.PERMISSION" is an undefined name.
The problem is apparent, TSTUSER does not own a table called
PERMISSION and in fact this table is owned by the user TELUSER and our
intention is for TSTUSER to execute DML against it. We have not been
able to configure the schema.xml file nor the build.properties to
instruct Torque to produce SQL that fully qualifies the object name
with the appropriate schema owner. Any advice you might offer will be
appreciated.
Best regards
- 6
- New Feature to try by GoogleCraig Oral Somerford has invited you to open a Google mail account
Try using Gmail with this new feature try it out it at the bottom of
this message.
Here's
an invitation to create an account.Also to NBC you Had allot to say
about AL GORE Inbox
Reply
Reply to all
Forward
Print
Add 2Barter.net to Contacts list
Delete this message
Show original
Message text garbled?
"2Barter.net" to NightlyViewerM.
show details 12:17 pm (5 hours ago)
Were if it is not good news then it is not NEWS to US, Him Her Them &
You Inbox
"2Barter.net"
to Mr, 20/20
More options 12:13 pm (0 minutes ago)
" Skit Kittie Cat skit "<email***@***.com>
Were if it is not good news then it is not NEWS to US, Him Her Them &
You
From: Craig Oral Somerford <email***@***.com>
Date: Feb 27, 2007 12:03 PM
Subject: Fwd: Lets swim to Colorado to see some Sharks teeth
http://mail.google.com/mail/?disp=imgs&view=att&th=1110428682617085
To: Mr Brain Williams <email***@***.com>, 20/20 Hind Sight
<email***@***.com>
- Hide quoted text -
Cc: YouTube Service <email***@***.com>
" 20/20 Hind Sight"<email***@***.com>,
Who said that Jesus was in a crave to stay in forever anyway for i am
sure it was not Mel Gibson; but people all ways pick on the Famous at
heart.
So he drank; so what the only question i have is who made the drink
for him to drink.
Was it a profit company or did he make it him self.
15 " Woe to him who gives drink to his neighbor,
Pressing[e]him to your bottle,
Even to make him drunk,
Those with out sin cast the first stone Right for we all no that one
day we will meet our maker three score and ten is thirty years then
100 years
http://www.youtube.com/watch?v=BpuYpqRfyuU
From: Craig Oral Somerford <email***@***.com>
Date: Feb 27, 2007 10:55 AM
Subject: Lets swim to Colorado to see some Sharks teeth
To: skit kittie cat skit <email***@***.com>
Cc: "YouTube Service" <email***@***.com>,
Bcc: http://www.youtube.com/watch?v=7IIqkPMrZl4
Lets swim to Colorado to see some Sharks teeth
On "CLICK" to see
http://www.youtube.com/watch?v=eoOfGDFfyKU
http://video.google.com/videoplay?docid=4733140070111400926&q=Shark+%26+seal&hl=en
From: "Craig Oral Somerford" <email***@***.com>
Date: Feb 25, 2:27 pm
Subject: Fwd: [#117337934] GOD how assume are thy works Craig Oral
Somerford has invited you to open a Google mail account
To: skit kittie cat skit http://www.youtube.com/watch?v=zYk3dqduQfY
Cc:
Your first Net Casting Company with Vision.
yeP yeP
http://video.google.com/videoplay?docid=400820385277927310&q=fossilized+top+hat&hl=en
" Welcome then to "
2Barter,Google & YouTube
Were if it is not good news then it is not NEWS to US,Him,Her,Them &
You
So PLEASE? ?-IN-DEED-DO-FORWARD
From: email***@***.com <email***@***.com>
Date: Feb 25, 2007 12:59 PM
Subject: Re: [#117337934] GOD how assume are thy works Craig Oral
Somerford has invited you to open a Google mail account
To: email***@***.com
Cc: New York Cityhttp://maps.google.com/maps?ie=UTF-8&oe=UTF-8&hl=en&tab=wl&q=
On "CLICK" to laughhttp://www.youtube.com/watch?v=osnUB9bUm-E
Thanks for your message Craig look forward to seeing you in new york
Cityhttp://mail.google.com/mail/help/open.html
Please note that Google Answers is no longer accepting new questions
or
comments. Please see the following Google Blog entry for the official
announcement:
http://googleblog.blogspot.com/2006/11/adieu-to-google-answers.html
For the latest information about Google Answers, please see the
following
FAQ:
http://www.google.com/answers/faq.html
If you feel that you have found inappropriate content posted to Google
Answers, please reply to this message with the numerical question ID
of
the content. The question ID is listed on the right side of each
question
header.
Sincerely,
The Google Team
Original Message Follows:
------------------------
From: "Craig Oral Somerford" <email***@***.com>
Subject: GOD how assume are thy works Craig Oral Somerford has invited
you
to open a Google mail account
Date: Sun, 25 Feb 2007 12:58:17 -0500
GOD how assume are thy works
On "CLICK"
http://www.youtube.com/watch?v=ENgxLWcm7L8
From: Craig Oral Somerford <email***@***.com>
Date: Feb 25, 2007 12:41 PM
Subject: Craig Oral Somerford has invited you to open a Google mail
account
To: email***@***.com ?-IN-DEED-DOFORWARD On "CLICK"
Cc: http://www.giorgioarmani.com/index.jsp?language=en&site=GPV&movieSess...www.2Barter.netwww,google.comwww.youtube.com
I've been using Gmail and thought you might like to try it out. Here's
an invitation to create an account." Skit Kittie Cats informal
hysterics. Inbox
"2Barter.net"
to Google, Community, YouTube
More options Feb 24 (23 hours ago)
Date: Feb 24, 2007 12:12 PM
Subject: Re: " Skit Kittie Cat Skit " On "CLICK" to see laughing,
chuckling, chortling, guffawing, giggling, tittering, twittering,
cackling, sniggering; informal hysterics.
To: "SonyaFitzpatrick"<email***@***.com
Cc:http://www.youtube.com/watch?v=pIqhUCZgwXQ
Bcc:http://video.google.com/videoplay?
docid=-3308763471699273011&q=sining. ..
- Hide quoted text -
On 2/24/07, Craig Oral Somerford <email***@***.com> wrote:
> From: Craig Oral Somerford < email***@***.com>
Date: Feb 24, 2007 12:08 PM
Subject: Re: " Skit Kittie Cat Skit " On "CLICK" to see laughing,
chuckling, chortling, guffawing, giggling, tittering, twittering,
cackling, sniggering; informal hysterics.
To: YouTube Service <email***@***.com>
Cc: Community Mailer <email***@***.com >
On 2/24/07, Craig Oral Somerford <email***@***.com> wrote:
From: Craig Oral Somerford < email***@***.com>
Date: Feb 24, 2007 11:10 AM
Subject: Mother Natures wrath looks like Ozsaferooms Needed now for
Florida an Mississippi
To: http://blog.namics.com/2006/youtube.JPG
Cc:http://www.purina.com/
Bcc:www.cingular.com
Mother Natures wrath Ozsaferooms Needed for Florida
Hi Googlies how were your alas for night last night?
I hope great as was mine was, for i had some real good dreams last
night.
Tell me guys did you read in the paper today about the Mississippian
problem.
The New York Times reported today about a high profiled attorney
coming to the rescue saying he had some good news about there intent
for the rebuilding effort is seeming to have come to a head.
On "CLICK" to see good times ahead
#1
http://www.youtube.com/watch?v=osnUB9bUm-E
#2
http://select.nytimes.com/gst/tsc.html?URI=http://select.nytimes.com/.
..
24 feb 2007
" Bartering for the betterment of are world we all live in "
24 oct 2006
Thank you
Sincerely:
Mr Google Bot On "CLICK"
http://www.google.com/support/webmasters/bin/topic.py?topic=8843
From: Craig Oral Somerford <email***@***.com>
Date: Feb 24, 2007 10:40 AM
Subject: Ozsaferooms Needed for Florida
To:http://www.nashvillescene.com/blog/nashvillecream/archives/
youtube.gif
Cc: http://www.justilien.com/images/google-networks.jpg
Bcc:http://www.youtube.com/watch?v=13uWfr_EY1o
" 2Barter, Google & YouTube "
Were if it is not good news then it is not NEWS to US.
Him,Her,Them & You
From: Your Host
Craig Oral Somerford <email***@***.com>
Date: Feb 24, 2007 10:35 AM
Subject: Paperlink Work 24 feb 2007
To: Sundays Den Den with Dolly Saturday part one
<email***@***.com>
Cc: Andrew <email***@***.com >
" Sundays Den Den with Dolly Saturday "<email***@***.com>
A New Day for?
Hi:
- Hide quoted text -
http://mail.google.com/mail/?disp=imgs&view=att&th=110f4649f6930339
24 feb 2007
http://www.ozsaferooms.com/
24 oct 2006
Thank you
Sincerely:
Andrew
To:http://www.ozsaferooms.com/Ch8%20News%20Edit.mpeg
Cc: http://www.mesoscale.ws/pictures/tornadic/
Welcome Back
" Skit Kittie Cat Rules Paperlink work two
" Skit Kittie Cat Skit "<email***@***.com>
Were if it is not good news, then give me?
" Some Cat Chow "
24 feb 2007
On "CLICK" to see remote control needed Part One > >
To: http://www.dogbreedinfo.com/images4/ComCatTV.jpg< < of Part Two
Cc:http://video.google.com/videoplay?docid=7476247739863018999&q=Cat
+Cho. ..
Bcc:http://www.catchow.com/
24 oct 2006
Thank you
Sincerely:
Mr Google for your good report
http://www.kbcafe.com/google/?guid=20070214123238
" Working in Faith "
How far can one see,while Surrounded by Only GOD'S
perfect creation.
Being driven by Faith and guided there In,while
working through the Power of candle light.
Seeing It give-way while watching the last Star fade Introducing the
Sun
to this dark Mountain.
Far enough it seems to move this Mountain;
to youhttp://2barter.net/treasurehunt.html
Thank you:
" GOD "
In
" Jesus the Christ "
Name
Sincerely:
iPray
Craig Oral Somerford
Founder of Your Non-profit
See Ya Tomorrow Mr Google &
YouTube.http://www.youtube.com/watch?
v=IraMJEXRWfw&mode=related&search=
And think you Mr Dan Granger.For your barter for 2Barter
On "CLICK" to see more about
barteringhttp://www.google.com/search?hl=en&q=craig+oral+somerford&btnG=Google...
-----------------------------------------------------------------------
Craig Oral Somerford has invited you to open a free Gmail account.
To accept this invitation and register for your account,
visithttp://mail.google.com/mail/a-71bc94316e-dca3ab47e2-cbdc592f3f
Once you create your account, Craig Oral Somerford will be notified
with
your new email address so you can stay in touch with Gmail!
If you haven't already heard about Gmail, it's a new search-based
webmail
service that offers:
- Over 2,700 megabytes (two gigabytes) of free storage
- Built-in Google search that instantly finds any message you want
- Automatic arrangement of messages and related replies into
"conversations"
- Powerful spam protection using innovative Google technology
- No large, annoying ads--just small text ads and related pages that
are
relevant to the content of your messages
To learn more about Gmail before registering, visit:
http://mail.google.com/mail/help/benefits.html
And, to see how easy it can be to switch to a new email service, check
out our new switch guide:http://mail.google.com/mail/help/switch/
We're still working every day to improve Gmail, so we might ask for
your
comments and suggestions periodically. We hope you'll like Gmail. We
do. And, it's only going to get better.
Thanks,
The Gmail Team here is a little tast of New york City Blues
On "CLICK"http://www.youtube.com/watch?v=FObfyqaZsQs
(If clicking the URLs in this message does not work, copy and paste
them
into the address bar of your browser).
U S Contractors Offering Service A Non-profit
Operating a service business is not easy, but building an effective
web site can make a huge difference in increasing responsiveness and
customer satisfaction.I hope that you find this Construction Portal
use-full in helping you find things like, Contractors' Tools ,Heavy
Equipment Operators,Disaster Assistance ,Questions, Debates,
Information BLOG,Apprenticeship Program,World of Concrete and there
tools needed for that job and Government Incetives for Bulidings.Plus
Finding an Inspectors for jobs that are in need of starting or being
Finished... " Working In Faith " How far can one see,while Surrounded
by Only GOD'S perfect creation. Being driven by Faith and guided there
In,while working through the Power of candle lite. Seeing It give-way
while watching the last Star fade Introducing the Sun to this dark
Mountain. Far enough it seems to move this Mountain to you Thank you
GOD In Jesus Name Sincerely Craig Oral Somerford Founder of Your
Non-profit 2Barter.net To view me telling you about what you are
seeing in your minds eye. As you are reading about moving Mountain's ,
this letter was written as i was seeing it happen.So please after
reading view the Mountain and see were it was Written from if you
will.
On "CLICK" Too Seehttp://2barter.net/treasurehunt.html
#1http://www.google.com/search?hl=en&q= 2Barter.net&btnG=Search
#2http://www.google.com/search?sourceid=gmail&q=Craig%20Oral
%20Somerford
Paperlink Work 27feb 2007 Google Groups
1 message
Craig Oral Somerford < email***@***.com> Tue, Feb 27,
2007 at 10:42 AM
To: "2Barter. net" <email***@***.com>
Why are there Sharks teeth in Colorado?
Did they swim there.
And why do we not tell about the HAT we found.
The HAT that was Fossilized in the 20th Century.
They say they found " Jesus and his Family " Does this make you happy
if so why then did you not take some Photo of the bones of Jesus>
For it is say in the Bible that there was not one Bone broken on his
Body.
Those Photos if you had taking them they would say more just like the
photo of A Fossilized HAT says more about time.
That HAT was made in the last 100 years, so why then you did not take
a photo of the bones to see if they were any broken OR not.
Try again too denounce the Bible.
" B-ing I-nstruction B-efore L-eaving E-arth "
Also thank you
Sincerely for your Barter for 2Barter NBC.
i sure did like the Cat Comedy right after your Commercial you
Played:
Cat Chow & the Commercial parent Company of yours
On "CLICK" to see Dad were is the Cat. You keep transcripts right?:
I would like one for our records-Please if you will email 2Barter
please @ " Craig Oral Somerford"< email***@***.com>
http://www.ge.com/rss/innovation.xml
Also to NBC you Had allot to say about AL GORE as well. we can look it
up to see AL GORE
Do you thank he will lose a-little weight like the Clinton Camp thinks
www.clintoncamp.com
And the Support AL GORE has with? " www.google.com & www.apple.com "
http://www.registeredon.com/new/com_061213_0193.html
but yet no mention of U S Contractors Offering Sarvice A Non-profit
that was give to GOD through faith.
On "CLICK" To see water & Faith as well
--~~~~~-----~~~~~-----~~~~~--!!! On "CLICK" to see www.2barter.net
That's OK by me really www.NBC.com , for at least now i know you got
the email sent to you thanks again.
NBC NEWS for your Barter for 2Barter for we all do no one thing Hind
sight is more then just that of 20/20.
So how about some Sharks Teeth next time you take on the
BIBLE.
Reply Reply to all Forward
Reply
Reply to all
Forward
Print
Add Craig to Contacts list
Delete this message
Show original
Message text garbled?
Craig Oral Somerford to skit, YouTube, Harrah's, Apollo, Beijing,
AdWords, Google, (bcc:answers-editors), (bcc:Thank)
show details 5:45 pm (13 minutes ago)
- Show quoted text -
---------- Forwarded message ----------
From: 2Barter.net <email***@***.com>
Date: Feb 27, 2007 12:17 PM
Subject: Also to NBC you Had allot to say about AL GORE
To:http://www.google.com/toolbar/ie7/
Cc: email***@***.com
Bcc
Were if it is not good news then it is not NEWS to US, Him Her Them &
You Inbox
"2Barter.net"
to Mr, 20/20
More options 12:13 pm (0 minutes ago)
" Skit Kittie Cat skit "< email***@***.com>
Were if it is not good news then it is not NEWS to US, Him Her Them &
You
From: Craig Oral Somerford < email***@***.com>
Date: Feb 27, 2007 12:03 PM
Subject: Fwd: Lets swim to Colorado to see some Sharks teeth
http://mail.google.com/mail/?disp=imgs&view=att&th=1110428682617085
To: Mr Brain Williams <email***@***.com>, 20/20 Hind Sight
< email***@***.com>
- Hide quoted text -
Cc: YouTube Service <email***@***.com>
" 20/20 Hind Sight"< email***@***.com>,
Who said that Jesus was in a crave to stay in forever anyway for i am
sure it was not Mel Gibson; but people all ways pick on the Famous at
heart.
So he drank; so what the only question i have is who made the drink
for him to drink.
Was it a profit company or did he make it him self.
15 " Woe to him who gives drink to his neighbor,
Pressing[e]him to your bottle,
Even to make him drunk,
Those with out sin cast the first stone Right for we all no that one
day we will meet our maker three score and ten is thirty years then
100 years
http://www.youtube.com/watch?v=BpuYpqRfyuU
From: Craig Oral Somerford < email***@***.com>
Date: Feb 27, 2007 10:55 AM
Subject: Lets swim to Colorado to see some Sharks teeth
To: skit kittie cat skit < email***@***.com>
Cc: "YouTube Service" <email***@***.com>,
Bcc: http://www.youtube.com/watch?v=7IIqkPMrZl4
Lets swim to Colorado to see some Sharks teeth
On "CLICK" to see
http://www.youtube.com/watch?v=eoOfGDFfyKU
http://video.google.com/videoplay?docid=4733140070111400926&q=Shark+%26+seal&hl=en
From: "Craig Oral Somerford" <email***@***.com>
Date: Feb 25, 2:27 pm
Subject: Fwd: [#117337934] GOD how assume are thy works Craig Oral
Somerford has invited you to open a Google mail account
To: skit kittie cat skit http://www.youtube.com/watch?v=zYk3dqduQfY
Cc:
Your first Net Casting Company with Vision.
yeP yeP
http://video.google.com/videoplay?docid=400820385277927310&q=fossilized+top+hat&hl=en
" Welcome then to "
2Barter,Google & YouTube
Were if it is not good news then it is not NEWS to US,Him,Her,Them &
You
So PLEASE? ?-IN-DEED-DO-FORWARD
From: email***@***.com <email***@***.com>
Date: Feb 25, 2007 12:59 PM
Subject: Re: [#117337934] GOD how assume are thy works Craig Oral
Somerford has invited you to open a Google mail account
To: email***@***.com
Cc: New York Cityhttp://maps.google.com/maps?ie=UTF-8&oe=UTF-8&hl=en&tab=wl&q=
On "CLICK" to laughhttp://www.youtube.com/watch?v=osnUB9bUm-E
Thanks for your message Craig look forward to seeing you in new york
Cityhttp://mail.google.com/mail/help/open.html
Please note that Google Answers is no longer accepting new questions
or
comments. Please see the following Google Blog entry for the official
announcement:
http://googleblog.blogspot.com/2006/11/adieu-to-google-answers.html
For the latest information about Google Answers, please see the
following
FAQ:
http://www.google.com/answers/faq.html
If you feel that you have found inappropriate content posted to Google
Answers, please reply to this message with the numerical question ID
of
the content. The question ID is listed on the right side of each
question
header.
Sincerely,
The Google Team
Original Message Follows:
------------------------
From: "Craig Oral Somerford" < email***@***.com>
Subject: GOD how assume are thy works Craig Oral Somerford has invited
you
to open a Google mail account
Date: Sun, 25 Feb 2007 12:58:17 -0500
GOD how assume are thy works
On "CLICK"
http://www.youtube.com/watch?v=ENgxLWcm7L8
From: Craig Oral Somerford < email***@***.com>
Date: Feb 25, 2007 12:41 PM
Subject: Craig Oral Somerford has invited you to open a Google mail
account
To: email***@***.com ?-IN-DEED-DOFORWARD On "CLICK"
Cc: http://www.giorgioarmani.com/index.jsp?language=en&site=GPV&movieSess...www.2Barter.netwww,google.comwww.youtube.com
I've been using Gmail and thought you might like to try it out. Here's
an invitation to create an account." Skit Kittie Cats informal
hysterics. Inbox
"2Barter.net"
to Google, Community, YouTube
More options Feb 24 (23 hours ago)
Date: Feb 24, 2007 12:12 PM
Subject: Re: " Skit Kittie Cat Skit " On "CLICK" to see laughing,
chuckling, chortling, guffawing, giggling, tittering, twittering,
cackling, sniggering; informal hysterics.
To: "SonyaFitzpatrick"<email***@***.com
Cc: http://www.youtube.com/watch?v=pIqhUCZgwXQ
Bcc:http://video.google.com/videoplay?
docid=-3308763471699273011&q=sining. ..
- Hide quoted text -
On 2/24/07, Craig Oral Somerford < email***@***.com> wrote:
> From: Craig Oral Somerford < email***@***.com>
Date: Feb 24, 2007 12:08 PM
Subject: Re: " Skit Kittie Cat Skit " On "CLICK" to see laughing,
chuckling, chortling, guffawing, giggling, tittering, twittering,
cackling, sniggering; informal hysterics.
To: YouTube Service < email***@***.com>
Cc: Community Mailer <email***@***.com >
On 2/24/07, Craig Oral Somerford < email***@***.com> wrote:
From: Craig Oral Somerford < email***@***.com>
Date: Feb 24, 2007 11:10 AM
Subject: Mother Natures wrath looks like Ozsaferooms Needed now for
Florida an Mississippi
To: http://blog.namics.com/2006/youtube.JPG
Cc:http://www.purina.com/
Bcc: www.cingular.com
Mother Natures wrath Ozsaferooms Needed for Florida
Hi Googlies how were your alas for night last night?
I hope great as was mine was, for i had some real good dreams last
night.
Tell me guys did you read in the paper today about the Mississippian
problem.
The New York Times reported today about a high profiled attorney
coming to the rescue saying he had some good news about there intent
for the rebuilding effort is seeming to have come to a head.
On "CLICK" to see good times ahead
#1
http://www.youtube.com/watch?v=osnUB9bUm-E
#2
http://select.nytimes.com/gst/tsc.html?URI=http://select.nytimes.com/.
..
24 feb 2007
" Bartering for the betterment of are world we all live in "
24 oct 2006
Thank you
Sincerely:
Mr Google Bot On "CLICK"
http://www.google.com/support/webmasters/bin/topic.py?topic=8843
From: Craig Oral Somerford <email***@***.com>
Date: Feb 24, 2007 10:40 AM
Subject: Ozsaferooms Needed for Florida
To: http://www.nashvillescene.com/blog/nashvillecream/archives/
youtube.gif
Cc: http://www.justilien.com/images/google-networks.jpg
Bcc: http://www.youtube.com/watch?v=13uWfr_EY1o
" 2Barter, Google & YouTube "
Were if it is not good news then it is not NEWS to US.
Him,Her,Them & You
From: Your Host
Craig Oral Somerford < email***@***.com>
Date: Feb 24, 2007 10:35 AM
Subject: Paperlink Work 24 feb 2007
To: Sundays Den Den with Dolly Saturday part one
< email***@***.com>
Cc: Andrew <email***@***.com >
" Sundays Den Den with Dolly Saturday "< email***@***.com>
A New Day for?
Hi:
- Hide quoted text -
http://mail.google.com/mail/?disp=imgs&view=att&th=110f4649f6930339
24 feb 2007
http://www.ozsaferooms.com/
24 oct 2006
Thank you
Sincerely:
Andrew
To:http://www.ozsaferooms.com/Ch8%20News%20Edit.mpeg
Cc: http://www.mesoscale.ws/pictures/tornadic/
Welcome Back
" Skit Kittie Cat Rules Paperlink work two
" Skit Kittie Cat Skit "< email***@***.com>
Were if it is not good news, then give me?
" Some Cat Chow "
24 feb 2007
On "CLICK" to see remote control needed Part One > >
To: http://www.dogbreedinfo.com/images4/ComCatTV.jpg< < of Part Two
Cc: http://video.google.com/videoplay?docid=7476247739863018999&q=Cat
+Cho. ..
Bcc:http://www.catchow.com/
24 oct 2006
Thank you
Sincerely:
Mr Google for your good report
http://www.kbcafe.com/google/?guid=20070214123238
" Working in Faith "
How far can one see,while Surrounded by Only GOD'S
perfect creation.
Being driven by Faith and guided there In,while
working through the Power of candle light.
Seeing It give-way while watching the last Star fade Introducing the
Sun
to this dark Mountain.
Far enough it seems to move this Mountain;
to you On "CLICK"
- Show quoted text -
http://2barter.net/treasurehunt.html
Thank you:
" GOD "
In
" Jesus the Christ "
Name
Sincerely:
iPray
Craig Oral Somerford
Founder of Your Non-profit
See Ya Tomorrow Mr Google &
YouTube.http://www.youtube.com/watch?
v=IraMJEXRWfw&mode=related&search=
And think you Mr Dan Granger.For your barter for 2Barter
On "CLICK" to see more about
barteringhttp://www.google.com/search?hl=en&q=craig+oral+somerford&btnG=Google...
-----------------------------------------------------------------------
Craig Oral Somerford has invited you to open a free Gmail account.
To accept this invitation and register for your account,
visithttp://mail.google.com/mail/a-71bc94316e-dca3ab47e2-cbdc592f3f
Once you create your account, Craig Oral Somerford will be notified
with
your new email address so you can stay in touch with Gmail!
If you haven't already heard about Gmail, it's a new search-based
webmail
service that offers:
- Over 2,700 megabytes (two gigabytes) of free storage
- Built-in Google search that instantly finds any message you want
- Automatic arrangement of messages and related replies into
"conversations"
- Powerful spam protection using innovative Google technology
- No large, annoying ads--just small text ads and related pages that
are
relevant to the content of your messages
To learn more about Gmail before registering, visit:
http://mail.google.com/mail/help/benefits.html
And, to see how easy it can be to switch to a new email service, check
out our new switch guide:http://mail.google.com/mail/help/switch/
We're still working every day to improve Gmail, so we might ask for
your
comments and suggestions periodically. We hope you'll like Gmail. We
do. And, it's only going to get better.
Thanks,
The Gmail Team here is a little tast of New york City Blues
On "CLICK"http://www.youtube.com/watch?v=FObfyqaZsQs
(If clicking the URLs in this message does not work, copy and paste
them
into the address bar of your browser).
U S Contractors Offering Service A Non-profit
Operating a service business is not easy, but building an effective
web site can make a huge difference in increasing responsiveness and
customer satisfaction.I hope that you find this Construction Portal
use-full in helping you find things like, Contractors' Tools ,Heavy
Equipment Operators,Disaster Assistance ,Questions, Debates,
Information BLOG,Apprenticeship Program,World of Concrete and there
tools needed for that job and Government Incetives for Bulidings.Plus
Finding an Inspectors for jobs that are in need of starting or being
Finished... " Working In Faith " How far can one see,while Surrounded
by Only GOD'S perfect creation. Being driven by Faith and guided there
In,while working through the Power of candle lite. Seeing It give-way
while watching the last Star fade Introducing the Sun to this dark
Mountain. Far enough it seems to move this Mountain to you Thank you
GOD In Jesus Name Sincerely Craig Oral Somerford Founder of Your
Non-profit 2Barter.net To view me telling you about what you are
seeing in your minds eye. As you are reading about moving Mountain's ,
this letter was written as i was seeing it happen.So please after
reading view the Mountain and see were it was Written from if you
will.
On "CLICK" Too Seehttp://2barter.net/treasurehunt.html
#1http://www.google.com/search?hl=en&q= 2Barter.net&btnG=Search
#2http://www.google.com/search?sourceid=gmail&q=Craig%20Oral
%20Somerford
Paperlink Work 27feb 2007 Google Groups
1 message
Craig Oral Somerford < email***@***.com> Tue, Feb 27,
2007 at 10:42 AM
To: "2Barter. net" <email***@***.com>
Why are there Sharks teeth in Colorado?
Did they swim there.
And why do we not tell about the HAT we found.
The HAT that was Fossilized in the 20th Century.
They say they found " Jesus and his Family " Does this make you happy
if so why then did you not take some Photo of the bones of Jesus>
For it is say in the Bible that there was not one Bone broken on his
Body.
Those Photos if you had taking them they would say more just like the
photo of A Fossilized HAT says more about time.
That HAT was made in the last 100 years, so why then you did not take
a photo of the bones to see if they were any broken OR not.
Try again too denounce the Bible.
" B-ing I-nstruction B-efore L-eaving E-arth "
Also thank you
Sincerely for your Barter for 2Barter NBC.
i sure did like the Cat Comedy right after your Commercial you
Played:
Cat Chow & the Commercial parent Company of yours
On "CLICK" to see Dad were is the Cat.
http://www.petco.com/Shop/ProductList.aspx?PC=productlist&Nav=206&N=23+107+30+243&cm_ven=GoogleP&cm_cat=Litter_Littermaid&cm_pla=littermaid.com&cm_ite=Broad+Ad_656806093%7C-%7C100000000000000024856
~~~~~~~~~~~~~~~~~~----~~~---!!! ON "CLICK" to see happy cats
" You keep transcripts right?: http://www.youtube.com/watch?v=zzGRsf2l6Go
I would like one for our records-Please if you will email 2Barter
please @ " Craig Oral Somerford"< email***@***.com>
http://www.ge.com/rss/innovation.xml
Also to NBC you Had allot to say about AL GORE as well. we can look it
up to see AL GORE
Do you thank he will lose a-little weight like the Clinton Camp thinks
www.clintoncamp.com
And the Support AL GORE has with? " www.google.com & www.apple.com "
http://www.registeredon.com/new/com_061213_0193.html
but yet no mention of U S Contractors Offering Sarvice A Non-profit
that was give to GOD through faith.
On "CLICK" To see water & Faith as well
--~~~~~-----~~~~~-----~~~~~--!!! On "CLICK" to see www.2barter.net
That's OK by me really www.NBC.com , for at least now i know you got
the email sent to you thanks again.
NBC NEWS for your Barter for 2Barter for we all do no one thing Hind
sight is more then just that of 20/20.
So how about some Sharks Teeth next time you take on the
BIBLE.?-IN-DEED-DO-FORWARD
Thank you Google & YouTube Inc. for your barter with 2Barter
http://video.google.com/videoplay?docid=-8253217536641919163&hl=en
-----------------------------------------------------------------------
Craig Oral Somerford has invited you to open a free Gmail account.
To accept this invitation and register for your account, visit
http://mail.google.com/mail/a-71bc94316e-cf36f96c01-193c67f2da
Once you create your account, Craig Oral Somerford will be notified
with
your new email address so you can stay in touch with Gmail!
If you haven't already heard about Gmail, it's a new search-based
webmail
service that offers:
- Over 2,700 megabytes (two gigabytes) of free storage
- Built-in Google search that instantly finds any message you want
- Automatic arrangement of messages and related replies into
"conversations"
- Powerful spam protection using innovative Google technology
- No large, annoying ads--just small text ads and related pages that
are
relevant to the content of your messages
To learn more about Gmail before registering, visit:
http://mail.google.com/mail/help/benefits.html
And, to see how easy it can be to switch to a new email service, check
out our new switch guide: http://mail.google.com/mail/help/switch/
We're still working every day to improve Gmail, so we might ask for
your
comments and suggestions periodically. We hope you'll like Gmail. We
do. And, it's only going to get better.
Thanks,
The Gmail Team
(If clicking the URLs in this message does not work, copy and paste
them
into the address bar of your browser).
On "CLICK"
http://www.google.com/toolbar/ie7/
- 7
- last program of the semester, need a little help.okay, i won't bore you with all the details. basically, the user orders a
sandwich, drink...etc,etc. on the sandwich the user can select from
different meat options, chesse options, bread options, condiments. right
now i've got it set up with a combobox for ea. options, with a JButton to
add the selected option to a list...how do i get the selected option to
the list? once i get the selected items into a list it should be pretty
straight forward on the calculations to toal the order and output an
itemized bill. any help is greatly appreciated, also, if you think i'm
going about this all wrong fell free to speak up, i started to set up
another version using checkboxes instead of comboboxes, but regardless of
the interface i run into the same problem of being able to use what the
user selects.
TIA
rob
- 8
- NullPointerException at runtimeI am using SunOneStudio 4 on Windows XP to develop Java programs.
I am using the mysql:jdbc driver to connect locally to a
server on which a Linux OS and a MySQL database exist.
I have tested the connection from the Windows XP machine and it
successfully connects to the database on the MySQL server.
My next step though, is to eventually use Java code to run GUI's on XP to
access the database and perform usual database stuff.
I have so far compiled the , however I keep getting a runtime error...
java.lang.NullPointerException
at PatientDA.find(PatientDA.java:68)
at Patient.find(Patient.java:28)
at PathTesterOne.main(PathTesterOne.java:24)
Exception in thread "main"
I think the reason a null pointer exception is occuring is noted in the
PatientDA class
// Patient.java
// represents a patient
import java.util.Vector;
import java.sql.*;
public class Patient
{
// attribute definitions
private String patient_name;
private String med_record_num;
// constructor with parameters
public Patient(String aPatientName, String aMedRecordNum)
{
// invoke accessors to populate attributes
setPatientName(aPatientName);
setMedRecordNum(aMedRecordNum);
}
// DA static methods *********************************
public static Patient find(String key) throws NotFoundException
{return PatientDA.find(key);}
public static Vector getAll()
{return PatientDA.getAll();}
public static void terminate()
{PatientDA.terminate();}
// DA instance methods *********************************
public void addNew() throws DuplicateException
{PatientDA.addNew(this);}
//public void delete() throws NotFoundException
// {PatientDA.delete(this);}
public void update() throws NotFoundException
{PatientDA.update(this);}
// get accessors
public String getPatientName()
{ return patient_name;}
public String getMedRecordNum()
{ return med_record_num;}
// set accessors
public void setPatientName(String newPatientName)
{ patient_name = newPatientName;}
public void setMedRecordNum(String newMedRecordNum)
{ med_record_num = newMedRecordNum;}
public String tellAboutSelf()
{ return (getPatientName() + ", " + getMedRecordNum());}
}
PatientDA.java
import java.util.Vector;
import java.io.*;
import java.sql.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class PatientDA
{
// Vector of patients, Patient reference
static Vector patients = new Vector();
static Patient aPatient;
static MainMenu aMenu;
static String key;
// declare variables for Patient attribute values
static String patient_name, med_record_num;
// The DataBase name is "patholog" on the MySQL server
static String url =
("jdbc:mysql://192.168.1.101/test?user=jerald&password=wein3150");
static Connection aConnection;
static Statement aStatement;
// establish the database connection
public static void initialize()
{
aMenu = new MainMenu();
try
{ // load the mysql - jdbc driver
Class.forName("com.mysql.jdbc.Driver");
// create connection instance
aConnection = DriverManager.getConnection(url, "username", "password");
// create statement object instance for this connection
Here is where I think the error is....
aStatement = aConnection.createStatement();
}
catch (ClassNotFoundException e)
{System.out.println(e);}
catch (SQLException e)
{ System.out.println(e); }
}
// find an instance in the database
public static Patient find(String key) throws NotFoundException
{
aPatient = null;
// define the SQL query statement using the phone number key
String sqlQuery = "SELECT patient_name, med_record_num FROM PATIENT WHERE
med_record_num = '"+ key +"'";
// execute the SQL query statement
try
{
Here is the runtime error message line number in this class
-> ResultSet rs = aStatement.executeQuery(sqlQuery);
// next method sets cursor & returns true if there is data
boolean gotIt = rs.next();
if (gotIt)
{
// extract the data
String patient_name = rs.getString(1);
String med_record_num = rs.getString(2);
// create Patient instance
aPatient = new Patient(patient_name, med_record_num);
}
else
{
// nothing was retrieved
throw (new NotFoundException("not found "));
}
rs.close();
}
catch (SQLException e)
{ System.out.println(e);}
return aPatient;
}
The main method class here is as follows
// TesterOne - Patient database connect
import java.util.Vector;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class PathTesterOne
{
static Patient aPatient;
public static void main(String args[])
{
Vector patients;
Patient aPatient;
// initialize the databases
Connection c = PathologConnect.initialize();
try // get a patient
{
aPatient = Patient.find("123-4567");
printDetails();
}
catch(NotFoundException e)
{ System.out.println(e);}
try // try to get a non-existent patient
{
aPatient = Patient.find("000-0000");
printDetails();
}
catch(NotFoundException e)
{ System.out.println("Did not find 000-0000\n");}
// get all patients
patients = Patient.getAll();
for(int i = 0; i < patients.size(); i++)
{
// get customer reference
aPatient = (Patient) patients.get(i);
printDetails();
}
// add a new patient
aPatient = new Patient("Ed", "339-4990");
try
{
aPatient.addNew();
System.out.println("Ed added\n");
}
catch(DuplicateException e)
{ System.out.println(e);}
try // now, find the new patient
{
aPatient = Patient.find("339-4990");
printDetails();
}
catch(NotFoundException e)
{ System.out.println("Did not find 339-4990\n");}
// close the database
Patient.terminate();
PathologConnect.terminate();
}
private static void printDetails() {
System.out.println("Found " + aPatient.getPatientName());
System.out.println(" " + aPatient.tellAboutSelf());
}
}
- 9
- Refreshing page when seconds equals "0"I would like to be able to refresh my webpage every minute, on the
minute, so when the seconds=0 on my servers clock. I'm sure I'll have
to use
var seconds = now.getSeconds()
and put this into a loop somehow.
I'm sure this is simple stuff but just can't seem to get my head round
it. I don't want to use the <meta http-equiv="refresh" content="60">
because this will just refresh the page 60 seconds after the visitor
arrives and not when the minute changes.
Any help would be appreciated. Kind regards.
- 10
- 11
- inheritance and object creationI have a class A which is very big (around 500 lines of code). Now I
have to add extra functionality to the class(for which I hv to add a
method of 150 lines of code).
I don't want to cluster the class A even more. I may need to create
Class B having those 150 lines of code and then have a public method
loadDatamethod()and then I have following options, which one is
better ?
1. let class A inherit class B and call method loadDatamethod()
wherever reqd.
2. In class A, Instantiate class B and call the appropriate method.
3. Make the method loadDatamethod() static and then in Class A, call
it B.loadDatamethod(). The advantage is, we don't have to create an
instance of class B.
Any other option?
What are the advantages and disadvantages of these and when should one
be used over the another?
- 12
- TAO Trading Service AND JacORB ?Hi !
First I'm sorry of my poor english but I'm french...
I hope someone can help me because I don't know how to use the TAO
Trading Service ... I want to launch it and then use it with an java
application running with JacORB but I don't achieve to narrow the
service ....
Here's some description of my problem :
TAO Naming_Service execution :
------------------------------
Naming_Service.exe -ORBDebugLevel 1 -ORBEndpoint
iiop://192.168.200.24:3131
TAO Trading_Service execution :
-------------------------------
Trading_Service.exe -ORBDebugLevel 1 -ORBEndpoint
iiop://192.168.200.24:3105
JacORB parameters :
-------------------
ORBInitRef.NameService=corbaloc::192.168.200.24:3131/NameService
ORBInitRef.TradingService=corbaloc::192.168.200.24:3105/TradingService
Java-Application code using JacORB :
-----------------------------------
try {
//init ORB
ORB myORB = ORB.init( args, null );
// init POA
POA poa = POAHelper.narrow( myORB.resolve_initial_references(
"RootPOA" ));
poa.the_POAManager().activate();
// create a GoodDay object
GoodDayImpl serverImpl = new GoodDayImpl( "Somewhere Server"
);
// create the object reference
org.omg.CORBA.Object server = poa.servant_to_reference(
serverImpl );
org.omg.CORBA.Object o =
myORB.resolve_initial_references("NameService") ;
NamingContextExt nc = NamingContextExtHelper.narrow( o ) ;
nc.bind( nc.to_name("test.example"), server);
// Trading service (the two lines)
org.omg.CORBA.Object o2 =
myORB.resolve_initial_references("TradingService") ;
Lookup trader = LookupHelper.narrow( o2 );
myORB.run() ;
}
catch (Exception e) {
e.printStackTrace() ;
System.out.println("Minor code = " + ((OBJECT_NOT_EXIST)
e).minor) ;
}
Result :
--------
Without the two lines of the Trading Service in the java code, the
application run and work properly using the naming service
With the two lines of the Trading Service in the java code, the
application crash (see the traces)
Note : Minor code = 1413545984 = 0x54410000
Java Application Trace :
------------------------
[jacorb.orb] INFO :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JacORB V 2.2.2, www.jacorb.org
(C) The JacORB project 1-Jun-2005
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[jacorb.orb.intercept] INFO : InterceptorManager started with 0
SIs, 0 CIs and 1 IORIs
[jacorb.poa] INFO : oid:
00 14 2A 4C 0F 0C 46 22 0E 1E
..*L..F"..
object is activated
[jacorb.orb.giop] INFO : ClientConnectionManager: created new
conn to target 192.168.200.24:3131
[jacorb.orb.iiop] INFO : Connected to 192.168.200.24:3131 from
local port 2091
[jacorb.orb.iiop] INFO : Client-side TCP transport to
192.168.200.24:3131 closed.
[jacorb.orb.iiop] INFO : Client-side TCP transport to
192.168.200.24:3131 closed.
[jacorb.orb.giop] INFO : ClientConnectionManager: created new
conn to target 192.168.200.24:3131
[jacorb.orb.iiop] INFO : Connected to 192.168.200.24:3131 from
local port 2092
[jacorb.orb.giop] INFO : ClientConnectionManager: created new
conn to target 192.168.200.24:3105
[jacorb.orb.iiop] INFO : Connected to 192.168.200.24:3105 from
local port 2093
org.omg.CORBA.OBJECT_NOT_EXIST: Server-side Exception: null
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at org.jacorb.orb.SystemExceptionHelper.read(Unknown
Source)
at org.jacorb.orb.ReplyReceiver.getReply(Unknown Source)
at org.jacorb.orb.Delegate.invoke_internal(Unknown
Source)
at org.jacorb.orb.Delegate.invoke(Unknown Source)
at org.jacorb.orb.Delegate.is_a(Unknown Source)
at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown
Source)
at org.omg.CosTrading.LookupHelper.narrow(Unknown Source)
at testcorba.TheServer.launchServer(Unknown Source)
at testcorba.Server.main(Unknown Source)
Minor code = 1413545984
TAO Naming Service Trace :
--------------------------
TAO (3340|3492) Loaded default protocol <IIOP_Factory>
Notifying ImR of startup
We'll become a NameService
TAO (3340|3492) - Transport_Cache_Manager::fill_set_i,
current_size = 0, cache_maximum = 512
TAO (3340|3492) - Connection_Handler::open, IIOP connection to
peer <192.168.200.24:2091> on 1768
TAO (3340|3492) - Transport_Cache_Manager::bind_i, 0x12eb84 ->
0xf84370 Transport[1768]
TAO (3340|3492) - Connection_Handler[1768]::close_connection,
purging entry from cache
TAO (3340|3492) - Connection_Handler[1768]::close_connection,
removing from the reactor
TAO (3340|3492) - Connection_Handler[1768]::close_connection,
cancel all timers
TAO (3340|3492) - Connection_Handler[1768]::close_connection
TAO (3340|3492) - Transport_Cache_Manager::fill_set_i,
current_size = 0, cache_maximum = 512
TAO (3340|3492) - Connection_Handler::open, IIOP connection to
peer <192.168.200.24:2092> on 1768
TAO (3340|3492) - Transport_Cache_Manager::bind_i, 0x12eb84 ->
0xf85310 Transport[1768]
TAO Trading Service Trace :
---------------------------
*** Trading Service OPALE_2012 initializing.
TAO (2012|2936) Loaded default protocol <IIOP_Factory>
The multicast server setup is done.
TAO (2012|2936) - Transport_Cache_Manager::fill_set_i,
current_size = 0, cache_maximum = 512
TAO (2012|2936) - Connection_Handler::open, IIOP connection to
peer <192.168.200.24:2093> on 1768
TAO (2012|2936) - Transport_Cache_Manager::bind_i, 0x12e874 ->
0xf5ec70 Transport[1768]
Have you an idea of what I'm doing wrong ?
Thanks for any help
Lenn ANGEL.
- 13
- Capture Video from ip camera using JMFHi,
can any one help me how can i capture video from ip camera using JMF? i
know how to capture video from webcam or usb cam attached on my
compter. But i dont know how to detect ip camera on the network and
capture video from ip camera.
Does JMF provides any packages using which i can detect device on
network or its not presently possible in JMF. i m using j2se 1.4.1 and
jmf 2.1.1e
if any one can help me on the same or give some code snipplet it will
be appriciated.
Thanks in advance,
Vijay Tandel.
- 14
- Tree Browser Application HelpI have an application that has a JTree on its left side and a JPanel on its
right, much like the Windows (File) Explorer. Whenever the user clicks on a
tree node, the corresponding panel is shown.
What makes matters complicated is that the content of the panels are
dependent on the structure of the tree. For example consider the tree
below. The panel that is shown when the user clicks on "analysis1" will
need to know all the nodes in the "Data" parent node. Moreover, the user
can add/remove "data?" nodes.
Tree
|
- Data
| |
| - data1
| - data2
|
- Analysis
| |
| - analysis1
| - analysis 2
.....
.....
So my problem is keeping the panels synchronized with the tree structure. I
though of couple possible approaches, but couldn't decide which is the best:
1. Implement tree listeners to listen for nodes being added/removed to the
tree. Then, look for certain types of nodes ("data") that are of interest
to the panel ("analysis1"). However, this will fire the listeners even if
the "analysis1" panel is not visible. Since I have a lot of nodes, updating
invisible panels seems to be a waste.
2. Implement some kind of visibility listener, so that the panels update
their content only when they are made visible.
Could you suggest other approaches? Have you come accross similar problems?
Thanks.
Bora
- 15
- hartmath: solveCould someone help me use Hartmath to do this:
Call a method with the parameter the string "Solve(y=x+1, x)"
and get as a return value the string "x=y-1"
Also, I would like to pass expressions in and out as trees of objects.
Thanks, Peter
|
|
|