Re: Vugen 11.04 Java over HTTP Failed to copy File (1544 Views)
Reply
Honored Contributor
David Campeau
Posts: 1,077
Registered: ‎04-12-2007
Message 1 of 7 (1,623 Views)
Accepted Solution

Vugen 11.04 Java over HTTP Failed to copy File

Hello,

 

On Windows XP 32bit

Vugen 11.04

 

When creating a Java over HTTP script, I'm getting an error that Vugen can't copy a file to a tmp directory on the hard drive (Source directory or file does not exist).

 

I read that increasing memory in the startup.ini to 3GB would fix the issue, but unfortunately I don't have supported drivers that will allow that type of system change.

 

Are there any other workarounds?

 

thanks,

 

David

Honored Contributor
Sujith Kumar C.S
Posts: 868
Registered: ‎04-07-2010
Message 2 of 7 (1,614 Views)

Re: Vugen 11.04 Java over HTTP Failed to copy File

You say that "When creating a Java over HTTP script". What happes with other protocol? Do you get similar message? The error looks to be more of permission/installation related issue.

 

Can you share the link where you read that increasing memory will resolve the issue?

 

--Sujith 

Close the thread if your issue is resolved to make the thread meaningful and complete. Do show gratitude to people who helped you by assigning points.
Honored Contributor
David Campeau
Posts: 1,077
Registered: ‎04-12-2007
Message 3 of 7 (1,600 Views)

Re: Vugen 11.04 Java over HTTP Failed to copy File

This is only happening with Java over HTTP protocol.

 

The below URL shows a thread where it talks about a known issue, and the aparent work around of the 3GB switch.

 

http://groups.google.com/group/LR-LoadRunner/browse_thread/thread/f5e60752e119e1a0

Honored Contributor
Sujith Kumar C.S
Posts: 868
Registered: ‎04-07-2010
Message 4 of 7 (1,586 Views)

Re: Vugen 11.04 Java over HTTP Failed to copy File

David, Try this

 

To address the issue you can introduce the environment variable _JAVA_OPTIONS with value -Xms10M -Xmx20M to vugen.exe process (e.g. via batch file in LR\bin dir
set _JAVA_OPTIONS= -Xms10M -Xmx20M
vugen.exe
)

It will override default JVM memory ergonomics and will help to squeeze JVM into vugen process, which is rather fragmented to find continuous free memory for JVM heap (fragmentation is the reason of the error). Keep in mind that the variable will also inherited by child processes and will affect JVMs if there are any. During JOH (java over http) recording it will affect IE and underlying JVM which runs applet

 Maybe even better workflow would be to record script with having "failed to copy" and then restart vugen via batch file, reopen script and regenerate it.

You can play with values of Xms and Xmx

 

Also, follow this thread. Another person is having the same problem as you. He will post the solution if he is lucky.

 

http://h30499.www3.hp.com/t5/LoadRunner-Support-Forum/Failed-to-copy-file-Error-recording-a-Java-App...

 

--Sujith

 

 

Close the thread if your issue is resolved to make the thread meaningful and complete. Do show gratitude to people who helped you by assigning points.
Honored Contributor
David Campeau
Posts: 1,077
Registered: ‎04-12-2007
Message 5 of 7 (1,571 Views)

Re: Vugen 11.04 Java over HTTP Failed to copy File

The environment set for Java fixed the problem (really just a work around) --- Thank you!

 

Create a batch to start Vugen with when using the Java over HTTP protocol. Your path may differ so take note.

 

set _JAVA_OPTIONS= -Xms10M -Xmx20M
START "" "C:\Program Files\HP\Virtual User Generator\bin\vugen.exe"

 

 

 

Problem Solved.

 

David

Honored Contributor
David Campeau
Posts: 1,077
Registered: ‎04-12-2007
Message 6 of 7 (1,566 Views)

Re: Vugen 11.04 Java over HTTP Failed to copy File

New error.......

 

After I've created the script and try to re-run it, the Java options now show as an error. Bah!

 

C:\Documents and Settings\User1\Local Settings\Temp\noname36\Actions.java:63: error: ')' expected
  LAST}});
       ^
C:\Documents and Settings\User1\Local Settings\Temp\noname36\Actions.java:63: error: illegal start of expression
  LAST}});
        ^
2 errors
Picked up _JAVA_OPTIONS:  -Xms50M -Xmx100M

Honored Contributor
Rajasekhar Gundu
Posts: 1,085
Registered: ‎03-31-2008
Message 7 of 7 (1,544 Views)

Re: Vugen 11.04 Java over HTTP Failed to copy File

It is the VuGen script side error. See at the line before 63 in "Actions" action. Probably, statement closure is missing. Ensure that each command in  ends with   ;

 

Also most of the commands require LAST to be included at the end of arguments, as a intimation to the compiler that it is closure of arguments for the given command. Check the VuGen functional reference guide example for detailed usage of functions in VuGen.

 

 

Regards,

Raj


Regards,
Raj

Like this Post? Click Kudos! to show appreciation.
Is your issue addressed? Click "ACCEPT AS SOLUTION" against the post which helped you the most.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.