How do I add a photo to my comment or blog entry?
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: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:
Yesterday — Friday, 16 May 2008
[JBoss jBPM] - Problem during deploying my own bpel process in jbpm bpel (B Fabricio.Nogueira 04:57:58
 Hello all,

I want to deploy a very simple process in jbpm Bpel. I could configure and test helloworld example. Now, I have a web service (in my localhost using axis) that only receives a string and replies it with a gretting message. I modelled this process using JDeveloper from Oracle due to facility. This process receives the string and call the web service to get the gretting message.

My bpel process is this:

<!--
| ///////////////////­////////////////////­////////////////////­////////////////////­//////////////
| // Oracle JDeveloper BPEL Designer
| //
| // Created: Thu Dec 08 22:17:32 BRST 2005
| // Author: Fasilva
| // Purpose: Synchronous BPEL Process
| ///////////////////­////////////////////­////////////////////­////////////////////­//////////////
| -->
| <process name="myEcho" targetNamespace="ht­tp://xmlns.oracle.co­m/myEcho" xmlns="http://schem­as.xmlsoap.org/ws/20­03/03/business-proce­ss/" xmlns:xsd="http://w­ww.w3.org/2001/XMLSc­hema" xmlns:bpws="http://­schemas.xmlsoap.org/­ws/2003/03/business-­process/" xmlns:xp20="http://­www.oracle.com/XSL/T­ransform/java/oracle­.tip.pc.services.fun­ctions.Xpath20" xmlns:ns1="http://l­ocalhost:8081/axis/m­yEcho.jws" xmlns:ldap="http://­schemas.oracle.com/x­path/extension/ldap"­ xmlns:bpelx="http:/­/schemas.oracle.com/­bpel/extension" xmlns:client="http:­//xmlns.oracle.com/m­yEcho" xmlns:ora="http://s­chemas.oracle.com/xp­ath/extension" xmlns:orcl="http://­www.oracle.com/XSL/T­ransform/java/oracle­.tip.pc.services.fun­ctions.ExtFunc">
| <partnerLinks>
| <partnerLink name="client" partnerLinkType="cl­ient:myEcho" myRole="myEchoProvi­der"/>
| <partnerLink myRole="myEcho_Role­" name="myEcho" partnerRole="myEcho­_Role" partnerLinkType="ns­1:myEcho_PL"/>
| </partnerLinks>
| <variables>
| <variable name="inputVariable­" messageType="client­:myEchoRequestMessag­e"/>
| <variable name="outputVariabl­e" messageType="client­:myEchoResponseMessa­ge"/>
| <variable name="Invoke_1_echo­_InputVariable" messageType="ns1:ec­hoRequest"/>
| <variable name="Invoke_1_echo­_OutputVariable" messageType="ns1:ec­hoResponse"/>
| </variables>
| <sequence name="main">
| <receive name="receiveInput"­ partnerLink="client­" portType="client:my­Echo" operation="process"­ variable="inputVari­able" createInstance="yes­"/>
| <scope name="Scope_1">
| <sequence name="Sequence_1">
| <assign name="InEcho">
| <copy>
| <from variable="inputVari­able" part="payload" query="/client:myEc­hoProcessRequest/cli­ent:input"/>
| <to variable="Invoke_1_­echo_InputVariable" part="s"/>
| </copy>
| </assign>
| <invoke name="myEcho" partnerLink="myEcho­" portType="ns1:myEch­o" operation="echo" inputVariable="Invo­ke_1_echo_InputVaria­ble" outputVariable="Inv­oke_1_echo_OutputVar­iable"/>
| <assign name="EchoOut">
| <copy>
| <from variable="Invoke_1_­echo_OutputVariable"­ part="echoReturn"/>­
| <to variable="outputVar­iable" part="payload" query="/client:myEc­hoProcessResponse/cl­ient:result"/>
| </copy>
| </assign>
| </sequence>
| </scope>
| <reply name="replyOutput" partnerLink="client­" portType="client:my­Echo" operation="process"­ variable="outputVar­iable"/>
| </sequence>
| </process>
|

And the wsdl for this process is:

<?xml version="1.0" encoding="UTF-8"?>
| <definitions name="myEcho"
| targetNamespace="ht­tp://xmlns.oracle.co­m/myEcho"
| xmlns="http://schem­as.xmlsoap.org/wsdl/­"
| xmlns:client="http:­//xmlns.oracle.com/m­yEcho"
| xmlns:p­lnk="http://­schemas.xmlsoap.org/­ws/2003/05/partner-l­ink/">
| <types>
| <schema attributeFormDefaul­t="qualified"
| elementFormDefault=­"qualified"
| targetNamespace="ht­tp://xmlns.oracle.co­m/myEcho"
| xmlns="http://www.w­3.org/2001/XMLSchema­">
| <element name="myEchoProcess­Request">
| <complexType>
| <sequence>
| <element name="input" type="string"/>
| </sequence>
| </complexType>
| </element>
| <element name="myEchoProcess­Response">
| <complexType>
| <sequence>
| <element name="result" type="string"/>
| </sequence>
| </complexType>
| </element>
| </schema>
| </types>
|
| <message name="myEchoRequest­Message">
| <part name="payload" element="client:myE­choProcessRequest"/>­
| </message>
| <message name="myEchoRespons­eMessage">
| <part name="payload" element="client:myE­choProcessResponse"/­>
| </message>
|
|
| <portType name="myEcho">
| <operation name="process">
| <input message="client:myE­choRequestMessage" />
| <output message="client:myE­choResponseMessage"/­>
| </operation>
| </portType>
| <plnk:p­artnerLinkTy­pe name="myEcho">
| <plnk:role name="myEchoProvide­r">
| <plnk:p­ortType name="client:myEcho­"/>
| </plnk:role>
| </plnk:p­artnerLinkT­ype>
| </definitions>


I set build.properties, hibernate.propertie­s and build.xml to keep up with my configuration.After­ that I could run the command "ant pack-definition" without problems, But when I need to run the next command "ant deploy-definition".­ I'm getting the following error:

[deploypar] 20:55:23,798 DEBUG BpelReader : upgraded bpel document: myEcho.bpel
| [deploypar] 20:55:23,808 ERROR ProblemCollector : myEcho.bpel bpel process is invalid.
| [deploypar] org.jbpm.bpel.xml.B­pelException: message type ns1:echoRequest not found [/process/variables/­variable[3]]
| [deploypar] at org.jbpm.bpel.xml.B­pelReader.getMessage­TypeInfo(BpelReader.­java:620)
| [deploypar] at org.jbpm.bpel.xml.B­pelReader.getTypeInf­o(BpelReader.java:59­7)
| [deploypar] at org.jbpm.bpel.xml.B­pelReader.readVariab­le(BpelReader.java:5­80)
| [deploypar] at org.jbpm.bpel.xml.B­pelReader.readVariab­les(BpelReader.java:­561)
| [deploypar] at org.jbpm.bpel.xml.B­pelReader.readScope(­BpelReader.java:404)­
| [deploypar] at org.jbpm.bpel.xml.B­pelReader.read(BpelR­eader.java:206)
| [deploypar] at org.jbpm.bpel.xml.B­pelReader.read(BpelR­eader.java:162)
| [deploypar] at org.jbpm.bpel.par.B­pelArchiveParser.rea­dFromArchive(BpelArc­hiveParser.java:28)
| [deploypar] at org.jbpm.jpdl.par.P­rocessArchive.parseP­rocessDefinition(Pro­cessArchive.java:46)­
| [deploypar] at org.jbpm.graph.def.­ProcessDefinition.pa­rseParZipInputStream­(ProcessDefinition.j­ava:154)
| [deploypar] at org.jbpm.jpdl.par.P­rocessArchiveDeploye­r.deployZipInputStre­am(ProcessArchiveDep­loyer.java:46)
| [deploypar] at org.jbpm.ant.Deploy­ParTask.deploy(Deplo­yParTask.java:69)
| [deploypar] at org.jbpm.ant.Deploy­ParTask.execute(Depl­oyParTask.java:57)
| [deploypar] at org.apache.tools.an­t.UnknownElement.exe­cute(UnknownElement.­java:275)
| [deploypar] at org.apache.tools.an­t.Task.perform(Task.­java:364)
| [deploypar] at org.apache.tools.an­t.Target.execute(Tar­get.java:341)
| [deploypar] at org.apache.tools.an­t.Target.performTask­s(Target.java:369)
| [deploypar] at org.apache.tools.an­t.Project.executeSor­tedTargets(Project.j­ava:1216)
| [deploypar] at org.apache.tools.an­t.Project.executeTar­get(Project.java:118­5)
| [deploypar] at org.apache.tools.an­t.helper.DefaultExec­utor.executeTargets(­DefaultExecutor.java­:40)
| [deploypar] at org.apache.tools.an­t.Project.executeTar­gets(Project.java:10­68)
| [deploypar] at org.apache.tools.an­t.Main.runBuild(Main­.java:668)
| [deploypar] at org.apache.tools.an­t.Main.startAnt(Main­.java:187)
| [deploypar] at org.apache.tools.an­t.launch.Launcher.ru­n(Launcher.java:246)­
| [deploypar] at org.apache.tools.an­t.launch.Launcher.ma­in(Launcher.java:67)­
| [deploypar] 20:55:23,933 DEBUG ProcessArchiveDeplo­yer : starting transaction to deploy process BpelDefinition(myEc­ho)
| [deploypar] 20:55:24,840 DEBUG ProcessArchiveDeplo­yer : flushing...
| [deploypar] 20:55:25,265 DEBUG ProcessArchiveDeplo­yer : committing transaction to deploy process BpelDefinition(myEc­ho)
|

I can't understand why that message " message type ns1:echoRequest not found [/process/variables/­variable[3]]" is being showed.

Could you help me to understand it please?

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

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


-------------------­--------------------­----------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com­/?ad_id=7637&alloc_i­d=16865&op=click
Optionscomment 2 answer | Add comment
Monday, 12 May 2008
System.currentTimeMi­llis() on SMP systems Rodrick Brown 06:58:48
 I'm stress testing my backend server and I wrote a small client application
that uses System.currentTimeM­illis() on various operations the results dont
seem to be consistent with what I would expect my system is a 8 core Intel
x64 class machine running 64 Bit linux. I heard about issues with
System.currentTimeM­illis() on SMP machines is this true? Is there a better
approach I should be taking?

--
[ Rodrick R. Brown ]

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

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

Optionscomment 8 answers | Add comment
Thursday, 8 May 2008
[Messaging, JMS & JBossMQ] - How to configure the number of MDB instances for a queue to Rameshsr 14:52:19
 I have an MDB listener (onMessage), meant for listening for messages from a particular queue. I want the messages in the queue to be processed serially in the order in which they arrived. This means, I can't have multiple instances of the MDB listensing on this queue. So, I want to restrict the number of MDB instances listening to this queue to 1. Is this configurable in JBoss and how do I do this?


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

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


-------------------­--------------------­----------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=103432&bid=2304­86&dat=121642
Optionscomment 1 answer | Add comment
HTML to PDF Venkatasuresh Annapu 12:21:11
 Hello ,

There is a requirement in my java application where I need to convert .html
to .PDF

Can any body give me a solution how can achieve this .

Thanks in Advance
Venkata Suresh


-------------------­--------------------­----------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.co­m/sf
Optionscomment 85 answers | Add comment
Hibernate and Multiple Session Factories Matt Johnston 09:35:40
 My application is needing to connect to two seperate databases. According to Hibernate documentation, I will need to use seperate session factories.

Right now I am using the HibernateIntercepto­r written by Gavin King (http://www.hiberna­te.org/hib_docs/onli­ne/adminapp/) Unfortunately, it can only grab one session factory for Hibernate.

Has anyone found a way to easily use more than one hibernate session factory?

-------------------­--------------------­--------------------­----------
Posted via Jive Forums
http://forums.opens­ymphony.com/thread.j­spa?threadID=5011&me­ssageID=11971#11971


-------------------­--------------------­--------------------­----------
To unsubscribe, e-mail: users-unsubscribe@w­ebwork.dev.java.net
For additional commands, e-mail: users-help@webwork.­dev.java.net


Optionscomment 5 answers | Add comment
Question about broken pipe Michael Szalay 04:52:03
 
Hi all

I've got a question about an exception message I often see in the log of my Jetty installation (see stack trace below). Its in a servlet reading a blob out of a database and writing the byte-stream back into the servlet output stream. It works fine, I've never heard any complaints from users. Does
anyone know if this message can be ignored?

Thanks for an answer

Regards

Michael




EOFException(java.n­et.SocketException: Broken pipe)
at org.mortbay.http.Bu­fferedOutputStream.f­lush(BufferedOutputS­tream.java:196)
at org.mortbay.http.Ch­unkingOutputStream.f­lush(ChunkingOutputS­tream.java:69)
at org.mortbay.http.Bu­fferedOutputStream.w­rite(BufferedOutputS­tream.java:143)
at org.mortbay.http.Ht­tpOutputStream.write­(HttpOutputStream.ja­va:438)
at org.mortbay.http.Ht­tpOutputStream.write­(HttpOutputStream.ja­va:430)
at org.mortbay.jetty.s­ervlet.ServletOut.wr­ite(ServletOut.java:­35)
at ImageServlet.proces­sRequest(Unknown Source)
at ImageServlet.doGet(­Unknown Source)
at javax.servlet.http.­HttpServlet.service(­HttpServlet.java:740­)
at javax.servlet.http.­HttpServlet.service(­HttpServlet.java:853­)
at org.mortbay.jetty.s­ervlet.ServletHolder­.handle(ServletHolde­r.java:360)
at org.mortbay.jetty.s­ervlet.WebApplicatio­nHandler.dispatch(We­bApplicationHandler.­java:294)
at org.mortbay.jetty.s­ervlet.ServletHandle­r.handle(ServletHand­ler.java:558)
at org.mortbay.http.Ht­tpContext.handle(Htt­pContext.java:1723)
at org.mortbay.jetty.s­ervlet.WebApplicatio­nContext.handle(WebA­pplicationContext.ja­va:507)
at org.mortbay.http.Ht­tpContext.handle(Htt­pContext.java:1673)
at org.mortbay.http.Ht­tpServer.service(Htt­pServer.java:863)
at org.mortbay.http.Ht­tpConnection.service­(HttpConnection.java­:775)
at org.mortbay.http.Ht­tpConnection.handleN­ext(HttpConnection.j­ava:939)
at org.mortbay.http.Ht­tpConnection.handle(­HttpConnection.java:­792)
at org.mortbay.http.So­cketListener.handleC­onnection(SocketList­ener.java:201)
at org.mortbay.util.Th­readedServer.handle(­ThreadedServer.java:­289)
at org.mortbay.util.Th­readPool$PoolThread.­run(ThreadPool.java:­455)
getTargetException(­):
java.net.SocketExce­ption: Broken pipe
at java.net.SocketOutp­utStream.socketWrite­0(Native Method)
at java.net.SocketOutp­utStream.socketWrite­(SocketOutputStream.­java:92)
at java.net.SocketOutp­utStream.write(Socke­tOutputStream.java:1­36)
at org.mortbay.http.Nu­llableOutputStream.w­rite(NullableOutputS­tream.java:119)
at org.mortbay.util.By­teBufferOutputStream­.writeTo(ByteBufferO­utputStream.java:160­)
at org.mortbay.http.Bu­fferedOutputStream.f­lush(BufferedOutputS­tream.java:192)
at org.mortbay.http.Ch­unkingOutputStream.f­lush(ChunkingOutputS­tream.java:69)
at org.mortbay.http.Bu­fferedOutputStream.w­rite(BufferedOutputS­tream.java:143)
at org.mortbay.http.Ht­tpOutputStream.write­(HttpOutputStream.ja­va:438)
at org.mortbay.http.Ht­tpOutputStream.write­(HttpOutputStream.ja­va:430)
at org.mortbay.jetty.s­ervlet.ServletOut.wr­ite(ServletOut.java:­35)
at ImageServlet.proces­sRequest(Unknown Source)
at ImageServlet.doGet(­Unknown Source)
at javax.servlet.http.­HttpServlet.service(­HttpServlet.java:740­)
at javax.servlet.http.­HttpServlet.service(­HttpServlet.java:853­)
at org.mortbay.jetty.s­ervlet.ServletHolder­.handle(ServletHolde­r.java:360)
at org.mortbay.jetty.s­ervlet.WebApplicatio­nHandler.dispatch(We­bApplicationHandler.­java:294)
at org.mortbay.jetty.s­ervlet.ServletHandle­r.handle(ServletHand­ler.java:558)
at org.mortbay.http.Ht­tpContext.handle(Htt­pContext.java:1723)
at org.mortbay.jetty.s­ervlet.WebApplicatio­nContext.handle(WebA­pplicationContext.ja­va:507)
at org.mortbay.http.Ht­tpContext.handle(Htt­pContext.java:1673)
at org.mortbay.http.Ht­tpServer.service(Htt­pServer.java:863)
at org.mortbay.http.Ht­tpConnection.service­(HttpConnection.java­:775)
at org.mortbay.http.Ht­tpConnection.handleN­ext(HttpConnection.j­ava:939)
at org.mortbay.http.Ht­tpConnection.handle(­HttpConnection.java:­792)
at org.mortbay.http.So­cketListener.handleC­onnection(SocketList­ener.java:201)
at org.mortbay.util.Th­readedServer.handle(­ThreadedServer.java:­289)
at org.mortbay.util.Th­readPool$PoolThread.­run(ThreadPool.java:­455)




-------------------­--------------------­----------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com­/?ad_ide95&alloc_id­396&op=click
Optionscomment 7 answers | Add comment
Wednesday, 7 May 2008
javacvs client: PServerConnection not connecting. Vadiraj Deshpande 14:08:00
 Hi ,

I wrote a method to connect to a CVS server like below. When I run this
code, I got the following exception:

===================­====================­====================­====================­=======
org.netbeans.lib.cv­sclient.connection.A­uthenticationExcepti­on:
Authentication failed. Response from server was: "cvs [pserve".
at
org.netbeans.lib.cv­sclient.connection.P­ServerConnection.ope­nConnection(
PServerConnection.j­ava:238)
===================­====================­====================­====================­=======

I checked the cvs protocol<http://www­.delorie.com/gnu/doc­s/cvs/cvsclient_3.ht­ml>
I do not see why the connection returns : "cvs [pserve".
obviously something wrong going on with the connection code..

Can somebody help me here? All the input data are proper and CVSRoot object
has the right values.


The code follows:

======================================================================================

private static PServerConnection getPServerCVSConnection(CVSRoot cvsRoot)
throws
AuthenticationException, CommandAbortedException {
System.out.println("Got cvsroot as : " + cvsRoot.toString());//DEBUG
System.out.println("hostname: " + cvsRoot.getHostName());//DEBUG
System.out.println("Password : " +
getEncodedCVSPassword(cvsRoot));//DEBUG
System.out.println("username : " + cvsRoot.getUserName());//DEBUG
System.out.println("repository: " + cvsRoot.getRepository());//DEBUG

//cvsRoot.setPassword(getEncodedCVSPassword(cvsRoot));
PServerConnection c = new PServerConnection(cvsRoot);
c.setUserName(cvsRoot.getUserName());
c.setEncodedPassword(getEncodedCVSPassword(cvsRoot));
c.setHostName(cvsRoot.getHostName());

// c.setPort(cvsRoot.getPort());
System.out.println("CVS port from cvsroot " + cvsRoot.getPort
());//DEBUG
c.setRepository(cvsRoot.getRepository());
c.open(); // Here the exception is thrown.
return c;
}
Optionscomment 2 answer | Add comment
Thursday, 24 April 2008
jboss-head-jdks Build Failed Guest 12:52:58
 View results here ->
http://cruisecontro­l.jboss.com/cc/build­results/jboss-head-j­dks?log=log200410290­43622 [http://cruisecontro­l.jboss.com/cc/build­results/jboss-head-j­dks?log=log200410290­43622]

BUILD FAILED

Ant Error Message: /home/cruisecontrol­/work/scripts/build-­jboss-head.xml:66:
The following error occurred while executing this line:
/home/cruisecontrol­/work/scripts/build-­jboss-head.xml:34: Exit code: 1
See compile_jdk15.log in Build Artifacts for details.
JAVA_HOME=/opt/jdk1­.5.0/

Date of build: 10/29/2004 04:36:22

Time to build: 16 minutes 44 seconds

Last changed: 10/29/2004 03:58:39

Last log entry: Fixed TX removal: local transactions are now removed
correctly

Unit Tests: (0) Total Errors and Failures: (0)

Modifications since last build: (8)

1.11

modified

belaban

cache/src/main/org/­jboss/cache/intercep­tors/ReplicationInte­rceptor.java

Fixed TX removal: local transactions are now removed correctly

1.8

modified

belaban

cache/src/main/org/­jboss/cache/intercep­tors/TransactionInte­rceptor.java

Fixed TX removal: local transactions are now removed correctly

1.5

modified

belaban

cache/src/main/org/­jboss/cache/intercep­tors/CacheLoaderInte­rceptor.java

Fixed TX removal: local transactions are now removed correctly

1.11

modified

belaban

testsuite/src/main/­org/jboss/test/cache­/test/local/TxUnitTe­stCase.java

no message

1.3

modified

recampbell

tools/etc/cruisecon­trol/TODO

move jdk& testsuite to toplevel projects

1.1

added

recampbell

tools/etc/cruisecon­trol/scripts/cc-conf­ig-head-jdks.xml

move jdk& testsuite to toplevel projects

1.1

added

recampbell

tools/etc/cruisecon­trol/scripts/cc-conf­ig-head-testsuite.xm­l

move jdk& testsuite to toplevel projects

1.3

modified

recampbell

tools/etc/cruisecon­trol/scripts/cc-conf­ig.xml

move jdk& testsuite to toplevel projects

Optionscomment 4 answer | Add comment
[ jboss-Bugs-626484 ] Incorrect libraries classpath? Guest 11:57:34
 Bugs item #626484, was opened at 2002-10-21 20:58
You can respond by visiting:
https://sourceforge­.net/tracker/?func=d­etail&atid=376685&ai­d=626484&group_id=22­866

Category: Build System
Group: CVS HEAD
Status: Open
Resolution: None
Priority: 5
Submitted By: ycswyw (ycswyw)
Assigned to: Jason Dillon (user57)
Summary: Incorrect libraries classpath?

Initial Comment:
In CVS of jboss4.0.0alpha, thirdparty libraries are
structured as "${project.thirdpar­ty}/vendor/product",­
but in
"jboss-all/tools/et­c/buildfragments/lib­raries.ent" are
referenced as "${project.thirdpar­ty}/vendor-product".­

The attached file is a replacement of "libraries.ent",
to fix the problem.

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

You can respond by visiting:
https://sourceforge­.net/tracker/?func=d­etail&atid=376685&ai­d=626484&group_id=22­866


-------------------­--------------------­----------------
This sf.net emial is sponsored by: Influence the future of
Java(TM) technology. Join the Java Community Process(SM) (JCP(SM))
program now. http://ad.doublecli­ck.net/clk;4699841;7­576298;k?
http://www.sun.com/­javavote
Optionscomment 1 answer | Add comment
How does thirdparty/librarie­s.ent get created? Bill Burke 11:25:13
 
--
Bill Burke
Chief Architect
JBoss Inc.


-------------------­--------------------­----------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/­bsce5sf
Optionscomment 2 answer | Add comment
Tuesday, 22 April 2008
Internationalization­ and Java Strings Avinash Lakshman 20:36:13
 Hi

I have been reading up a bit on Internationalizatio­n and how the Collation API's help out with searching and sorting of Strings etc. But if I had a need to store a String to file and this String could have weird characters in them how should I be storing them. Should I convert it to a byte[] and store them, use the writeUTF() method on one of the OutputStream classes or should I be doing something special? The requirement is I store them and later retrieve them for various comparisons against strings that would have weird characters in them. For eg. I would store a string "Can " and later retrieve it to compare it with some string that gets passed in via some method call. What is the best way of doing this? If I store them using writeUTF() and later read them using readUTF() would the special characters be stripped out?

Thanks
Avinash
___________________­____________________­____________________­______
Spell a grand slam in this game where word skill meets World Series. Get in the game.
http://club.live.co­m/word_slugger.aspx?­icid=word_slugger_wl­hm_admod_april08
===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

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

Optionscomment 2 answer | Add comment
Roles Rick LaBanca 15:14:12
 A general question about roles and where things go in jboss.

I realize j2ee has the roles of the developer, assembler, deployer. Too big
for some, but I see the point for large companies.

Right now, unless 3.2 changed, the directories mash together apps and server
configs it seems. The deploy directory is the thing for me, and partially
lib. My apps go in there, but the web server, and cmp files also do.

I suppose I could make an extra appdeploy/ directory and just put apps in
there. I consider the current deploy directory really a system level area as
shipped. Just wondering what everyone else does.

Rick


-------------------­--------------------­----------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte­.com/rd524.html
Optionscomment 8 answers | Add comment
Monday, 21 April 2008
Makefile. Charlie Wyse 07:45:18
 
Hello. I'm trying to install php with apache on solaris 8 sparc. I
followed the directions and the compile and installation of php goes fine
but when I do the make for apache it goes into the src/modules/php4/ and
says "make: *** No targets. Stop." I went in that directory and checked all
the permissions and made sure everything was fine. There is a MAkefile and
Makefile.tmpl and a Makefile.libdir. However even when I type make in that
directory it gives me the same message. There are also 5
mod_php4.(c,exp,h,l­o,o) files and a libmodphp4.a and libmodphp4.module file
in that directory aswell. Is there something I'm doing wrong?
Optionscomment 8 answers | Add comment
Saturday, 19 April 2008
Question on checking JNIEnv validity Don Rhummy 02:16:17
 I am building some C++ classes that will be used by
other people. These classes work with JNI and can be
used in multiple threads (C++ created, not in Java). I
know this means that each thread created needs to get
a valid JNIEnv from the JavaVM.

The problem is that AttachCurrentThread­ is, I'm
guessing, quite an expensive call. So I want to "know"
when to call it. However, I can't seem to find a
function to tell me if the JNIEnv is valid or not. For
example a function such as EnvIsValid(JavaVM* vm,
JNIEnv* env). Is there a way to tell if the current
JNIEnv is valid without having to reload it?

Thanks!

Don


___________________­____________________­____________________­____________________­_____
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo­.com/;_ylt=Ahu06i62s­R8HDtDypao8Wcj9tAcJ

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

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

OptionsAdd comment
Friday, 18 April 2008
Consulting Hayley Greenberg 22:58:18
 Hello,

Our company is looking for help in generating
printable reports that include charts and tables.
Do you know of anyone offering this service and
expertise?

Thank you,
Hayley Greenberg
LINX Test Systems, Inc.




-------------------­--------------------­----------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliv­iew.com/go/osdn_nl
Optionscomment 1 answer | Add comment
Thursday, 17 April 2008
Java NIO: calling selector.select() before socketChannel.write­() Sergey Marakhov 03:28:35
 Hi all.

I'm looking at ways to simplify our current implementation of socket communications between an agent and multiple clients. There is a client connection object created per connected client, client connection is passed through an "incomingSelector" and each client connection opens its own outgoing selector. So, question 1: do I need to create separate outgoing selectors, or is using a single selector for both in and out operations is the way to go?

Next, before each invocation of socketChannel.write­(...) method, we do outgoingSelector.se­lect(). Is it necessary to do select() before write operations?

Our knowledge of NIO is rather limited, hence all this questions.

Much appreciated...

Thank you,
Sergey Marakhov
Phone: (613) 9811 8083
Quest Software


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

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

Optionscomment 6 answers | Add comment
Re: Targeting WideScreen vs "Standard" Stephen Denne 01:12:24
 Ken Gentle wrote
2) What are you personally using for your development/work computer?
Widescreen or Standard? At what resolutions?

At work:
Laptop with 15" LCD 4x3 1400x1050, plus 19" LCD 4x3 1024x1280 (currently rotated 90deg as an experiment - not recommended as it usually requires turning cleartype off, and more severely limits your tolerable viewing angle)
Desktop with 19" LCD 4x3 1280x1024
Using synergy to get the effect of three monitors, (and multiple cores with very strong processor affinity!)

At home:
Laptop with 12" widescreen 1280x800

One thing I do with both widescreen displays, and multiple 4x3 displays is place the WinXP taskbar at the side of the screen.

I personally prefer more smaller monitors over one larger one, so that maximising application windows is a really quick and easy way of arranging multiple windows.

Regards,
Stephen Denne.

Disclaimer:
At the Datamail Group we value team commitment, respect, achievement, customer focus, and courage. This email with any attachments is confidential and may be subject to legal privilege. If it is not intended for you please advise by reply immediately, destroy it and do not copy, disclose or use it in any way.
___________________­____________________­____________________­_______
This email has been scanned by the DMZGlobal Business Quality
Electronic Messaging Suite.
Please see http://www.dmzgloba­l.com/dmzmessaging.h­tm for details.
___________________­____________________­____________________­_______

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

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

OptionsAdd comment
Wednesday, 16 April 2008
UI: Targeting WideScreen vs "Standard" Ken Gentle 19:00:42
 Hello again...

This is really a two part question:

1) Have you adjusted your UI development to target wider but apparently
shorter screens? (Widescreen is 16:9 or 1.78:1; Standard is 4:3 or 1.33:1)

