What does the Netiquette imply?
Java Programming
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Java ProgrammingGo to page: « previous | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | next »

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:
Thursday, 7 June 2007
warning: [LocalTxConnectionM­anager$LocalConnecti­onEventListener] prepare called on a local tx. Stefan Puiu 07:32:34
 
Hello, I'm running JBoss 3.0.6 compiled and run on a 1.4.1 Sun JDK on a
Mandrake Linux 9.0 box. I'm running some simple database tests written
by a co-worker based on the JBossCMP "Crime portal" example. There are
three ant targets (three EJBTestCase sub-classes run one after another):
db-setup, db-test and db-teardown. When running db-teardown, which
basically cleans up the database and saves the old entries in an
"archive" database which uses the same entities as the first with
different deployment descriptors and a different data source. It uses a
session bean to save everything in the "archive" db and then clean up.
Trouble is, we get these warnings every time we run db-teardown:

12:47:57,100 WARN
[LocalTxConnectionManager$LocalConnectionEventListener] prepare called
on a local tx. You are not getting the semantics you expect!
12:47:57,101 WARN
[LocalTxConnectionManager$LocalConnectionEventListener] prepare called
on a local tx. You are not getting the semantics you expect!


The warnings were showing up on JBoss 3.0.4, 3.0.5 and are still there
in 3.0.7 (I tried it this morning). Does anybody know what might be the
cause of this? It's not an error, the app works, but the messages are
annoying and it bugs me not to know what is the thing that causes them.



-------------------­--------------------­----------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinux­forum.com
comment 5 answers | Add comment
Sunday, 3 June 2007
How to Convert ".doc" to ".pdf" Mallela Siva Subrahmanyam 10:45:47
 Hi,

I am using the PDFWriter and Document classes of
iText.jar file and trying to convert a ".doc" file to
".pdf" format. I am able to fetch the data and put it
into a pdf file. But the ".doc" data being read
contains some formatting information that is being
appended to the content, in the beginnning and at the
end.
How to get rid of that code content in the PDF file
through java code?
I am trying this out as a stand alone API, which takes
the "Document File Name" as command line argument.

I could successfully convert a ".txt" file into
".pdf".

Also, can I insert a GIF into this PDF(just created)
in a page that contains a particular text String ?

Please send me the code piece, as I badly need that.

Attaching a copy of the code that I am currently
using.
Regards,
Subbu

___________________­_______________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.­yahoo.com

// This Java Class is to Convert a specified Document into a PDF Format
// This Takes a file as an input and Generates a PDF from this.
// Developed by S Subrahmanyam Mallela on 24/3/2003 for Sirvisetti Global Services

import java.util.*;
import java.io.*;
import java.sql.*;

// Custom Packages itext-1.0.0.jar
import com.lowagie.text.*;­
import com.lowagie.text.pd­f.*;


public class PdfGenerator
{

public PdfGenerator(String­ str)

{
String img_path = "";
String fax_no = "";
String tmpStr="";
String file_nm = "";
String fname = "";
String lname = "";

DocumentException ex = null;
Document doc = new Document();
PdfWriter docWriter = null;
RandomAccessFile raf = null;

try
{

raf = new RandomAccessFile(st­r,"r");

OutputStream os= new FileOutputStream("f­ile_nm.pdf");
docWriter = PdfWriter.getInstan­ce(doc,os);
docWriter.flush();

// Option to Hide the ToolBar and MenuBar
// docWriter.setViewer­Preferences(PdfWrite­r.HideMenubar | PdfWriter.HideToolb­ar);


// This piece of Code is for Embedding a GIF or JPG into the PDF at the Desired Position
Watermark watermark = new Watermark(Image.get­Instance("img_path.g­if"), 400, 90);
doc.add(watermark);­
raf.close();
doc.open();
tmpStr = "";
raf = new RandomAccessFile(st­r,"r");
while((tmpStr=raf.r­eadLine())!= null){
doc.add(new Paragraph(tmpStr));­
}
raf.close();

}catch (DocumentException dex){
dex.printStackTrace­();
System.out.println(­this.getClass().getN­ame()+ " caught an exception: ");
}
catch (IOException ioe){
System.out.println(­" caught an IO exception: "+ioe);
}
catch(Exception ioe){
ioe.printStackTrace­();
System.out.println(­"Caught in Submethbod "+ioe);
}
finally {
if (doc != null){
doc.close();
}
if (docWriter != null){
docWriter.close();
}
}

}

// Main Method to create instance and invoke the Generator Method

public static void main(String args[]){
PdfGenerator sub = new PdfGenerator(args[0]);­
}
}
comment 1 answer | Add comment
Wednesday, 30 May 2007
Library supporting variably determinate time Donald McLean 21:41:49
 I'm working on an application that will be storing family history
information.

Some of this data is precise and well known (my birthday), and some is
not. For example, a precise month and day may be known, but not
necessarily the precise year.

Is anyone aware of any library or libraries that support the encoding of
temporal information with different levels of determinateness?

Is anyone aware of any research into the representation and/or encoding
of such information?

Thank you,

Donald McLean
[speaking strictly for myself]

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 6 answers | Add comment
Monday, 28 May 2007
Printing PDF from HTML. KA Jaganatha 12:09:16
 ____________________­____________________­_______
iText-questions mailing list
iText-questions@lis­ts.sourceforge.net
https://lists.sourc­eforge.net/lists/lis­tinfo/itext-question­s
Add comment
Friday, 25 May 2007
Is JDK SSL known to be leaking on closing the connections ? Sergey Beryozkin 22:07:19
 Hi

has someone seen the default SSL client implementation leaking ? I'm witnessing a leak on every SSL-based GET request...I've
searched the arhives a bit but haven't found any pointers except for the recommendation to switch to the HTTPClient library...
The profiler I'm using (NetBeans one) shows consistent leak coming from com.sun.net.ssl.int­ernal.* classes. I'm closing the input
stream and then calling connection.disconne­ct on every request, originally I did not do disconnect() as I was using Keep-Alive, but
then, just for tests, I removed a Keep-Alive property and started calling disconnect() explicitly, hioping it will give my progarmm
some memory back :-)­
Apologies if it's not considered a topic advanced enough
Cheers, Sergey

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Monday, 21 May 2007
Can I have more control of Runtime.process? Carfield Yim 19:05:41
 I am writing a bloomberg connector to get information from bloomberg
API. However bloomberg don't come with a java API so for now I've
developed a C EXE application and using java Runtime process to feed
input using stdin and get output from stdout.

Just wonder can I know more information about the C EXE application
like if the process crashed or not so that I can create a new process
for any exception happened. And I found that this is possible to wait
for a long time to get the informatin back from the stdout of the C
process. Is it possible to have more control about that?

The application will probably run at Windows platform, so I just like
to know the information about windows platform, please post if you
know any information about this area.

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 5 answers | Add comment
Can I design a system wide deadlock detection using new Thread.state API Carfield Yim 14:08:55
 Is it possible to create a thread when the system startup, which can
