Beans behaves differently with more requests
Hi,
I have the following part of jsp calling my bean
<jsp:useBean id="proj_fileCopy" class="bean.FileCopy">
<jsp:setProperty name="proj_fileCopy" property="source" value="<%=userFile_Share+"//"+newFileName%>" />
<jsp:setProperty name="proj_fileCopy" property="destination" value="<%=newFilePath%>" />
<jsp:setProperty name="proj_fileCopy" property="filecopy" value="" />
<jsp:setProperty name="proj_fileCopy" property="toocopy" value="" />
</jsp:useBean>
proj_fileCopy.callMethod();when I call the bean with just single user logged into my application the bean completes a task within 2 minutes.
whereas simultaneously when multiple users get logged in the bean takes twice the time i.e., 4minutes.
In the bean I have the follwing part of code in which the bean executes a command prompt task and waits till the command prompt task gets completed as shown below
ProcessBuilder builder = new ProcessBuilder(command);
builder.directory(new File(commandtask));// gives the script location
Process p1 = builder.start();
InputStream is = p1.getInputStream();
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr) ;
String lineRead = br.readLine();//
while(lineRead!=null)
counter++;
lineRead = br.readLine();
//System.out.println("lineRead:"+lineRead);
}what can I do for this.
Hi balusc,
I tried with java. any way I will give a try again.I have posted my code below. please go through them and suggest some tips to make them efficient.
I know its too lengthy, but I hope I can get some help to make it efficient
below is the jsp that passes parameters to bean
<jsp:useBean id="trasfer" class="bean.UploadFile" >
<jsp:setProperty name="trasfer" property="previousVersion" value="<%=srcPath%>" />
<jsp:setProperty name="trasfer" property="backupID" value="<%=File_Name%>" />
<jsp:setProperty name="trasfer" property="userpath" value="<%=File_Share%>" />
<jsp:setProperty name="trasfer" property="projpath" value="<%=newPath%>" />
<jsp:setProperty name="trasfer" property="newFileName" value="<%=newName%>" />
<jsp:setProperty name="trasfer" property="Destination" value="<%=destPath%>" />
</jsp:useBean>
<%
trasfer.goAhead();
%> Below is the bean that takes the parameters from jsp. I call the goAhead() method from jsp.
import java.beans.*;
import java.io.Serializable;
import java.sql.*;
import java.io.*;
public class CopyFile extends Object implements Serializable {
private String previous_Name = "";
private String backup_ID = "";
private String user_Path = "";
private String project_Path = "";
private String currentVersion_Name="";
private String backup_Src = "";
private String backup_Dest = "";
private String fileType_ID = "";
public CopyFile() {
public void setPreviousVersion(String previous_Name){
this.previous_Name = previous_Name;
public void setBackupID(String backup_ID){
this.backup_ID = backup_ID;
public void setUserHomepath(String userHome_Path){
this.user_Path = user_Path;
public void setProjpath(String project_Path){
this.file_Path = file_Path;
public void setNewFileName(String currentVersion_Name){
this.currentVersion_Name = currentVersion_Name;
public void setBackupSource(String backup_Src){
this.backup_Src = backup_Src;
public void setBackupDestination(String backup_Dest){
this.backup_Dest = backup_Dest;
public void setFileType(String fileType_ID){
this.fileType_ID = fileType_ID;
public void goAhead(){
try{
File backupFile = null;
String user_File = user_Path+"/"+currentVersion_Name;
String proj_File = file_Path+currentVersion_Name;
if(!previous_Name.equals("")) {
File prv_Version = new File(previous_Name);
backupFile = new File(project_Path+backup_ID);
backup_Dest = backup_Dest+backup_ID;
//the below code copies the file to location B
TransferFile copyVersion = new TransferFile();
copyVersion.moveFile(user_File,proj_File);
//the below code copies the file to location C
//In this class only I am calling wait.For() method
BackupVersions copyBackup = new BackupVersions();
copyBackup.moveFile(backupFile.toString(),backup_Dest,"BACKUP");
}catch(NullPointerException npe){
System.out.println("NPE in CopyFile"+npe);
}will continue uin next post
Similar Messages
-
Why does terminal behave differently with respect to "Resume" feature?
Terminal behaves a little funky when it comes to the new "Resume" feature in Lion. Here's a few interesting notes:
When restarting, Terminal prompts the user to close itself. If you don't click close in time, the reboot process is halted. This ***** because resume gets confused. When you close Terminal and reboot, Resume only opens applications that were closed AFTER terminal was manually closed. This is only a small subset of applications that were originally opened from the first reboot attempt.
If you do manage to close terminal in time, it only comes up on Desktop 1 after resume. This is fine if that's what you want, but I have terminal configured on "All Desktops". To workaround the issue, I have to set terminal to "This Desktop", then "All Desktops" EVERY TIME I REBOOT.
No other apple programs seem to do this.
Where do I log a bug/feature request for this?
Cheers!Done! Thanks!
https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/6/wo/iLhrfiEtEJtPFTt J8S23O0/23.83.28.0.9
https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/6/wo/iLhrfiEtEJtPFTt J8S23O0/23.83.28.1.9 -
Firefox behaves differently with different PDF docs on my web site
I am running Firefox 3.6.6 on Windows 7 Home Edition. When I update a PDF file on my web site, and I try the updated web page in my browser, Why does my browser prompt me to save the file with the updated file, but it displays inside the browser with other pdfs on my site? I get the same results with IE. The files are very similar, but yet, the browsers treats them differently.
''Possibly'' because when you access the file from your hard disk (I assume that's what you mean by "try the updated web page in my browser") and when you access it from a webserever, the file type is different. If you're brought up with windows you might think that the file type is determined by the extension (.pdf) but it's not. Depending on the webserver, your operating system, and your browser, it ought to depend on the 'mime type'
So try uploading the amended page to your webserver (in a test area) and see if it works off the web. -
If you have a table with a unique index and ignore_dup_key = on and you INSERT rows into that table with an ORDER BY clause (because you want to control which of the duplicate
key rows gets inserted), the wrong row gets inserted in SQL2012. It works correctly in SQL 2008.
We have recently migrated a database from SQL 2008 to SQL 2012. We do have few other dbs which are in compatability mode 100. The above operation works fine
in SQL 2008 dbs but not SQL 2012.
I've even tried applying the latest patch for SQL 2012 SP2 with CU2. Still the problem exists. I'm going to call MS support, but want to know if anyone has come across this problem ?The MS documentation doesn't guarantee that the first row of the duplicates will always be inserted and the next duplicate row(s) get(s) ignored. Where did you find it in the MS documentation? I think you were just lucky that it was always inserting the
first row in SQL 2008 (and ignoring the rest of the duplicates) - I don't think this is guaranteed
Satish Kartan http://www.sqlfood.com/ -
New iPod behaving differently with iPhone headphones
I just had an iPod Touch go bad and had it replaced at an Apple store. I aslo have some "iPohone" headphones that have the answer button. On my first iPod the answer button would work as a pause and play button, but on my newer one it's not doing that....I REALLY liked having this feature. Does anyone know what the difference might be?
I have the same problem with my iPod Touch using Apple headphone. The remote worked well for months, then stop working until now - rendering them pretty useless, mic still work thought...
I tried everything, even restoring the iPod. Nothing worked, this is a iPod OS software glitch that Apple doesn't seem willing to fix anytime soon. As a result, I'm barely using my Touch since it's a pain in the a*s having to take it out of the pocket, unlock, etc., everytime I want to pause or skip track. Stupid move here Apple, FIX THIS ASAP APPLE...
Message was edited by: Praeliber -
MBST behaves Differently with MIGO Cancellation
Hi,
I have configured some customised movement types to have their reversed movement types as "qty can be entered...". That is, the quantity can be changed when performing cancellation of material document.
It works well with the old transaction MBST and MB1A (cancel with reference to material document). However, when I try it with MIGO with Cancellation option, it does not work. The quantity field is grey out, not changable. Anyone any idea why is this so? Thanks.
Regards,
NormanHi Norman,
As an option, you can go into the MIGO transaction, use same selections as you would to create the goods receipt document (ex. Goods Receipt, Purchase Order) but in the movement type field, select your reversal movement type. Quantity field is open for change. From what I'm seeing (and from what you stated) the Cancellation option in MIGO assumes the full quantity of the material document is being reversed.
Regards,
Dawn -
Solaris 11 driver behaves differently with 3G and 6G hba
Hi,
I am using ioctl with uscicmd driver, in the 3G LSI Sas hba, when there is a check condition, the sense bytes are
returned normally, however, when a 6G LSI Sas hba is used, when there is a check condition, bad sense bytes are
returned.
Is there a solution for solving the bad sense bytes problem?
Also let me know if I am not posting in the right forum.902400 wrote:
Also let me know if I am not posting in the right forum.Where did you buy the HBA's?
If you purchased them from Oracle/Sun, then this web site is appropriate.
If you purchased them from somewhere else, then you need to go ask them (ultimately LSI) for assistance. -
Onkeypress behaves differently with FF and IE in a table td tag
Here is a sample web page: If you click on the cell with the "abc" (not necessarily on the abc, but in the cell), then type a key, with IE (am using IE9) I get the alert, reporting which key was hit.
With firefox (and, for the record, Safari), I get nothing.
Is there anyway I can achieve something similar - I can't just make the cell an input field...
<html>
<body>
<script type="text/javascript">
function keyhit(e)
var keynum,keychar;
if(window.event) keynum = e.keyCode; // Internet Explorer
else if(e.which) keynum = e.which; // Netscape/Firefox/Opera
keychar = String.fromCharCode(keynum);
alert("You pressed "+keychar);
</script>
Click on the "abc" in the table (or anywhere in that cell, and kit a key.
<table cellspacing=0 border=1 width=120>
<tr height=50>
<td width=60 onkeypress="keyhit(event)">abc</td>
<td width=60>xxx</td>
</tr>
<tr height=50>
<td>xxx</td>
<td>xxx</td>
</tr>
</table>
</body>
</html>Start by repairing the code validation errors reported here:
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.archbold-station.org%2Fstatio n%2Feditreg.html
References to external javascripts and stylesheets.css belong between the <head> and </head> tags. You have them in the wrong place.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
HTML Validator - http://validator.w3.org
CSS Validator - http://jigsaw.w3.org/css-validator/
Tutorials - http://w3schools.com/ -
Safari behaving differently with site on .mac/external server
Hello. I've started creating a little webpage of mine and I've noticed that when uploaded to .mac the top bar (for selecting pages within the site) works correctly, but when the site is uploaded to an external server the top bar goes bust. It is so under Safari, not so under Firefox, which seems to "decode" everything correctly. Here are both pages (identical uploads):
.mac: http://web.mac.com/milosz.sosnowski/Site/Start.html
external: http://www.staff.amu.edu.pl/~miloszso/Site/Start.html
Thank you for your helpmilosz.sosnowski wrote:
Could someone please delete this topic
There are worser topics sometimes
I just wanted to say that...
If a change doesn't display to you in the browser after you published and uploaded it mostly is because the old version of the page is cached (memorized) by your browser. Thus simply emptying the cache of the browser (Open Safari, choose Safari from the menu and go to Empty Cache) and reloading the page should display the changes.
Regards,
Cédric -
Pack() method behaves differently with JRE1.5 and JRE1.6?
Any diffrence in pack() in JRE 1.5 and JRE 1.6.
Why don't you look for yourself. Get the file containing the pach() method from both JDK 1.5 and 1.6, and compare.
-
BPEL process with one or more requests and one or more responses
We need to create a process that will have one or more requests and one or more responses, and CheckoutFlow example is exactly what we need. Now we just have to find out how to invoke this process from the Axis client and how to invoke other operations like âcontinueâ and âsubmitâ from the same example.
I understand that we have to set ws-addressing information into SOAP header, but I am not sure when and how to do that. Also I am not sure why we have to set correlation set when invoking âinitatiateâ, âcontinueâ and âsubmitâ as they are defined as two-way operations in CheckoutFlow.wsdl. I would expect to send correlation set only for âonResultâ operation.
I have used wsdl2java to create stub classes and here is a test client code:
public void testCheckoutFlow() throws Exception {
com.erggroup.mass.wf.CheckoutFlowBindingStub stub = null;
try {
stub = (com.erggroup.mass.wf.CheckoutFlowBindingStub)
new com.erggroup.mass.wf.CheckoutFlow_ServiceLocator().getCheckoutFlowPort();
catch (javax.xml.rpc.ServiceException jre) {
// Time out after a minute
stub.setTimeout(60000);
com.erggroup.mass.wf.OrderType order = new com.erggroup.mass.wf.OrderType();
order.setProduct("Axis product");
com.erggroup.mass.wf.ProfileType profile = new com.erggroup.mass.wf.ProfileType();
profile.setEmail("[email protected]");
order.setProfile(profile);
// Invoke initiate
com.erggroup.mass.wf.AddressType address = stub.initiate(order);
address.setName("Axis test");
// Invoke continue
stub._continue(address);
and this is exception message
ORABPEL-03802
Correlation definition not registered.
The correlation set definition for operation "continue", process "CheckoutFlow", has not been registered with the process domain.
Please try to redeploy your process to the process domain.
Is there any example for this? I was looking AXISCallingAsyncBPEL example but it does not help in this case.
Thanks,
DraganaError while invoking other method 'proceedNext' after initiating the process:
Correlation definition not registered.
The correlation set definition for operation "proceedNext", process "Connection", has not been registered with the process domain.
Please try to redeploy your process to the process domain.
WSDL is:
<message name="ConnectionRequestMessage">
<part name="payload" element="client:ConnectionProcessRequest"/>
</message>
<message name="ConnectionResponseMessage">
<part name="payload" element="client:ConnectionProcessResponse"/>
</message>
<!-- portType implemented by the Connection BPEL process -->
<portType name="Connection">
<operation name="initiate">
<input message="client:ConnectionRequestMessage"/>
</operation>
<operation name="proceedNext">
<input message="client:ConnectionRequestMessage"/>
</operation>
<operation name="terminateFinally">
<input message="client:ConnectionRequestMessage"/>
</operation>
</portType>
MY java class:::
import com.oracle.services.bpel.Connection.*;
import org.apache.axis.message.*;
import javax.xml.soap.Name;
public class ProceedNext
public static void main(String [] args) throws Exception {
ConnectionBindingStub stub = null;
try {
stub = (ConnectionBindingStub)
new Connection_ServiceLocator().getConnectionPort();
catch (javax.xml.rpc.ServiceException jre) {
jre.printStackTrace();
// Time out after a minute
stub.setTimeout(60000);
String conversationId = "LocalGUID:c568752ccc493590:148662:1093d9c661f:-7fed";
javax.xml.namespace.QName qname= new javax.xml.namespace.QName("http://services.oracle.com/bpel/Connection","ConnectionRequestMessage");
SOAPHeaderElement el = new SOAPHeaderElement(qname, conversationId);
SOAPEnvelope se = new SOAPEnvelope();
Name name = se.createName("rootId", "nsbpel",
"http://services.oracle.com/bpel/Connection");
el.addAttribute(name, conversationId);
name = se.createName("parentId", "nsbpel",
"http://services.oracle.com/bpel/Connection");
el.addAttribute(name, conversationId);
name = se.createName("priority", "nsbpel",
"http://services.oracle.com/bpel/Connection");
el.addAttribute(name, "0");
stub.setHeader(el);
/*String conversationId = "LocalGUID:c568752ccc493590:148662:1093d9c661f:-7ff0";
javax.xml.namespace.QName qname= new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2003/03/addressing","MessageID");
SOAPHeaderElement el = new SOAPHeaderElement(qname, conversationId);
SOAPEnvelope se = new SOAPEnvelope();
Name name = se.createName("rootId", "nsbpel",
"http://schemas.oracle.com/bpel");
el.addAttribute(name, conversationId);
name = se.createName("parentId", "nsbpel",
"http://schemas.oracle.com/bpel");
el.addAttribute(name, conversationId);
name = se.createName("priority", "nsbpel",
"http://schemas.oracle.com/bpel");
el.addAttribute(name, "0");
stub.setHeader(el);
// Set up the object which will be the input message
// Note that this Java bean is generated by wsdl2java
ConnectionProcessRequest conReq=new ConnectionProcessRequest( );
conReq.setSubject("***************");
// Make the actual call
stub.proceedNext(conReq);
System.out.println("ConnectionProcessRequest BPEL process proceeded!");
Please help its very urgent.................... -
How to generate a certificate request with more than one OU?
We're using Sun Java System Web Server 6.1 SP4. The Corp. has it's own CA and organize their certificates in a hierarchical rule with more then one organization unit (OU) in a chain.
So what we need is generate a certificate requeste with more than one OU, but the Web Server wizard has only one text field for it. We've already tried to fill in this field the complete chain of OUs like "ou=orgX, ou=deptY, ou=secZ" and didn't work either.
Thank's in advance,
Jeff!Do you have tried with the command line "certutil" ?
#<SERVER-ROOT>/bin/https/admin/bin/certutil -
Hey from south africa,I'm using the curve 8520 on MTN service provider.I came across a problem a while ago where I had to setup my email address again,I had an email with some pdf's saved.They were working well until the re-setup,now when I try to load ones that I haven't read it gives me the error "More request cannot be completed.Service book information not found".I've sent the email back to myself but no luck,help.Thanks in advance.
You need to reset your email account again on your device & send the service books from the same interface on your device. Wait for the 30mins & register now yourself from the handset itself by following the below steps-click on Option Application-click on Advanced - Click on Host Routing table - Click menu key - select Register now option & Click, Follow these steps twice. Now go into your email application & click on it. Then press the menu key & scroll down,you can see Reconcile now option, Click on it twice !
Now try to open that PDF again ! -
Spool request with more than 255 columns
Hi,
Please let me know what formatting type has to be used to have spool output with more than 255 lines.
X_24_80_JP L ANY 00024 00080 ABAP list HR Japan: At least 24 rows by 80 columns
X_44_120 L ANY 00044 00120 ABAP/4 list: At least 44 rows by 120 columns
X_51_140_JP L ANY 00051 00140 ABAP list HR Japan: At least 51 rows by 140 columns
X_58_170 L ANY 00058 00170 ABAP/4 list: At least 58 rows by 170 columns
X_60_80_JP L ANY 00060 00080 ABAP list HR Japan: At least 60 rows by 80 columns
X_65_1024/4 L ANY 00065 01024 ABAP List: At Least 65 Lines 4*256=1024 Columns Four-Sided (Only for SAPlpd)
X_65_132 L ANY 00065 00132 ABAP list: At least 65 rows by 132 columns
X_65_132-2 L ANY 00065 00132 ABAP List: 2-column 65 characters 132 columns (only for SAPLPD from 4.15)
X_65_200 L ANY 00065 00200 ABAP list: at least 65 lines with 200 columns (not for all device types)
X_65_255 L ANY 00065 00255 ABAP/4 list: At least 65 rows with a maximum number of columns
X_65_256/2 L ANY 00065 00256 ABAP list: At least 65 lines 2*128=256 double columns (SAPLPD only)
X_65_512/2 L ANY 00065 00512 ABAP List: At least 65 Lines 2*256=512 Columns 2-sided (Only for SAPlpd)
X_65_80 L ANY 00065 00080 ABAP/4 list: At least 65 rows by 80 columns
X_65_80-2 L ANY 00065 00080 ABAP List: 2-column 65 characters 80 columns (only for SAPLPD from 4.15)
X_65_80-4 L ANY 00065 00080 ABAP List: 4-column 65 characters 80 columns (only for SAPLPD from 4.15)
X_90_120 L ANY 00090 00120 ABAP list: At least 90 rows by 120 columns
X_PAPER L ANY 00010 00010 ABAP/4 list: Default list formatting
X_PAPER_NT L ANY 00001 00001 ABAP/4 list: Obsolete (do not use)
X_POSTSCRIPT L ANY 00001 00001 Pre-prepared PostScript
X_SPOOLERR L ANY 00001 00001 ABAP list: Spooler problem report
X_TELEX L TELEX 00001 00001 Telex: 69 characters wide, only as many lines as supported by TTU
ZABC_SAP L ANY 00065 00550 LCM Report Page Type
I have created a custom Format Type with 65*550 (ZABC_SAP) , but still the output gets truncated in the spool.
In sp01 . For the spool request ... If it displayed in Graphical layoout ... Output is getting truncated but when we see in Raw format .. i can see the entire output. But it is not at all formatted.
Thanks,
Tanuj
Message was edited by:
Tanuj Kumar BolisettyHello Tanuj,
You need to use a page format greater than 255 columns for sure. However still if it does not solve the issue then you may consider using the note 186603.
PS: I guess you are on a higher release than 4.6 C . For this release this note íIt has a text attachment for a report tat allows to display such spool requests.
Regards.
Ruchit. -
Fonts behave different in Photoshop in comparison with Illustrator
I have a problem: it seems that some fonts behave different in Photoshop CS than in Illustrator CS on my Windows XP. Where Illustrator opens a vector (Ill) EPS file correct Photoshop shows me wrong characters sometimes: for example: an é becomes a wrong character: Capital O with a stroke through it. Frutiger was used.
My question is: where does Photoshop behave different reading fonts in comparison with Illustrator?Perhaps you forgot to embed the font?
Here comes an example, using characters with accents.
The font is GillSans-Schoolbook. The font or subset is embedded.
The file extension TXT should be replaced by EPS after downloading.
The EPS doesn't contain a preview image.
The file is correctly handled by
Photoshop CS2 (opened)
InDesign CS2 (placed)
Illustrator CS2 (opened)
PSAlter (PostScript interpreter by Quite)
All characters with accents are missing in
Word 2007 (insert graphic)
http://www.fho-emden.de/~hoffmann/buffel-7-sRGB-Dokument.txt
Best regards --Gernot Hoffmann
Maybe you are looking for
-
Downloaded iTunes 11 and now none of my song files can be "located"- suggestions?
I just updated my iTunes to the newest version; my entire library shows up, however, when I click on any of the songs, a message appears that says that the original file cannot be found. I've searched through all my folders and can't find any trace o
-
Good afternoon, This time I write to you aksing for your help with the following problem. I have a report in CR2008, which with I made a cash receipt with the B1 tables ORCT, RCT1 ETC .. Now I want to take that same report but changing it to the tabl
-
Hi, for some weeks I have to restart MAIL in order to be able of previewing messages but now I cannot preview any message. It asks to connect to the account to preview messages. Before, I just had to restart the Mail application and it was solved, bu
-
Hi Experts! I'm wondering about an elegant solution for my problem. I have a top level VI that contains subpanel, in order to call plugin VI interfaces into. The plugin vi itself has own state machine (JKI Queued State Machine) and called by VI Serve
-
Backups work fine, but nothing shows when entering TM
Hi there. I recently changed to backing up to a network attached drive through AirPort Extreme for my two Macs. It all seems to work fine. The problem is that when I enter TM on my iMac, the incremental backups don't show, but they do seem to regular