a) Have you attempted to provide a UI targeted to either, making
adjustments on the fly?

2) What are you personally using for your development/work computer?
Widescreen or Standard? At what resolutions? Any makes/models recommended
or recommended to avoid?

I bring up the first question because in several of my more recent gigs the
UI folks have seemed blissfully ignorant of the differences in the
displays. Depending on the "height" of the UI, what fits nicely on a 4:3
can extend past the bottom of a 16:9 causing scrolling or other user
annoyances.

The second is a more personal question - my 21" CRTs are reaching the end of
their useful lifetime and the opinions of folks who work similarly would be
appreciated. The reviews posted on most monitors assume game playing or
video -- I'm more interested in font sharpness, contrast and being able to
work behind it for hours.

I'm debating getting two 17 or 19 widescreens (almost impossible to find a
4:3 19 LCD, and they're more expensive than the 19" Widescreen) to replace
my 21" CRT - one for Eclipse/Idea/IDE and the other for
reference/browsers/­etc.

How do you, Advanced Java person that you are, use/abuse your monitor(s)?

Thanks!

Ken

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

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

Optionscomment 1 answer | Add comment
Out-of-Memory Handling in Long-Running / Server Applications Randall R Schulz 14:03:25
 Hi,

My application has highly variable running times and memory demands
based on the problems submitted to it. Some hard-to-solve (or
insoluble) problems will run it out of memory.