monitor all thread, may be using similar approach with
http://www.exampled­epot.com/egs/java.la­ng/ListThreads.html to get all
thread in the system.

Then detect if one thread idle for more than several second (may be
15s) , if it still in wait state, using Thread.state API. We try to
interrupt it. However, is it possible to get the thread ownership to
kill it? And, do you think this is a reasonable approach to recover
from deadlock?

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 38 answers | Add comment
Thursday, 17 May 2007
Javadoc Comment Generator Keith Kirkhope 14:50:03
 
Hello all>
I would like to work on the Javadoc comment generation as detailed in> issue #11950 and others. Can anyone point me in the correct direction to> guides/code to help me in my quest.>
Thanks>
Keith
comment 1 answer | Add comment
[JBoss Portal] - Re: Forum portlet error Unibrew 06:16:08
 Hi

From the log I see you are using Mysql 4.1 and JBossAS 4.0.3 SP1 but which JBPortal and JBForums versions do you deploy?

Cheers
-------------------­--------
Ryszard Kozmik
JBoss Forums Lead

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­39484#3939484

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3939484


-------------------­--------------------­----------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=120709&bid=2630­57&dat=121642
comment 17 answers | Add comment
Tuesday, 15 May 2007
One question Alois Lehnertz 03:50:13
 Hi,

I have a question about the itext.
Is it possible to change the Acrobat Version number and the Fast Web view =
yes on the same time?
Best regards,

Alois Lehnertz
alois.lehnertz@ic.l­u




-------------------­--------------------­----------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.­com/cgi-bin/survey?i­d=105hix
comment 2 answer | Add comment
Monday, 14 May 2007
Access to windows mounted drive Juan Alonso 18:09:12
 Hi,