When memory is exhausted in the inner loop of the program (the only
place it's going to happen), I catch the OutOfMemoryError, release the
storage, trigger a GC (forcing it would seem desirable, but I'm not
sure how to do that) and report the failure back up the call chain.
The vast majority of the RAM is used in the search tree, which is
linked only upwardly from the leaves and the leaves are all in a
priority queue, so relinquishing the priority queue is enough to make
all the objects in the tree unreferenceable.

This technique sometimes works and sometimes does not. I.e., when it
doesn't work the program gets another OOM very shortly after or during
the my OOM handling and dies.

Until recently, this application was mostly run from the command line so
this behavior was not such a big problem. Now it's being used much more
in its Web-App form (running in Tomcat 5.5, at the moment), this
inadequate handling is becoming a problem.


What techniques are available for handling OOM errors in situations
where simply dying on the spot is not an option?


Thanks.

Randall Schulz

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

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

Optionscomment 59 answers | Add comment
Tuesday, 15 April 2008
Group Dynamics (WAS: Out-of-Memory Handling in Long-Running / Server Applications Peter Booth 21:31:09
 This discussion has echoes of Amy Hoy's superbly perceptive blog posting
http://www.slash7.c­om/pages/vampires

Peter

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

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

OptionsAdd comment
Monday, 14 April 2008
java serialization alternative Rodrick Brown 07:00:06
 Do any of you guys have experience with Java serialization and what
kind of overheads it causes? As far as I know, it produces very large
messages and is not particularly fast, so I am concerned about that
given that it is pervasively used in our system core for sending
messages between daemons over our messaging API.

One possible alternative is http://xstream.code­haus.org/ which can be
tuned to produce fairly small messages (by aliasing class names and
types for example). However, I have no sense of the speed. I will
do some performance tests.

Comments, questions, etc?


--
[ Rodrick R. Brown ]
http://www.rodrickb­rown.com
http://www.linkedin­.com/in/rodrickbrown­

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

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

Optionscomment 62 answer | Add comment
Re: Non-Deterministic / Unpredictable Behavior (Again) [SOLVED] Randall R Schulz 00:16:59
 On Thursday 10 April 2008 18:25, Randall R Schulz wrote:
Hi,
Well, I've done the fine-tooth-comb routine and still have the
problem of unrepeatable results.
...

Well, I finally found the problem.

The reason it escaped my attention was that I had an auxiliary class
used internally in a key indexing structure that (intentionally) used
identity equality semantics. Because I was using the default equals(),
I did not implement a hashCode() override.

Big mistake.

Oh, well, I cleaned up a lot of other stuff along the way.


Randall Schulz

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

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

Optionscomment 6 answers | Add comment
Sunday, 13 April 2008
Jetty Sourceforge project list is empty?!? Ted Neward 03:01:47
 I went to download the latest Jetty servlet container bits, and SourceForge
shows zero/nada/zip/zilch­ for released project files, and the download
history shows zero downloads over the last week. Is this a random cosmic
ray, or has anybody else here had problems downloading Jetty?

Ted Neward
Java, .NET, XML Services
Consulting, Teaching, Speaking, Writing
http://www.tednewar­d.com




No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.12/1374 - Release Date: 4/11/2008
4:59 PM

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

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

Optionscomment 3 answer | Add comment
Friday, 11 April 2008
Non-Deterministic / Unpredictable Behavior (Again) Randall R Schulz 17:53:25
 Hi,

Well, I've done the fine-tooth-comb routine and still have the problem
of unrepeatable results.

Here's some more information:

- I use the "immutable after initialization" (IAI) pattern extensively.

- In going over my code, I noticed many places in equals() or hashCode()
implementations that were careful not to dereference null fields. In
the light of IAI, it seems this is just a bad idea (one wants to know
if equals() or hashCode() are being called before an instance is fully
initialized), so I removed those checks. Now if equals() or hashCode()
are invoked on incompletely constituted instances, they'll throw NPEs.

- All the classes in question are descendants of one of two abstract
classes. I added implementations of equals() and hashCode() in these
abstract classes, each (pair) of which throws a "subclass
responsibility" exception when invoked.


After all this, the unrepeatability of results remains.

I am completely baffled by this.

Are there _any_ ways a properly written, single-threaded program can
yield this kind of behavior?


Randall Schulz

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

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

Optionscomment 1 answer | Add comment
RE: DWR problem WANG Chi 10:35:41
 Hi all,

I installed appfuse 1.9.1 Spring MVC version. And when I input http://localhost:80­80/appfuse/dwr in my browser, it displays an error page

javax.servlet.Servl­etException: Servlet.init() for servlet dwr-invoker threw exception
at org.apache.catalina­.core.StandardWrappe­r.loadServlet(Standa­rdWrapper.java:1071)­
at org.apache.catalina­.core.StandardWrappe­r.allocate(StandardW­rapper.java:687)
at org.apache.catalina­.core.StandardWrappe­rValve.invoke(Standa­rdWrapperValve.java:­144)
at org.apache.catalina­.core.StandardValveC­ontext.invokeNext(St­andardValveContext.j­ava:104)
at org.apache.catalina­.core.StandardPipeli­ne.invoke(StandardPi­peline.java:520)
at org.apache.catalina­.core.StandardContex­tValve.invokeInterna­l(StandardContextVal­ve.java:198)
at org.apache.catalina­.core.StandardContex­tValve.invoke(Standa­rdContextValve.java:­152)
at org.apache.catalina­.core.StandardValveC­ontext.invokeNext(St­andardValveContext.j­ava:104)
at org.apache.catalina­.core.StandardPipeli­ne.invoke(StandardPi­peline.java:520)
at org.apache.catalina­.core.StandardHostVa­lve.invoke(StandardH­ostValve.java:137)
at org.apache.catalina­.core.StandardValveC­ontext.invokeNext(St­andardValveContext.j­ava:104)
at org.apache.catalina­.valves.ErrorReportV­alve.invoke(ErrorRep­ortValve.java:118)
at org.apache.catalina­.core.StandardValveC­ontext.invokeNext(St­andardValveContext.j­ava:102)
at org.apache.catalina­.core.StandardPipeli­ne.invoke(StandardPi­peline.java:520)
at org.apache.catalina­.core.StandardEngine­Valve.invoke(Standar­dEngineValve.java:10­9)
at org.apache.catalina­.core.StandardValveC­ontext.invokeNext(St­andardValveContext.j­ava:104)
at org.apache.catalina­.core.StandardPipeli­ne.invoke(StandardPi­peline.java:520)
at org.apache.catalina­.core.ContainerBase.­invoke(ContainerBase­.java:929)
at org.apache.coyote.t­omcat5.CoyoteAdapter­.service(CoyoteAdapt­er.java:160)
at org.apache.coyote.h­ttp11.Http11Processo­r.process(Http11Proc­essor.java:799)
at org.apache.coyote.h­ttp11.Http11Protocol­$Http11ConnectionHan­dler.processConnecti­on(Http11Protocol.ja­va:705)
at org.apache.tomcat.u­til.net.TcpWorkerThr­ead.runIt(PoolTcpEnd­point.java:577)
at org.apache.tomcat.u­til.threads.ThreadPo­ol$ControlRunnable.r­un(ThreadPool.java:6­83)
at java.lang.Thread.ru­n(Unknown Source)

And the console shows the log

[appfuse] INFO [http-8081-Processor25] DWRServlet.info(51)­ | retrieved system configuration file: java.io.ByteArrayIn­putStream@695a6a
[appfuse] INFO [http-8081-Processor25] DefaultConfiguratio­n.info(51) | Creator 'pageflow' not loaded due to ClassNotFoundExcept­ion. This is only an problem if you wanted to use it. Cause: Beehive/Weblogic Creator not available.
[appfuse] INFO [http-8081-Processor25] DefaultConfiguratio­n.info(51) | Creator 'script' not loaded due to NoClassDefFoundErro­r. This is only an problem if you wanted to use it. Cause: org/apache/bsf/BSFE­xception

could someone give me a clue, thank you very much

Best Regards,
Wang Chi
Optionscomment 2 answer | Add comment

Add new topic:

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


QAIX > Java ProgrammingGo to page: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

see also:
OSS database needed for testing
perform.sgml update
SQL optimization problem
see also:
how to test the server webauth on…
win32 pgsql not installable
Nested transactions: deferred triggers
see also:
Re: I need the full list of client…
[OT][ANNOUNCEMENT]Announcing first…
unexpected: 260 rows in set on a…

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
You can find the help and FAQ in the Admin's blog.