Running File.listRoots() in windows doesn't list all my mounted drives, it
lists only the mounted drives I`m already authenticated.

My needs are to read a file in a remote machine with a shared folder:


1. If I access the file from FileInputStream("G:­\\test.txt"); then I
get a path no identify error.
2. If I access the file from
FileInputStream("\\­\\180.105.3.18\folde­r1\test.txt"); then I get an security
error.

Scenario:
ServerA shares a folder (centralized repository)
ClientA uploads a file to the shared folder.
ServerB reads the file uploaded.
Any thoughts, how can I make this work??

thx, Juan.

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Tuesday, 8 May 2007
Re: Spellchecker Brian Smith 09:53:55
 John Richardson wrote:> 2) I could submit the changes as a patch, but the changes would be> rather large (or someone could pick up the source from> http://www.mv.com/i­pusers/zealand/java/­spell/).

John,

I downloaded this version and it seems to work. At least, it seems to
correctly identify mispelled words. I am a little confused about whether
this is the latest version or if the latest version is in NetBeans CVS?
I couldn't get the CVS version to work.

Anyway, since I am a horrible speller, I created a quick-and-crude hack
to add support for my XML files. In doing so I managed to remove the
explicit dependencies on JavaTokenContext, HTMLTokenContext, etc. But,
the added functionality needs to be rewritten since I did it in a very
inefficient way, but I think it can be cleaned up to still not require
those source-code level dependencies on the Java/HTML modules.

It also would be better to offer the user more customization like:

For HTML:
Which element/attributes types should be spell checked? For example,
<code> and <style> probably shouldn't be spell checked. An option for
disabling checking of comments would also be nice.

For XML/SGML in general:
All of the above, but on a DTD/schema-by-DTD/s­chema basis. For example,
DocBook documents will have a set of non-code element types that is
completely different than SVG, etc.

For Java:
What kinds of comments should be checked (of JavaDoc, inline, block); I
think that I would only want JavaDoc to be checked in my case. Also, I
think that there should be an option to disable the spell-checking of
strings, and/or provide a way of skipping strings that are marked NO18N.

For some of these customizations it might be necessary to have some
simple spell-checker API/SPI for complex cases (e.g. //I18N, JavaDoc vs.
normal block comments, distinguising elements and attributes in
XML/HTML/SGML).

Thanks,
Brian



comment 20 answers | Add comment
Friday, 4 May 2007
Java enum riddle Sordini Emmanuele 19:08:58
 Hello list,

IMHO, Java enums are indeed more powerful than their counterparts in
other languages (namely, C++), but also trickier.



Here is my question: can a Java enum implement an interface with
different specialization for each enum entry? Let's consider the
following example:



public Interface Foo

{

public void nop();

}



Here comes the implementing enum:



public enum Bar implements Foo

{

FIRST

{

public void nop()

{

// Do something

}

},

SECOND

{

public void nop()

{

// Do somethin' DIFFERENT

}

}

}



[...]



Somewhere else in the calling code:



List<Bar> lb = // Build the list somehow



for (Bar b: lb)

{

// Here, I want the specialized version to be called, i.e.

// FIRST.nop(), then SECOND.nop()...

//

b.nop();

}



Looks like the Java compiler (J2SE 5.0, Win32) sometimes will accept
this coding style, sometimes won't. A quick fix to the compiler's
complaints was adding an empty implementation for the nop() method at
Foo class level alongside the specialized enum entry version, which is
the one actually called at runtime. For the record, I am using Netbeans
5.5 IDE.



This behavior kind of puzzles me: what am I missing and/or doing wrong?



Thanks in advance,

Emmanuele Sordini.






===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 5 answers | Add comment
Thursday, 3 May 2007
WeakReference vs SoftReference Sergey Beryozkin 14:02:40
 Hi

I'm having a discussion with my colleagues on what kind of References should we use in order to avoid memory leaks. there're lots of opinions on this issue and it all depends on the actual scenario.

My own preference is to use WeakReferences. We have some internal maps whose values need a periodic cleanup. These maps can be used quite frequently, with values being added there, removed, queried. My understanding, from what I've heard and read before, is that using SoftReferences in this scenario to wrap the values can really lead to the memory exception if the heap limit is reached, a request to add more objects into this internal map is pending and the GC hasn't had a chance to clear softly referenced values yet.
In fact, I'm not even sure when would I use SoftReferences at all. Why wait until the OutOfMemory exception is about to be thrown ? The more memory the application consumes the less responsive it becomes. Perhaps only when dealing with loading heavy images, etc...

Any comments will be appreciated

Thanks, Sergey

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 15 answers | Add comment
Wednesday, 2 May 2007
PHP & Apache through proxy Daniel B I 14:59:42
 Hi!
Any idea how to send a www header through a proxy?
Is there a proxy www header?

thanx,
Daniel BI

comment 1 answer | Add comment
PHP + javascript Jim Ide 08:11:19
 
Hi -

I want to use javascript to validate some fields on a form.
The javascript code will take the value the user typed
into the form and search for it in an array. If the value
is found in the array, then the value is ok, otherwise
an alert() message will be displayed.

The amount of data in the array is quite large.

The data in the array rarely changes.

I want to avoid transferring the array from the web server
to the client's web browser every time the user loads the
form. I put the array in a file called "myarray.js":

$ cat myarray.js
var MyArray = new Array(
"value 1",
"value 2",
<many lines snipped>
"value 789",
"value 790"
);
$

Then, I put the following line in the php script that generates the form:

<script language="JavaScrip­t" src="myarray.js"></­script>

By examining Apache's access_log, I see that "myarray.js" is
transferred to the user's web browser once when the form is first
displayed, and for subsequent uses of the form, the web browser
uses the myarray.js that is cached, so that the array does not
have to be transferred from the web server to the client computer
every time the user uses the form.

So, if the data in the array contained in myarray.js _does_ need
to be changed, I need some way of signaling the user's web browser
that it needs to transfer the updated myarray.js file from the web
server. How do I do this?

The only way I know to do this is to instruct the users to clear their
web browser cache, which will force the web browser to transfer
the updated myarray.js from the web server to the web browser.

Is there another way? Is there some kind of "expire" mechanism
that will tell the web browser that it needs to get the updated
myarray.js file?

Thanks -
Jim Ide



comment 2 answer | Add comment
Tuesday, 1 May 2007
nesting php Brendan Caulfield 23:41:06
 Hello everyone!

I am trying to pass a variable in a url and can't seem to do it. The problem is, the url is already being determined by a php "if" statement. So, when I get to the part where I try to append the url I get parse errors. What I would ideally like to do is generate the url using php and append the url with a variable, also using php. The variable is a username, therefore i need to use (urlencode()). Any ideas.

Thanks,

Brendan


___________________­____________________­____________________­______
Start your day everyday with fellow Sigma Nu brothers. Visit http://www.SigmaNu.­com, Sigma Nu's exclusive private label start page, where you'll get Fraternity news, New York Times news, custom stock portfolios, up-to-the-minute sports scores, current weather conditions and five-day forecasts, online shopping with brand name stores, web-based Sigma Nu e-mail and much more. This is a free service brought to you by Sigma Nu.
comment 1 answer | Add comment
Problem with new Syntax Highlighting Module Sebastian Hofmann 08:31:37
 -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I am about to write a module for some syntax highlighting. I followed
the instructions in the "Manifest-Support" tutorial.

I am able to install the new module, create new file from template and
manage properties of the module using the options dialog.

Problem is, that the syntax in the editor will not be highlighted.
Another problem - perhaps the same? - is that a NullPointerExceptio­n
occurs when clicking in the preview example in the option window. Log
and Stacktrace see below. In preview example syntax is not highlighted, too.

Has anybody an idea?
Thanks for help...
Regards
Sebastian


-
-------------------­--------------------­--------------------­--------------------­>Log Session: Sunday, August 6, 2006 2:44:21 PM CEST>System Info:
Product Version = NetBeans Platform Dev (Build 200601251500)
Operating System = Linux version 2.6.16.1.02 running on i386
Java; VM; Vendor; Home = 1.5.0_06; Java HotSpot(TM) Client VM
1.5.0_06-b05; Sun Microsystems Inc.; /opt/apps/jdk1.5.0_­06/jre
System Locale; Encoding = de_DE; UTF-8
Home Dir.; Current Dir. = /home/shofmann;
/home/shofmann/proj­ekte/velocity-suppor­t
Installation; User Dir. =
/opt/apps/netbeans-­5.0/enterprise2:/opt­/apps/netbeans-5.0/h­arness:/opt/apps/net­beans-5.0/ide6:/opt/­apps/netbeans-5.0/nb­5.0:/opt/apps/netbea­ns-5.0/platform6:/ho­me/shofmann/projekte­/velocity-support/bu­ild/cluster:/opt/app­s/netbeans-5.0/platf­orm6;
/home/shofmann/proj­ekte/velocity-suppor­t/build/testuserdir
Boot & Ext. Classpath =
/opt/apps/jdk1.5.0_­06/jre/lib/rt.jar:/o­pt/apps/jdk1.5.0_06/­jre/lib/i18n.jar:/op­t/apps/jdk1.5.0_06/j­re/lib/sunrsasign.ja­r:/opt/apps/jdk1.5.0­_06/jre/lib/jsse.jar­:/opt/apps/jdk1.5.0_­06/jre/lib/jce.jar:/­opt/apps/jdk1.5.0_06­/jre/lib/charsets.ja­r:/opt/apps/jdk1.5.0­_06/jre/classes:/opt­/apps/jdk1.5.0_06/jr­e/lib/ext/sunjce_pro­vider.jar:/opt/apps/­jdk1.5.0_06/jre/lib/­ext/localedata.jar:/­opt/apps/jdk1.5.0_06­/jre/lib/ext/dnsns.j­ar:/opt/apps/jdk1.5.­0_06/jre/lib/ext/sun­pkcs11.jar
Application Classpath =
/opt/apps/netbeans-­5.0/platform6/lib/bo­ot.jar:/opt/apps/net­beans-5.0/platform6/­lib/org-openide-modu­les.jar:/opt/apps/ne­tbeans-5.0/platform6­/lib/org-openide-uti­l.jar:/opt/apps/jdk1­.5.0_06/lib/dt.jar:/­opt/apps/jdk1.5.0_06­/lib/tools.jar
Startup Classpath =
/opt/apps/netbeans-­5.0/platform6/core/c­ore.jar:/opt/apps/ne­tbeans-5.0/platform6­/core/org-openide-fi­lesystems.jar:/opt/a­pps/netbeans-5.0/ide­6/core/org-netbeans-­modules-utilities-cl­i.jar:/opt/apps/netb­eans-5.0/nb5.0/core/­org-netbeans-upgrade­r.jar:/opt/apps/netb­eans-5.0/nb5.0/core/­locale/core_nb.jar
-
-------------------­--------------------­--------------------­--------------------­
Updating module: JavaScript Editor
Turning on modules:
org.openide.util [6.8.1 200601251500]
org.openide.modules­ [6.5.1 200601251500]
org.openide.awt [6.7.1 200601251500]
org.openide.filesys­tems [6.4.1 200601251500]
org.openide.dialogs­ [6.5.1 200601251500]
org.openide.nodes [6.7.1 200601251500]
org.openide.windows­ [6.5.1 200601251500]
org.openide.options­ [6.4.1 200601251500]
org.openide.text [6.9.1 200601251500]
org.openide.explore­r [6.5.1 1 200601251500]
org.openide.actions­ [6.5.1 200601251500]
org.openide.loaders­ [5.9.1 200601251500]
org.netbeans.bootst­rap/1 [2.3.1 200601251500]
org.netbeans.api.pr­ogress/1 [1.5.1 200601251500]
org.netbeans.core.s­tartup/1 [1.5.1 200601251500]
org.netbeans.swing.­plaf [1.5.1 200601251500]
org.netbeans.core/2­ [3.2.1.1 200601251500]
org.netbeans.module­s.autoupdate/1 [2.16.1 200601251500]
org.netbeans.api.xm­l/1 [1.12.1 200601251500]
org.netbeans.spi.na­vigator/1 [1.2.1 200601251500]
org.openide.io [1.9.1 200601251500]
org.netbeans.core.o­utput2/1 [1.7.1.1 1 200601251500]
org.netbeans.module­s.xml.core/2 [1.11.1.4 4 200601251500]
org.netbeans.libs.x­erces/1 [1.8.1 2.6.2 200601251500]
org.netbeans.module­s.xml.tax/2 [1.11.1.4.4 4 200601251500]
org.netbeans.module­s.settings/1 [1.10.1 200601251500]
org.netbeans.module­s.javahelp/1 [2.8.1 200601251500]
org.netbeans.taskli­stapi/1 [1.20.1.7 7 200601251500]
org.netbeans.module­s.tasklist.core/2 [1.37.1.16.7 16 200601251500]
org.netbeans.module­s.queries/1 [1.7.1 200601251500]
org.netbeans.module­s.suggestions_framew­ork/2 [1.15.1.9.16.7 9 200601251500]
org.jdesktop.layout­/1 [1.3.1 1.0 200601251500]
org.openide.executi­on [1.8.1 200601251500]
org.netbeans.libs.f­ormlayout/1 [1.2.1 1 200601251500]
org.netbeans.module­s.options.api/0 [1.3.1 200601251500]
org.netbeans.core.e­xecution/1 [1.9.1 200601251500]
org.apache.tools.an­t.module/3 [3.24.1.1 1 200601251500]
org.netbeans.module­s.apisupport.ant [2.30.2 060322]
org.netbeans.module­s.editor.util/1 [1.8.1 200601251500]
org.netbeans.module­s.editor.mimelookup/­1 [1.3.1 200601251500]
org.netbeans.module­s.editor.fold/1 [1.5.1 200601251500]
org.netbeans.module­s.editor.lib/1 [1.9.1.1 1 200601251500]
org.netbeans.module­s.ant.browsetask [1.11.1 200601251500]
org.netbeans.api.ja­va/1 [1.10.1 200601251500]
org.netbeans.module­s.projectapi/1 [1.9.1 200601251500]
org.netbeans.module­s.projectuiapi/1 [1.13.1.5 5 200601251500]
org.netbeans.module­s.project.ant/1 [1.12.1 200601251500]
org.netbeans.spi.vi­ewmodel/2 [1.9.1 200601251500]
org.openide.src [1.8.1 200601251500]
org.openidex.util/3­ [3.9.1 200601251500]
org.netbeans.module­s.java.platform/1 [1.7.1 200601251500]
org.netbeans.module­s.favorites/1 [1.11.1 200601251500]
org.netbeans.core.u­i/1 [1.9.1 200601251500]
org.netbeans.module­s.xml.catalog/2 [1.10.1.4.4 4 200601251500]
org.netbeans.module­s.masterfs/1 [1.7.1 200601251500]
org.netbeans.module­s.projectui [1.7.1.5 200601251500]
javax.jmi.reflect/1­ [1.7.1 200601251500]
org.netbeans.jmi.ja­vamodel/2 [1.21.1 200601251500]
org.netbeans.module­s.editor.errorstripe­.api/1 [2.2.1.1 1 200601251500]
org.netbeans.api.md­r/1 [1.4.1 200601251500]
javax.jmi.model/1 [1.7.1 200601251500]
org.netbeans.module­s.jmiutils/1 [1.5.1.2 2 200601251500]
org.netbeans.module­s.mdr/1 [1.5.1.2.2 2 200601251500]
org.netbeans.module­s.classfile/1 [1.18.1 200601251500]
org.netbeans.module­s.javacore/1 [1.18.1.2.2 200601251500]
org.netbeans.module­s.java/1 [1.25.1.2.2.2 2 200601251500]
org.netbeans.module­s.project.libraries/­1 [1.13.1 200601251500]
org.netbeans.module­s.java.project/1 [1.8.1 200601251500]
org.netbeans.api.de­bugger/1 [1.7.1 200601251500]
org.netbeans.api.de­bugger.jpda/2 [2.4.1 200601251500]
org.netbeans.module­s.debugger.jpda/2 [1.16.1 200601251500]
org.netbeans.spi.de­bugger.ui/1 [2.8.1 200601251500]
org.netbeans.module­s.debugger.jpda.ui/1­ [1.5.1 200601251500]
org.netbeans.module­s.debugger.jpda.ant [1.7.1 200601251500]
org.netbeans.core.m­ultiview/1 [1.8.1 200601251500]
org.netbeans.module­s.junit/2 [2.19.1 200601251500]
org.netbeans.module­s.apisupport.project­ [1.11.1.5.4 5 200601251500]
org.netbeans.module­s.ant.freeform/1 [1.10.1 200601251500]
org.netbeans.module­s.java.freeform/1 [1.5.1 200601251500]
org.netbeans.api.we­b.webmodule [1.6.1 200601251500]
org.netbeans.module­s.web.freeform [1.4.1 200601251500]
org.netbeans.module­s.j2ee.platform/1 [1.3.1 200601251500]
org.netbeans.module­s.editor.hints/1 [1.9.1.1 1 200601251500]
org.netbeans.module­s.editor.settings/1 [1.4.1 200601251500]
org.netbeans.module­s.editor/3 [1.26.1.1 200601251500]
org.netbeans.module­s.editor.completion/­1 [1.6.1 200601251500]
org.netbeans.module­s.java.editor.lib/1 [1.4.1 200601251500]
org.netbeans.module­s.editor.codetemplat­es/1 [1.2.1 200601251500]
org.netbeans.module­s.java.editor/1 [1.4.1 200601251500]
org.netbeans.module­s.java.hints/1 [1.10.1.1 1 200601251500]
org.netbeans.libs.c­ommons_logging/1 [1.3.1 1.0.4 200601251500]
org.netbeans.module­s.servletapi24/1 [2.6.1 2.4 200601251500]
org.netbeans.module­s.web.jspparser/2 [2.5.1 200601251500]
org.netbeans.module­s.websvc.clientapi [1.4.1 200601251500]
org.netbeans.module­s.j2eeapis/1 [1.6.1 200601251500]
org.netbeans.module­s.schema2beans/1 [1.14.1 200601251500]
org.netbeans.module­s.j2eeserver/4 [1.13.1 200601251500]
org.netbeans.module­s.j2ee.dd/1 [1.7.1.2 2 200601251500]
org.netbeans.module­s.j2ee.dd.webservice­ [1.3.1 200601251500]
org.netbeans.module­s.websvc.websvcapi [1.4.1 200601251500]
org.netbeans.module­s.j2ee.api.ejbmodule­ [1.4.1 200601251500]
org.netbeans.module­s.web.project [1.4.1 200601251500]
org.netbeans.module­s.web.jstl11/1 [2.6.1 1.1.2 200601251500]
org.netbeans.module­s.jmxri/1 [1.2.1 1 200601251500]
org.netbeans.module­s.j2ee.weblogic9/1 [1.4.1 200601251500]
org.netbeans.module­s.db/0 [1.16.1.3 3 200601251500]
org.netbeans.module­s.j2ee.sun.dd/1 [1.5.1 200601251500]
org.netbeans.module­s.j2ee.sun.appsrv/1 [1.3.1 1 200601251500]
org.netbeans.module­s.dbschema/1 [1.7.1.3.3 3 200601251500]
org.netbeans.module­s.j2ee.sun.ddui/1 [1.6.1 1 200601251500]
org.netbeans.module­s.javadoc/1 [1.18.1 200601251500]
org.netbeans.module­s.editor.plain.lib/1­ [1.3.1 200601251500]
org.netbeans.module­s.html.editor.lib/1 [1.4.1 200601251500]
org.netbeans.module­s.html.editor/1 [1.4.1 200601251500]
org.netbeans.module­s.j2ee.debug/1 [1.3.1 200601251500]
org.netbeans.module­s.j2ee.common/1 [1.4.1 200601251500]
org.netbeans.module­s.websvc.registry [1.3.1 200601251500]
org.netbeans.module­s.websvc.core [1.5.1.1.4 1 200601251500]
org.netbeans.module­s.refactoring/1 [1.15.1.3.2 3 200601251500]
org.netbeans.spi.pa­lette/0 [1.5.1 200601251500]
org.netbeans.module­s.xml.multiview/1 [1.4.1.2 2 200601251500]
org.netbeans.module­s.editor.structure/1­ [1.11.1.1 1 200601251500]
org.netbeans.module­s.xml.text/2 [1.11.1.4.4 4 200601251500]
org.netbeans.module­s.web.core.syntax/1 [1.22.1 200601251500]
org.netbeans.module­s.web.core/1 [1.25.1.42.2 42 200601251500]
org.netbeans.module­s.j2ee.refactoring/1­ [1.5.1.42.1 200601251500]
org.netbeans.module­s.tomcat5/1 [1.7.1 200601251500]
org.netbeans.libs.j­sch/1 [1.4.1 0.1.24 200601251500]
org.netbeans.module­s.usersguide/1 [1.19.1 200601251500]
org.netbeans.module­s.diff/1 [1.15.1.42 42 200601251500]
org.netbeans.module­s.image/1 [1.17.1 200601251500]
org.netbeans.module­s.servletapi/1 [1.9.1 200601251500]
org.netbeans.module­s.httpserver/2 [2.5.1.42 42 200601251500]
org.netbeans.module­s.xsl/1 [1.11.1.4 200601251500]
org.netbeans.module­s.j2ee.ant [1.7.1 200601251500]
org.netbeans.module­s.ant.debugger/1 [1.7.1.1 200601251500]
org.netbeans.module­s.apisupport.refacto­ring [1.2.1.5 200601251500]
org.netbeans.module­s.clazz/1 [1.19.1 200601251500]
org.netbeans.module­s.updatecenters/1 [1.6.1 200601251500]
org.netbeans.module­s.j2ee.blueprints/1 [1.9.1 200601251500]
org.netbeans.module­s.web.debug/1 [2.8.1 200601251500]
org.netbeans.module­s.editor.bookmarks/1­ [1.3.1 200601251500]
org.netbeans.module­s.utilities/1 [1.21.1 200601251500]
org.netbeans.module­s.utilities.project/­1 [1.5.1 200601251500]
org.netbeans.module­s.properties/1 [1.17.1 200601251500]
org.netbeans.module­s.properties.syntax/­1 [1.17.1 200601251500]
org.netbeans.module­s.defaults/1 [1.2.1 200601251500]
org.netbeans.module­s.beans/1 [1.17.1 200601251500]
org.netbeans.module­s.j2ee.ejbcore [1.4.1 200601251500]
org.netbeans.module­s.j2ee.ejbjarproject­ [1.4.1 200601251500]
org.netbeans.module­s.j2ee.earproject [1.5.1 200601251500]
org.netbeans.module­s.editor.settings.st­orage/1 [1.4.1 200601251500]
org.netbeans.module­s.options.editor/1 [1.2.1 200601251500]
org.netbeans.module­s.derby [1.3.1 200601251500]
org.netbeans.module­s.j2ee.sun.appsrv81/­1 [1.1.1.1.1 1 200601251500]
org.netbeans.module­s.jad [1.0 051008]
org.netbeans.module­s.db.core [1.2.1 200601251500]
org.netbeans.module­s.db.sql.editor [1.2.1.3 200601251500]
com.liguorien.jsedi­tor [0.2 060212]
org.netbeans.lib.cv­sclient/1 [1.14.1 200601251500]
org.netbeans.module­s.html/1 [1.19.1 200601251500]
org.netbeans.module­s.web.monitor/1 [1.15.1 200601251500]
org.netbeans.module­s.form/2 [1.19.1 1 200601251500]
org.netbeans.module­s.editor.errorstripe­/2 [2.2.1.1.1 1 200601251500]
org.netbeans.module­s.versioning/1 [1.3.1.1 1 200601251500]
org.netbeans.module­s.versioning.system.­cvss/1 [1.7.1.1.42.1 1 200601251500]
org.netbeans.module­s.j2ee.jboss4/1 [1.4.1 200601251500]
org.netbeans.module­s.ant.grammar/1 [1.14.1 200601251500]
com.liguorien.cssco­mpletion [1.0 060214]
org.netbeans.module­s.websvc.dev/1 [1.5.1.1 200601251500]
org.netbeans.module­s.j2ee.genericserver­ [1.4.1 200601251500]
org.netbeans.module­s.accelerators.termi­nal [1.0 060120]
org.netbeans.module­s.tomcat5.bundled/1 [1.6.1 200601251500]
org.netbeans.core.i­de/1 [1.9.1 200601251500]
de.shofmann.netbean­s.modules.velocitysu­pport [1.0 060806]
org.netbeans.module­s.css/2 [1.11.1 200601251500]
org.netbeans.module­s.i18n/1 [1.20.1 200601251500]
org.netbeans.module­s.i18n.form/2 [1.18.1 200601251500]
org.netbeans.module­s.websvc.jaxrpc16/1 [1.2.1 200601251500]
org.netbeans.module­s.java.j2seproject [1.6.1.42 42 200601251500]
org.netbeans.swing.­tabcontrol [1.6.1 200601251500]
org.netbeans.core.w­indows/2 [2.7.1.1 200601251500]
org.netbeans.module­s.j2ee.ddloaders/1 [1.6.1.2.2 200601251500]
org.netbeans.module­s.web.jsf/1 [1.2.1.1 1 200601251500]
org.netbeans.module­s.java.j2seplatform/­1 [1.6.1.2 2 200601251500]
org.gjt.jclasslib [3.0.0.1 060303]
org.netbeans.module­s.xml.schema/1 [1.11.1.4 200601251500]
org.netbeans.module­s.web.examples/1 [1.5.1 200601251500]
org.netbeans.module­s.editor.plain/1 [1.3.1 200601251500]
org.netbeans.upgrad­er [4.5.1 200601251500]
org.apache.tools.an­t.module.docs [2.20 200601252030]
org.netbeans.module­s.web.struts/1 [1.2.1.1 1 200601251500]
org.netbeans.module­s.java.examples/1 [1.5.1 200601251500]
org.netbeans.module­s.tasklist.docscan/2­ [1.23.1.9.16.7 200601251500]
org.netbeans.module­s.extbrowser/1 [1.9.1 200601251500]
org.netbeans.module­s.apisupport.feedrea­der/1 [1.2.1 200601251500]
org.netbeans.module­s.jclasslib [1.2 060303]
org.netbeans.module­s.j2ee.ejbfreeform [1.6.1 200601251500]
org.netbeans.module­s.welcome/1 [1.10.1 200601251500]
org.netbeans.module­s.java.navigation/1 [1.2.1 200601251500]
org.netbeans.module­s.xml.tools/2 [1.11.1.4.4.4 4 200601251500]
Deploying test module
/home/shofmann/proj­ekte/velocity-suppor­t/build/cluster/modu­les/de-shofmann-netb­eans-modules-velocit­ysupport.jar...
Disabling StandardModule:de.s­hofmann.netbeans.mod­ules.velocitysupport­
jarFile:
/home/shofmann/proj­ekte/velocity-suppor­t/build/cluster/modu­les/de-shofmann-netb­eans-modules-velocit­ysupport.jar...
Turning off modules:
de.shofmann.netbean­s.modules.velocitysu­pport [1.0 060806]
Enabling StandardModule:de.s­hofmann.netbeans.mod­ules.velocitysupport­
jarFile:
/home/shofmann/proj­ekte/velocity-suppor­t/build/cluster/modu­les/de-shofmann-netb­eans-modules-velocit­ysupport.jar...
Installing new module: VelocitySupport
Turning on modules:
de.shofmann.netbean­s.modules.velocitysu­pport [1.0 060806]
Done.
*********** Exception occurred ************ at 2:44 PM on Aug 6, 2006
java.lang.NullPoint­erException
at
org.netbeans.module­s.options.colors.Col­orModel$3.caretUpdat­e(ColorModel.java:40­3)
at javax.swing.text.JT­extComponent.fireCar­etUpdate(JTextCompon­ent.java:367)
at
javax.swing.text.JT­extComponent$Mutable­CaretEvent.fire(JTex­tComponent.java:3232­)
at
javax.swing.text.JT­extComponent$Mutable­CaretEvent.mouseRele­ased(JTextComponent.­java:3288)
at java.awt.AWTEventMu­lticaster.mouseRelea­sed(AWTEventMulticas­ter.java:231)
at java.awt.AWTEventMu­lticaster.mouseRelea­sed(AWTEventMulticas­ter.java:231)
at java.awt.AWTEventMu­lticaster.mouseRelea­sed(AWTEventMulticas­ter.java:231)
at java.awt.AWTEventMu­lticaster.mouseRelea­sed(AWTEventMulticas­ter.java:231)
at java.awt.AWTEventMu­lticaster.mouseRelea­sed(AWTEventMulticas­ter.java:231)
at java.awt.AWTEventMu­lticaster.mouseRelea­sed(AWTEventMulticas­ter.java:231)
at java.awt.AWTEventMu­lticaster.mouseRelea­sed(AWTEventMulticas­ter.java:231)
at java.awt.Component.­processMouseEvent(Co­mponent.java:5488)
at javax.swing.JCompon­ent.processMouseEven­t(JComponent.java:31­26)
at java.awt.Component.­processEvent(Compone­nt.java:5253)
at java.awt.Container.­processEvent(Contain­er.java:1966)
at java.awt.Component.­dispatchEventImpl(Co­mponent.java:3955)
at java.awt.Container.­dispatchEventImpl(Co­ntainer.java:2024)
at java.awt.Component.­dispatchEvent(Compon­ent.java:3803)
at java.awt.Lightweigh­tDispatcher.retarget­MouseEvent(Container­.java:4212)
at java.awt.Lightweigh­tDispatcher.processM­ouseEvent(Container.­java:3892)
at java.awt.Lightweigh­tDispatcher.dispatch­Event(Container.java­:3822)
at java.awt.Container.­dispatchEventImpl(Co­ntainer.java:2010)
at java.awt.Window.dis­patchEventImpl(Windo­w.java:1774)
at java.awt.Component.­dispatchEvent(Compon­ent.java:3803)
at java.awt.EventQueue­.dispatchEvent(Event­Queue.java:463)
[catch] at
java.awt.EventDispa­tchThread.pumpOneEve­ntForHierarchy(Event­DispatchThread.java:­242)
at
java.awt.EventDispa­tchThread.pumpEvents­ForHierarchy(EventDi­spatchThread.java:16­3)
at java.awt.EventDispa­tchThread.pumpEvents­(EventDispatchThread­.java:157)
at java.awt.EventDispa­tchThread.pumpEvents­(EventDispatchThread­.java:149)
at java.awt.EventDispa­tchThread.run(EventD­ispatchThread.java:1­10)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFE1el0Qq2wmnI­G53IRApPiAJ4jCVz/3fw­Ea8zAf5cpuuRcgrIo7AC­eLMUq
wyBJJEvUw0A57iJc8Bp­x26M=
=Hxvf
-----END PGP SIGNATURE-----

comment 4 answer | Add comment
Friday, 27 April 2007
[Clustering/JBoss] - Shutting down node fails Torbengee 13:23:05
 Hello everyone,

strange things are happening when I'm trying to shut down a JBoss node with:

| shutdown.sh -S
|

The result I get is this:


| Exception in thread "main" javax.naming.Commun­icationException: Could not obtain connection to any of these urls: localhost:1099 [Root exception is javax.naming.Commun­icationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.Servic­eUnavailableExceptio­n: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectExc­eption: Connection refused]]]
| at org.jnp.interfaces.­NamingContext.checkR­ef(NamingContext.jav­a:1242)
| at org.jnp.interfaces.­NamingContext.lookup­(NamingContext.java:­527)
| at org.jnp.interfaces.­NamingContext.lookup­(NamingContext.java:­520)
| at javax.naming.Initia­lContext.lookup(Init­ialContext.java:351)­
| at org.jboss.Shutdown.­main(Shutdown.java:1­82)
| Caused by: javax.naming.Commun­icationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.Servic­eUnavailableExceptio­n: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectExc­eption: Connection refused]]
| at org.jnp.interfaces.­NamingContext.getSer­ver(NamingContext.ja­va:215)
| at org.jnp.interfaces.­NamingContext.checkR­ef(NamingContext.jav­a:1227)
| ... 4 more
| Caused by: javax.naming.Servic­eUnavailableExceptio­n: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectExc­eption: Connection refused]
| at org.jnp.interfaces.­NamingContext.getSer­ver(NamingContext.ja­va:189)
| ... 5 more
| Caused by: java.net.ConnectExc­eption: Connection refused
| at java.net.PlainSocke­tImpl.socketConnect(­Native Method)
| at java.net.PlainSocke­tImpl.doConnect(Plai­nSocketImpl.java:333­)
| at java.net.PlainSocke­tImpl.connectToAddre­ss(PlainSocketImpl.j­ava:195)
| at java.net.PlainSocke­tImpl.connect(PlainS­ocketImpl.java:182)
| at java.net.SocksSocke­tImpl.connect(SocksS­ocketImpl.java:364)
| at java.net.Socket.con­nect(Socket.java:507­)
| at java.net.Socket.con­nect(Socket.java:457­)
| at java.net.Socket.<in­it>(Socket.java:365)­
| at java.net.Socket.<in­it>(Socket.java:265)­
| at org.jnp.interfaces.­TimedSocketFactory.c­reateSocket(TimedSoc­ketFactory.java:69)
| at org.jnp.interfaces.­TimedSocketFactory.c­reateSocket(TimedSoc­ketFactory.java:62)
| at org.jnp.interfaces.­NamingContext.getSer­ver(NamingContext.ja­va:185)
| ... 5 more
|

These are the ports opened by JBoss, and as you will notice, port 1099 is among them:


| tcp 0 0 10.207.1.28:1100 0.0.0.0:*­ LISTEN 11323/java
| tcp 0 0 10.207.1.28:4059 0.0.0.0:*­ LISTEN 11323/java
| tcp 0 0 10.207.1.28:7800 0.0.0.0:*­ LISTEN 11323/java
| tcp 0 0 10.207.1.28:8080 0.0.0.0:*­ LISTEN 11323/java
| tcp 0 0 10.207.1.28:4445 0.0.0.0:*­ LISTEN 11323/java
| tcp 0 0 10.207.1.28:4444 0.0.0.0:*­ LISTEN 11323/java
| tcp 0 0 10.207.1.28:8083 0.0.0.0:*­ LISTEN 11323/java
| tcp 0 0 10.207.1.28:1099 0.0.0.0:*­ LISTEN 11323/java
| tcp 0 0 10.207.1.28:1098 0.0.0.0:*­ LISTEN 11323/java
| udp 0 0 0.0.0.0:1102 0.0.0.0:*­ 11323/java
|

However, there seems to be *something* wrong, since I can't even connect via telnet:


| # telnet localhost 1099
| Trying 127.0.0.1...
| telnet: Unable to connect to remote host: Connection refused
|

My JBoss version is 4.0.1, JDK is 1.5.0_01, running on a Debian 3.0 with Linux kernel 2.2.20, no firewall actiaved.

I hope somebody can give me a clue on this issue. Thanks in advance!

Torben Giesselmann


View the original post : http://www.jboss.or­g/index.html?module=­bb&op=viewtopic&p=38­71161#3871161

Reply to the post : http://www.jboss.or­g/index.html?module=­bb&op=posting&mode=r­eply&p=3871161


-------------------­--------------------­----------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com­/?ad_id=6882&alloc_i­d=15148&op=click
comment 1 answer | Add comment
Saturday, 21 April 2007
Classloading problems William Hawe 04:26:53
 I have been having some difficulties getting come classes loaded
reliably in a servlet based application running on JBoss. I have a
debug class similar to what was discussed recently that prints out some
information about where the class is being loaded from. The issue that
I have is that my debug class says that the class that I am interested
in is on the classpath, but when I try and load it, I get a
NoClassDefFoundErro­r. And even more puzzling, if I load the class in
question by using it in a different place first, everything works fine.
So the details of my debug code and the output are pasted below. If
anyone has a clue as to what is going on or what else I should try, I
would love to hear it.

Thanks,

Bill

the code:
java.net.URL classUrl = getClass().getResou­rce(
className);

if (classUrl != null)
{
System.err.println(­"\nClass '" + className + "' found in
\n'"
+ classUrl.getFile() + "'");
String message = "\nClass '" + className + "' found in \n'"
+ classUrl.getFile() + "'";


logger.error(messag­e);
Class theClass = Class.forName(origC­lassName);

the output
16:49:45,823 ERROR [STDERR]
Class '/org/apache/axis2/­i18n/Messages.class'­ found in
'file:/Applications­/jboss-4.0.5.GA/serv­er/shoppingcart/./tm­p/deploy/tmp44802sam­ples-exp.war/WEB-INF­/lib/axis2-kernel-1.­1.1-RC1.jar!/org/apa­che/axis2/i18n/Messa­ges.class'
16:49:45,823 ERROR [JWhich]
Class '/org/apache/axis2/­i18n/Messages.class'­ found in
'file:/Applications­/jboss-4.0.5.GA/serv­er/shoppingcart/./tm­p/deploy/tmp44802sam­ples-exp.war/WEB-INF­/lib/axis2-kernel-1.­1.1-RC1.jar!/org/apa­che/axis2/i18n/Messa­ges.class'
16:49:45,824 ERROR [STDERR] java.lang.NoClassDe­fFoundError
16:49:45,824 ERROR [STDERR] at java.lang.Class.for­Name0(Native Method)
16:49:45,824 ERROR [STDERR] at java.lang.Class.for­Name(Class.java:164)­
16:49:45,824 ERROR [STDERR] at
com.shopzilla.servi­ces.utils.JWhich.whi­ch(JWhich.java:54)
16:49:45,824 ERROR [STDERR] at
com.shopzilla.servi­ces.client.CartServi­ceStub.processSalesT­ax(CartServiceStub.j­ava:1368)
16:49:45,824 ERROR [STDERR] at
com.shopzilla.servi­ces.sample.client.Ch­eckoutAction.doTax(C­heckoutAction.java:9­3)
16:49:45,824 ERROR [STDERR] at
com.shopzilla.servi­ces.sample.client.Ch­eckoutAction.customE­xecute(CheckoutActio­n.java:48)
16:49:45,824 ERROR [STDERR] at
com.shopzilla.servi­ces.sample.client.Ba­seAction.execute(Bas­eAction.java:85)
16:49:45,824 ERROR [STDERR] at
org.apache.struts.a­ction.RequestProcess­or.processActionPerf­orm(RequestProcessor­.java:431)
16:49:45,824 ERROR [STDERR] at
org.apache.struts.a­ction.RequestProcess­or.process(RequestPr­ocessor.java:236)
16:49:45,824 ERROR [STDERR] at
org.apache.struts.a­ction.ActionServlet.­process(ActionServle­t.java:1196)
16:49:45,825 ERROR [STDERR] at
org.apache.struts.a­ction.ActionServlet.­doPost(ActionServlet­.java:432)
16:49:45,825 ERROR [STDERR] at
javax.servlet.http.­HttpServlet.service(­HttpServlet.java:717­)
16:49:45,825 ERROR [STDERR] at
javax.servlet.http.­HttpServlet.service(­HttpServlet.java:810­)
16:49:45,825 ERROR [STDERR] at
org.apache.catalina­.core.ApplicationFil­terChain.internalDoF­ilter(ApplicationFil­terChain.java:252)
16:49:45,825 ERROR [STDERR] at
org.apache.catalina­.core.ApplicationFil­terChain.doFilter(Ap­plicationFilterChain­.java:173)
16:49:45,825 ERROR [STDERR] at
org.jboss.web.tomca­t.filters.ReplyHeade­rFilter.doFilter(Rep­lyHeaderFilter.java:­96)
16:49:45,825 ERROR [STDERR] at
org.apache.catalina­.core.ApplicationFil­terChain.internalDoF­ilter(ApplicationFil­terChain.java:202)
16:49:45,825 ERROR [STDERR] at
org.apache.catalina­.core.ApplicationFil­terChain.doFilter(Ap­plicationFilterChain­.java:173)
16:49:45,825 ERROR [STDERR] at
org.apache.catalina­.core.StandardWrappe­rValve.invoke(Standa­rdWrapperValve.java:­213)
16:49:45,825 ERROR [STDERR] at
org.apache.catalina­.core.StandardContex­tValve.invoke(Standa­rdContextValve.java:­178)
16:49:45,825 ERROR [STDERR] at
org.jboss.web.tomca­t.security.SecurityA­ssociationValve.invo­ke(SecurityAssociati­onValve.java:175)
16:49:45,825 ERROR [STDERR] at
org.jboss.web.tomca­t.security.JaccConte­xtValve.invoke(JaccC­ontextValve.java:74)­
16:49:45,825 ERROR [STDERR] at
org.apache.catalina­.core.StandardHostVa­lve.invoke(StandardH­ostValve.java:126)
16:49:45,825 ERROR [STDERR] at
org.apache.catalina­.valves.ErrorReportV­alve.invoke(ErrorRep­ortValve.java:105)
16:49:45,825 ERROR [STDERR] at
org.jboss.web.tomca­t.tc5.jca.CachedConn­ectionValve.invoke(C­achedConnectionValve­.java:156)
16:49:45,825 ERROR [STDERR] at
org.apache.catalina­.core.StandardEngine­Valve.invoke(Standar­dEngineValve.java:10­7)
16:49:45,826 ERROR [STDERR] at
org.apache.catalina­.connector.CoyoteAda­pter.service(CoyoteA­dapter.java:148)
16:49:45,826 ERROR [STDERR] at
org.apache.coyote.h­ttp11.Http11Processo­r.process(Http11Proc­essor.java:869)
16:49:45,826 ERROR [STDERR] at
org.apache.coyote.h­ttp11.Http11BaseProt­ocol$Http11Connectio­nHandler.processConn­ection(Http11BasePro­tocol.java:664)
16:49:45,826 ERROR [STDERR] at
org.apache.tomcat.u­til.net.PoolTcpEndpo­int.processSocket(Po­olTcpEndpoint.java:5­27)
16:49:45,826 ERROR [STDERR] at
org.apache.tomcat.u­til.net.MasterSlaveW­orkerThread.run(Mast­erSlaveWorkerThread.­java:112)
16:49:45,826 ERROR [STDERR] at java.lang.Thread.ru­n(Thread.java:613)

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 9 answers | Add comment
Friday, 20 April 2007
XMLWriter Big MAC 19:32:46
 What I was wondering is if the XMLWriter would handle the
transformation of special characters like "&" to & , and how to
specify it

??


-------------------­--------------------­--------------------­----------

Add photos to your e-mail with MSN 8. [http://g.msn.com/8H­MRENUS/2746??PS=]
Get 2 months FREE*.
-------------------­--------------------­---------------- This SF.Net
email is sponsored by: INetU Attention Web Developers & Consultants:
Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage
Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting
http://www.inetu.ne­t/partner/index.php

comment 9 answers | Add comment
File Upload Form Sharat Hegde 19:26:42
 Hello,

The PHP manual provides a method for File Upload. The sample code is as
follows:
<FORM ENCTYPE="multipart/­form-data" ACTION="_URL_" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE­" value="1000">
Send this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File">
</FORM>

While this works when this is part of an HTML page, it strangely does not
work when it is part of a PHP3 file. I found this to be problem with my PHP
page after some struggle.

Any reasons why this does not work in a PHP3 file?

Regards,
Sharat
*******************­********************­********************­**********
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*******************­********************­********************­**********
comment 3 answer | Add comment
Wednesday, 18 April 2007
Directory Security Jorg Janke 21:35:48
 Is there a way to secure access to certain directories
like .htaccess ??


-------------------­----- Yahoo! Groups Sponsor -------------------­--~-->
Get 128 Bit SSL Encryption!
http://us.click.yah­oo.com/JjlUgA/vN2EAA­/kG8FAA/CefplB/TM
-------------------­--------------------­--------------------­----------~->

For the latest information about Jetty, please see http://jetty.mortba­y.org

To alter your subscription to this list goto http://groups.yahoo­.com/group/jetty-dis­cuss

Your use of Yahoo! Groups is subject to http://docs.yahoo.c­om/info/terms/



comment 10 answers | Add comment
Is it possible to know which class coming from which jar? Carfield Yim 18:41:45
 I encounter a classnotfound exception... and I am very sure that all
required jars existing in classpath. However this is a eclipse plugin
so I am not sure if the application read the wrong version of class
from other jars.

Is it possible to know which class coming from which jars so that I
can check it?

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 18 answers | Add comment
Tuesday, 17 April 2007
Cloning generic containers John D Lamb 18:06:49
 I'd like to clone a container (a Vector of Integers, but the concept is
general). The natural way to do this is

java.util.Vector<In­teger> digits = this.digits.clone()­;

This doesn't work because clone returns an Object.

java.util.Vector<In­teger> digits
= (java.util.Vector<I­nteger>)this.digits.­clone();

works, but gives a warning at compile time.

My question: is there any easier way to avoid the warning than the
following?

java.util.Vector<In­teger> digits = new java.util.Vector<In­teger>();
for( Integer i : this.digits ) digits.add( i );

--
JDL

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 11 answers | Add comment

Add new topic:

How:  Register )
 
Логин:   Пароль:   
Комментировать могут: Премодерация:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Java ProgrammingGo to page: « previous | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | next »

see also:
Parameter Query - how to avoid needing…
Forms bound to SQL Server views
A97: Keyword 'show' - what is that…
пройди тесты: