WVC200 sending tmp files
I have one WVC200 and two WVC210. The 200 keeps naming the MD-files as .tmp files, allthough the SR-files is named .asf. With the 210's this is no issue. Is it a bad/wrong setting in the setup, or could it be the surveillance program that causes this? I use one of the older versions.
Thank you for the response. That is what I thought, there is actually newer software on the Cisco.com web site for the WVC200. If you go to the link http://www.cisco.com/cisco/software/type.html?mdfid=282414031&i=rs this will allow you to download the latest firmware and monitoring software for that camera. Please be careful, the video monitoring software that you want will be version 1.2, anything newer or higher in number will not be for the WVC200 camera.
When you install this version 1.2 please uninstall any previous version to minimize the chances of it installing incorrectly.
Personally, I have always been a believer of if isn't broke don't fix it. So if everything is good, I would just hang on to the link for future reference.
If I can ever help in any way please let me know.
Eric Moyers
Cisco Network Support Engineer
1-866-606-1866
Similar Messages
-
.pdf file changed into .tmp when trying to send pdf file as attachment
Dears,
A few days now, .pdf files are exported as .tmp files if we try to send them as attachment directly from the adobe reader plug-in in internet explorer 8.
Unfortunatly Outlook interprets .tmp files as harmfull, so we are no longer able to send pdf files directly.
(screenshot in attachment)
Is there any chance we can configure this so, pdf files are exported as .pdf instead of .tmp
More details:
OS : Win XP SP3
browser : ie 8
plug in : Adobe PDF Link Helper (not sure this is the one that provides us the pdf reader functionallity dough)I cannot reproduce that (Adobe Reader 11.0.3, IE8, Win XP-SP3). In fact, I cannot even see the Attach to Email option, but the file name is correct.
-
Subcribers not sending CDR files to Publisher in the cluster.
HI,
We have call manager cluster 8.6 version and there are 5 nodes in the cluster.
I could see CDR files generated in the subscriber nodes but it is not uploaded publisher node CDR repository .
I am not seeing any CDR files in Publisher preserve folder.
2014-05-06 19:43:41,517 DEBUG [main] cdragent.cdrAgent (cdrAgent.java:213) - After failure to send files in the previous attempt. Creating new ftpClient object
2014-05-06 19:43:41,517 DEBUG [main] sftpapi.ftpClient (ftpClient.java:148) - ftpClient constructor
2014-05-06 19:43:41,517 DEBUG [main] sftpapi.ftpClient (ftpClient.java:150) - host = 166.98.48.155
2014-05-06 19:43:41,517 DEBUG [main] sftpapi.ftpClient (ftpClient.java:151) - user = ccmservice
2014-05-06 19:43:41,517 DEBUG [main] sftpapi.ftpClient (ftpClient.java:153) - localDir = null
2014-05-06 19:43:41,518 DEBUG [main] sftpapi.ftpClient (ftpClient.java:154) - remoteDir = null
2014-05-06 19:43:41,518 DEBUG [main] sftpapi.ftpClient (ftpClient.java:155) - secureFTP = true
2014-05-06 19:43:41,518 DEBUG [main] sftpapi.ftpClient (ftpClient.java:156) - permKey = true
2014-05-06 19:43:41,518 DEBUG [main] sftpapi.ftpClient (ftpClient.java:157) - Component Name : cdragent
2014-05-06 19:43:41,518 DEBUG [main] cdragent.cdrAgent (cdrAgent.java:216) - After creating the ftpClient object
2014-05-06 19:43:41,518 DEBUG [main] sftpapi.ftpClient (ftpClient.java:179) - connect()-->
2014-05-06 19:43:41,518 DEBUG [main] sftpapi.ftpClient (ftpClient.java:182) - connect(): connect for SFTP
2014-05-06 19:43:41,518 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:94) - Inside the SFTPConnection Constructor
2014-05-06 19:43:41,518 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:364) - checkConnection for Publisher using Key Authentication-->
2014-05-06 19:43:41,519 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:365) - checkConnection: UserName : ccmservice
2014-05-06 19:43:41,519 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:366) - checkConnection: hostname : 166.98.48.155
2014-05-06 19:43:41,519 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:215) - getSshClient-->
2014-05-06 19:43:41,519 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:272) - getSshConnector-->
2014-05-06 19:43:41,520 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:227) - SSH Connection object obtained
2014-05-06 19:43:41,566 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:405) - Trying to authenticate using Private Key File : /home/ccmservice/.ssh/id_dsa
2014-05-06 19:43:41,576 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:428) - The User is Authenticated. Need to get the SftpClient
2014-05-06 19:43:41,616 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:432) - SftpClient is obtained Successfully
2014-05-06 19:43:41,617 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:453) - <--checkConnection for Publisher using Key Authentication
2014-05-06 19:43:41,617 DEBUG [main] sftpapi.ftpClient (ftpClient.java:194) - The status of checkConnection : true
2014-05-06 19:43:41,617 DEBUG [main] sftpapi.ftpClient (ftpClient.java:217) - connect():Successfully connect to 166.98.48.155
2014-05-06 19:43:41,617 DEBUG [main] cdragent.cdrAgent (cdrAgent.java:224) - After attempt to get ftpClient connection
2014-05-06 19:43:41,617 DEBUG [main] cdragent.cdrAgent (cdrAgent.java:237) - Sleeping for 60 seconds
2014-05-06 19:44:41,628 INFO [main] cdragent.cdrAgent (cdrAgent.java:199) - waking up
2014-05-06 19:44:41,628 INFO [main] cdragent.cdrAgent (cdrAgent.java:384) - handleCDRFiles -->
2014-05-06 19:44:41,663 INFO [main] cdragent.cdrAgent (cdrAgent.java:285) - At the moment, # of files ready to be transfered to Publisher is 14011
2014-05-06 19:44:41,763 DEBUG [main] cdragent.cdrAgent (cdrAgent.java:426) - sendFile(): Try bldSendFileCmds
2014-05-06 19:44:41,763 DEBUG [main] cdragent.cdrAgent (cdrAgent.java:430) - FtpManager - sendFile() : The Parent directory of the remote directory send the files : /var/log/active/cm/cdr_repository/
2014-05-06 19:44:41,764 DEBUG [main] sftpapi.ftpClient (ftpClient.java:849) - bldSendFileCmds(): -->
2014-05-06 19:44:41,764 DEBUG [main] sftpapi.ftpClient (ftpClient.java:862) - bldSendFileCmds(): - no need to build command file
2014-05-06 19:44:41,764 DEBUG [main] sftpapi.ftpClient (ftpClient.java:863) - local directory: /var/log/active/cm/cdr/
2014-05-06 19:44:41,764 DEBUG [main] sftpapi.ftpClient (ftpClient.java:864) - remote directory: /var/log/active/cm/cdr_repository/trans/
2014-05-06 19:44:41,764 DEBUG [main] sftpapi.ftpClient (ftpClient.java:865) - final remote directory: /var/log/active/cm/cdr_repository/tmp/
2014-05-06 19:44:41,764 DEBUG [main] sftpapi.ftpClient (ftpClient.java:867) - file: cdr_Dublin_03_201404250000_140996
2014-05-06 19:44:41,764 DEBUG [main] sftpapi.ftpClient (ftpClient.java:869) - bldSendFileCmds(): return <--
2014-05-06 19:44:41,764 DEBUG [main] cdrrep.Util (Util.java:102) - checkJVMFreeMemory(): -->
2014-05-06 19:44:41,764 DEBUG [main] cdrrep.Util (Util.java:158) - checkJVMFreeMemory(): <--
2014-05-06 19:44:41,764 INFO [main] cdragent.cdrAgent (cdrAgent.java:433) - CDRAgent before sending the file: JVM status: [Max = 227.56MB, Total = 58.44MB, Free = 48.29MB (82.64%), Used = 10.15MB (17.36%)]
2014-05-06 19:44:41,765 DEBUG [main] sftpapi.ftpClient (ftpClient.java:499) - sendFiles(): -->
2014-05-06 19:44:41,765 DEBUG [main] sftpapi.ftpClient (ftpClient.java:510) - sendFiles(): file to send = /var/log/active/cm/cdr/cdr_Dublin_03_201404250000_140996
2014-05-06 19:44:41,765 DEBUG [main] sftpapi.ftpClient (ftpClient.java:511) - sendFiles(): remoteDirectory = /var/log/active/cm/cdr_repository/trans/
2014-05-06 19:44:41,765 DEBUG [main] sftpapi.ftpClient (ftpClient.java:518) - sendFiles():remoteDirectoryFinal(NOT NULL)=/var/log/active/cm/cdr_repository/tmp/
2014-05-06 19:44:41,765 DEBUG [main] sftpapi.ftpClient (ftpClient.java:519) - sendFiles():remoteFilePathFinal=/var/log/active/cm/cdr_repository/tmp/cdr_Dublin_03_201404250000_140996
2014-05-06 19:44:41,765 DEBUG [main] sftpapi.ftpClient (ftpClient.java:521) - sendFiles(): localFilePath = /var/log/active/cm/cdr/cdr_Dublin_03_201404250000_140996
2014-05-06 19:44:41,765 DEBUG [main] sftpapi.ftpClient (ftpClient.java:522) - sendFiles(): remoteFilePath = /var/log/active/cm/cdr_repository/trans/cdr_Dublin_03_201404250000_140996
2014-05-06 19:44:41,765 DEBUG [main] sftpapi.ftpClient (ftpClient.java:526) - sendFiles(): uploadFile
2014-05-06 19:44:41,765 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:163) - sendFileThroughSFTP -->
2014-05-06 19:44:41,765 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:174) - Running put command to copy the file
2014-05-06 19:44:41,767 ERROR [main] sftpapi.SFTPConnection (SFTPConnection.java:194) - Sftp Status Exception : com.maverick.sftp.SftpStatusException: Permission denied.: Permission denied
2014-05-06 19:44:41,768 DEBUG [main] sftpapi.ftpClient (ftpClient.java:538) - Sftp Status Exception
2014-05-06 19:44:41,768 ERROR [main] sftpapi.ftpClient (ftpClient.java:539) - SFTP error in transferring file to another machine.
2014-05-06 19:44:41,768 ERROR [main] sftpapi.ftpClient (ftpClient.java:540) - com.maverick.sftp.SftpStatusException: Permission denied.: Permission denied
2014-05-06 19:44:41,768 ERROR [main] sftpapi.ftpClient (ftpClient.java:559) - Exception while sending files: com.maverick.sftp.SftpStatusException: Permission denied.: Permission denied
2014-05-06 19:44:41,768 DEBUG [main] cdrrep.Util (Util.java:102) - checkJVMFreeMemory(): -->
2014-05-06 19:44:41,768 DEBUG [main] cdrrep.Util (Util.java:158) - checkJVMFreeMemory(): <--
2014-05-06 19:44:41,768 INFO [main] cdragent.cdrAgent (cdrAgent.java:443) - CDRAgent after sending the file: JVM status: [Max = 227.56MB, Total = 58.44MB, Free = 47.77MB (81.74%), Used = 10.67MB (18.26%)]
2014-05-06 19:44:41,768 ERROR [main] cdragent.cdrAgent (cdrAgent.java:509) - sftp failed for file cdr_Dublin_03_201404250000_140996
2014-05-06 19:44:41,768 ERROR [main] cdragent.cdrAgent (cdrAgent.java:519) - Alarm: Unable to successfully send file to repository node.
2014-05-06 19:44:41,768 INFO [main] cdragent.cdrAgent (cdrAgent.java:548) - raising alarm CDRAgentSendFileFailureContinues
2014-05-06 19:44:41,769 INFO [main] alarmInf.AlarmSender (AlarmSender.java:107) - alarmName: CDRAgentSendFileFailureContinues
2014-05-06 19:44:41,769 DEBUG [main] alarmInf.AlarmSender (AlarmSender.java:113) - paramName[0] = CDRRepositoryNodeAddress -> paramValue[0] = 166.98.48.155
2014-05-06 19:44:41,769 DEBUG [main] alarmInf.AlarmSender (AlarmSender.java:113) - paramName[1] = CDRAgentNodeAddress -> paramValue[1] = DUB2IPTCCMPIN22/166.98.48.157
2014-05-06 19:44:41,769 DEBUG [main] alarmInf.AlarmSender (AlarmSender.java:119) - sendAlarm ...
2014-05-06 19:44:41,769 INFO [main] cdragent.cdrAgent (cdrAgent.java:575) - <-- handleCDRFiles
2014-05-06 19:44:41,769 DEBUG [main] sftpapi.ftpClient (ftpClient.java:283) - disconnect(): <-ftpClient->
2014-05-06 19:44:41,769 DEBUG [main] sftpapi.ftpClient (ftpClient.java:287) - disconnect(): SFTP Connection -->
2014-05-06 19:44:41,769 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:492) - disconnect(): SFTP Connection -->Could you please check with TAC whether your CUCM version is also affected by the bug CSCsz99841 as I see "ccmservice" user in your logs too?
Description
Symptom:
Cluster Manager will update ccmservice user SSH security keys whenever a new node is added or removed from the cluster
Conditions:
CDR Agent cannot send CDR files from sub to pub using sftp.
This is because SFTP is initiating a connection using the user 'ccmservice'
Workaround:
i) Stop CDR Agent service on Call Processing Node
ii) Gain root access via remote access support account. And then
Copy over the authorized keys in the specific user's SSH directory:
/home/sftpuser/.ssh/authorized_keys file to
/home/ccmservice/.ssh/authorized_keys
Root CLI command:
cp /home/sftpuser/.ssh/authorized_keys /home/ccmservice/.ssh/authorized_keys
iii) Start CDR Agent service on Call Processing Node.
Further Problem Description:
This was caused by changes that were made to tighten up file permissions around the CUCM file structure -
FCP to compressor w/cluser problem FCP tmp files.
So I have no problem submitting single video to my cluster.
I use "Never copy source to Cluster" from compressor.
I keep source media on an NFS share on my desktop client.
I am submitting to a 6 machine cluster of G5s.
I recently started attempting to tackle submitting FCP projects through compressor. I have read that there are issues submitting with FIle->Export->Compressor and thus have been attemping to submit right from the sequence file in the browser. The problem that I am having is this.
<mrk tms="254678829.330" tmt="01/26/2009 11:07:09.330" pid="1736" kind="end" what="service-request" req-id="7A5BF634-78FA-478E-B15D-4AB049CA04BB:1" msg='Preprocessing job request error (exception=Source file "/private/var/folders/Jq/JqzDuvOaH6yDxo3jBmBOVk+TI/TemporaryItems/44D666EA-870F-4B47-92A8-5A.fcp" not accessible on the cluster and remote copy is disabled).'></mrk>
FCP seems to be creating a tmp file of the project on my local desktop which is NOT apart of the cluster. This tmp file is not being read by the cluster. I have even mounted the /private/var/folders/Jq/JqzDuvOaH6yDxo3jBmBOVk+TI/TemporaryItems/ location on my desktop machine to all the cluster nodes in addition to already having mounted the root location of the drive that contains the media for the project.
Any ideas would be more than welcome.It is still possible to submit FCP sequences to Compressor, however, the batch will fail when you try to send that batch to a cluster. What QMaster does is "open separate copies" of a program per instance. For example, if you have a Cluster where service nodes are broken up into multiple instances each, QMaster will expect to open Final Cut Pro (since that's where the source footage is located) on every single instance.
If you want to use your cluster for encoding, export a Quicktime file from FCP and submit that file to Compressor.
Some better explanations:
http://support.apple.com/kb/TS1099
http://discussions.apple.com/message.jspa?messageID=8870118#8870118
http://discussions.apple.com/thread.jspa?messageID=8834921� -
How to send multiple files with it's original name over HTTPS using one CC?
I am working on a File to HTTPs scenario. It is in production and working fine. Currently we send only one file and I have hard coded the name in the communication channel in the header fields. Now we have to send more files with different names and I want to use only one receiver channel instead of many. We need to send the files with their original names.
I used the ASMA in the sender File Adapter and I see the FileName in the dynamic configuration under http://sap.com/xi/XI/System/File name="FileName".
I know we can use a UDF in message mapping and get the value and put it in HEADERFIELDONE. But we don't want to use mapping as the files are huge and we don't want to insert XML tags in the payload.
So how do I put the Filename from the DynamicConfiguration to the HTTP header field as FileName without using mapping? Are there any settings?
Can I put something in the PROLOG or can I use any other module in the File Sender Adapter or is there any other option?
Any help is appreciated.
Thanks
SaiSee my blog:
/people/stefan.grube/blog/2009/06/19/unknown-use-case-of-dynamicconfigurationbean-store-file-name-to-jms-header-without-mapping
You have to put the configuration in sender channel, as HTTP adapter does not allow modules.
For the second module, put values related to HTTP adapter. -
How can I create an csv/excel file using pl/sql and then sending that file
How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.968776 wrote:
How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.You are trying to do it at a wrong place..
Whay do you want database (pl/sql) code to do these things?
Anyhow, you may be interested in :
{message:id=9360007}
{message:id=9984244} -
Sending multiple files using one socket
Hi guys
I'm working on a simple app that sends multiple files over LAN or I-NET. The problem is that the app run seems to be non-deterministic. I keep getting this error on the client side:
java.io.UTFDataFormatException: malformed input around byte 5
at java.io.DataInputStream.readUTF(Unknown Source)
at java.io.DataInputStream.readUTF(Unknown Source)
at service.DownloadManager.storeRawStream(DownloadManager.java:116)
at service.DownloadManager.downloadFiles(DownloadManager.java:47)
at manager.NetworkTransferClient$1.run(NetworkTransferClient.java:104)The byte position changes every time I run a transfer. The error is caused by this line: String fileName = in.readUTF(); Here's the complete code:
Client
private void storeRawStream() {
try {
FileOutputStream fileOut;
int fileCount = in.readInt();
for(int i=0; i<fileCount; i++) {
byte data[] = new byte[BUFFER];
String fileName = in.readUTF();
fileOut = new FileOutputStream(new File(upload, fileName));
long fileLength = in.readLong();
for(int j=0; j<fileLength / BUFFER; j++) {
int totalCount = 0;
while(totalCount < BUFFER) {
int count = in.read(data, totalCount, BUFFER - totalCount);
totalCount += count;
fileOut.write(data, 0, totalCount);
fileOut.flush();
bytesRecieved += totalCount;
// read the remaining bytes
int count = in.read(data, 0, (int) (fileLength % BUFFER));
fileOut.write(data, 0, count);
fileOut.flush();
fileOut.close();
transferLog.append("File " + fileName + " recieved successfully.\n");
} catch (Exception ex) {
ex.printStackTrace();
}Server
public void sendFiles(File[] files) throws Exception {
byte data[] = new byte[BUFFER];
FileInputStream fileInput;
out.writeInt(files.length);
for (int i=0; i<files.length; i++) {
// send the file name
out.writeUTF(files.getName());
// send the file length
out.writeLong(files[i].length());
fileInput = new FileInputStream(files[i]);
int count;
while((count = fileInput.read(data, 0, BUFFER)) != -1) {
out.write(data, 0, count);
bytesSent += count;
fileInput.close();
out.flush();
Does anybody know where's the problem? Thanx for any reply.Send the length of each file ahead of each file, with DataOutputStream.writeLong().
When reading, read that long, then stop reading bytes when you've read exactly that length. -
How to send a file from FTP to external server
My requirement is to send a file from FTP to D3(External) server.
Now I am able to store the file in Appln server.
I want to send the file created by the program thru FTP to D3 server.
I know the username,Password,HostID,RFC destination details.
How to send the file from FTP to D3.
If u have any program,Plz send it...
I dont want the function modules name...I want the example code ....
Thanks in advance.Hi Sumi,
You could do it so that you create a .bat or .cmd script to your server which does your ftp transfer.
To do this you must use sm69 to create a external operating system command which you can call from FM SXPG_COMMAND_EXECUTE. To SXPG_COMMAND_EXECUTE you the file you need to transfer as a parameter.
What happens is that your abap program passes the file to windows batch script (.bat .cmd) which will then do the transfer for you.
Here's a sample of ftp-script for windows:
echo open IP_ADDRESS_TO_YOUR_SERVER > c:zftp_transfer.ftp
echo USERNAME>> c:zftp_transfer.ftp
echo PASSWORD>> c:zftp_transfer.ftp
echo put YOUR_FILE>> c:zftp_transfer.ftp
echo quit>> c:zftp_transfer.ftp
ftp -s:c:zftp_transfer.ftp
also take a look here for more details:
http://support.microsoft.com/?kbid=96269
Ok, this might be a bit trivial but if your server is unix/aix etc.. Instead of using batch script you must do a shell script.
Regards,
Ville -
I have an iPad 2, and I am sending PDF files to my iPad, via a Hotmail account. But, the PDF arrives to the iPad Mail account already opened at the bottom of the email. Is there a way to prevent this auto-opening of the PDF. I've seen screen shots with the box, and PDF listed inside the box, but mine open automatically. I want to get them into iBooks...?
I am having the same problem and it is even bigger.
When opening a 1-page PDF in iBooks and sending it via mail it is sent inline as preview, but the recipient cannot open the file anymore. Also on iPad and iPhone there is no "open in" possible.
Somehow the mail app does destroy the file. What is going wrong? -
I am using cFP 2000 RT in my application. When I build exe and download the application to the cFP 2000 RT, I get "Error 6 occured in Invoke Node in Dist Send Result File To RT.vi--> Build Application.vi"
The steps followed.
1. In the LabVIEW 7.0 Main Panel, Select the execution target as RT Target.
2. Tools --> Build Application or Shared Library. In the Target Tab the destination directory is selected as \\xxx.xxx.xxx.xxx\c\ni-rt\startup automatically.
3. In the SOurce file tab, select the Top level VI.
4. Press Build to make the executable of the application. The application is built and at the end the error message is poped up. (see the attached file)
Software Configuratio
n:
1. LabVIEW 7.0
2. Field Point 4.0
3. LabVIEW RT 7.0
Help me solve this problem. Thanks in advance.
Attachments:
Error_Message_and_RT_Info.bmp 313 KBThis is most likely coming from the specific file it mentions in the error, Dist Send Result File To RT.vi. The error 6 means the file can't be found. One thing to try first is to add this VI as a Dynamic VI in Application Builder. Another option is to change the path that this VI is invoked from, or is not called by an Invoke Node at all.
I hope this helps, feel free to contact support if the problem continues.
Regards,
Robert Jackson
Application Engineer -
How to send a file from a java program to a servlet and get a response
Hi,
How can I call a servlet from a standalone java program and send a file to a servlet using POST method and in return gets the status back from the servlet. Any help is appreciated any small sample will help.
Thanks.Hi,
I am trying the following sample I got from net and am getting the following error. Any help what I am doing wrongs:
06/12/24 02:15:58 org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null
06/12/24 02:15:58 at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:294)
06/12/24 02:15:58 at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:268)
06/12/24 02:15:58 at mypackage9.Servlet1.doPost(Servlet1.java:38)
06/12/24 02:15:58 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
06/12/24 02:15:58 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
06/12/24 02:15:58 at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
06/12/24 02:15:58 at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
06/12/24 02:15:58 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
06/12/24 02:15:58 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
06/12/24 02:15:58 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
06/12/24 02:15:58 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
06/12/24 02:15:58 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
06/12/24 02:15:58 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
06/12/24 02:15:58 at java.lang.Thread.run(Thread.java:534)Here is the sample client code:
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.methods.PostMethod;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
public class PostAFile {
private static String url =
"http://192.168.0.17:8988/Vulcan_Materials-ServletPost2-context-root/servlet/Servlet1";
public static void main(String[] args) throws IOException {
HttpClient client = new HttpClient();
PostMethod postMethod = new PostMethod(url);
client.setConnectionTimeout(8000);
File f = new File("C:\\load.txt");
System.out.println("File Length = " + f.length());
postMethod.setRequestBody(new FileInputStream(f));
int statusCode1 = client.executeMethod(postMethod);
System.out.println("statusLine>>>" + postMethod.getStatusLine());
postMethod.releaseConnection();
}Here is the sample servlet code:
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.PrintWriter;
import java.io.IOException;
import org.apache.commons.fileupload.DiskFileUpload;
import org.apache.commons.fileupload.FileItem;
import java.util.List;
import java.util.Iterator;
import java.io.File;
public class Servlet1 extends HttpServlet
private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
public void init(ServletConfig config) throws ServletException
super.init(config);
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
try
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
java.util.Enumeration e= request.getHeaderNames();
while (e.hasMoreElements()) {
String headerName=(String)e.nextElement();
System.out.println(headerName +" = "+request.getHeader(headerName));
//System.out.println("Content Type ="+request.getContentType());
DiskFileUpload fu = new DiskFileUpload();
// If file size exceeds, a FileUploadException will be thrown
fu.setSizeMax(1000000);
List fileItems = fu.parseRequest(request);
Iterator itr = fileItems.iterator();
System.out.println("***************************");
while(itr.hasNext()) {
FileItem fi = (FileItem)itr.next();
//Check if not form field so as to only handle the file inputs
//else condition handles the submit button input
if(!fi.isFormField())
System.out.println("\nNAME: "+fi.getName());
System.out.println("SIZE: "+fi.getSize());
//System.out.println(fi.getOutputStream().toString());
File fNew= new File("C:\\", fi.getName());
System.out.println(fNew.getAbsolutePath());
fi.write(fNew);
else
System.out.println("Field ="+fi.getFieldName());
out.println("SUCCESS123456: ");
out.close();
catch(Exception e)
e.printStackTrace();
}Any help on what is wrong.
Thanks -
How to send a file using IOCP?
When using blocking sockets, all I had to do to send a file was to open the file and loop through it and send it in chunks.
But I find sending a file using overlapped sockets to be more challenging. I can think of the following approach to do it:
I open the file and send the first chunk, and I keep track of the file handle and file position.
Now when I get a completion packet indicating that some data has been sent, I check to see if the socket is currently in the process of sending a file, and if it is, I retrieve the file handle and file position and send the next chunk.
I repeat step 2 until I reach the last chunk in the file, and then I close the file.
Is this approach correct?
Note: I don't want to use TransmitFile().This approach is more or less correct, but maybe you'd have to know some more things.
If send "returns" it means, that you buffer has been copied into the internal buffer of system or the network interface card or whatever... in general it means, that you can free/reuse the buffer you have used, but it doesn't mean, that the data
has been delivered (it does not even mean it has been sent already).
That's why I'm normally using some flow-control (messages from the receiver) to verify the real data flow.
The next point is, that you shouldn't read from the file only after you got the ok that the first chunk has been sent. You should read the data as soon as possible so that you can respond much quicker to a send-complete-message. I'd recommend to send using
multiple buffers.
Rudolf -
Excel automatically create .tmp file when open after close Excel, tmp file still there
Anytime I save a change to one of my Excel files, the TMP file appears in the destination folder and remains. The "main" Excel file
saves the retains the changes that I made and after each subsequent change, a new TMP file is created...old TMP files are not deleted. This is only happening with Excel files.Hi,
From your description, I understand that you want .tmp file disappear . If there is any misunderstanding, please feel free to let me know.
This issue can be related to many factors.
First, try to check out file->save-> Save autorecover information, if you use Excel 2010.
If the problem persists, it may be a permissions problem.
Take ownership of the related file
=============
1. In the "Start" menu, locate "Command Prompt". Right-click and choose "Run as Administrator".
Note: If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
Note 2: In Windows XP, click Start >Run, type cmd and press Enter.
2. Type the following commands, then press "Enter" to execute them one by one. Please note the space before the command and its parameter.
takeown /f <path>\<file name>
cacls <path>\<file name> /G administrators:F
3. Restart the computer to check the issue.
More references:
http://support.microsoft.com/kb/308421
If all user has full control rights , the .tmp file still in the folder ,please clean the virus .
You could try disabling this program to see if the problem goes away.
Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything I can do for you, please feel free to let me know. -
How to use the same channel to send a file and messages to the server
I'm trying to develop a simple program that will send and receive files from the server and in the same time I need to communicate with the server through the messages
I'm using TCP Socket
my problem is
I have only one channel
so, I have no option, either I can use it for sending the file itself or sending the message .. but not both !
my question is : How can I use the same channel for sending and receiving (file & message)
I would appreciate for any clue or hint
bestkajbj wrote:
kmarwani wrote:
Thanks for reply
yes, that what I'm thinking to do
but, in case of sending binary file, if I attached a flag on its header, will it corrupt the file ?
bestThe other end would of course need to decode the messages that you get, and only write the "data" part to the file.Thanks
I'm gonna try to hard-code what you suggest and i will post what happen with me here
even though I'm not sure how can I add header to a binary file and remove it from the file at other end. (coz I read it as stream and send as array without touching its contents)
this how I'm sending the file
ConnSocket = CSocket.accept();
ToClient = new DataOutputStream(ConnSocket.getOutputStream());
File myFile = new File("abc.jpg");
FileInputStream myFileInStream = new FileInputStream(myFile);
BufferedInputStream mybuffInStream = new BufferedInputStream(myFileInStream);
myBytArray = new byte[(int) myFile.length()];
mybuffInStream.read(myBytArray, 0, myBytArray.length);
ToClient.write(myBytArray, 0, myBytArray.length);
ToClient.flush();
myFileInStream.close();best -
I recently bought two iMac quad core i5 processor speed 2.5 Ghz. Every time I use Air Drop and I send a file from one iMac to the other, a black curtain drops and I am asked to restart the computer!!! What can I do?
That's a kernel panic and indicates some sort of problem either with the computer's hardware or software. Visit The XLab FAQs and read the FAQ on diagnosing kernel panics. It would help to post the panic log: Mac OS X- How to log a kernel panic.
Meanwhile, try booting the computers into Safe Mode then restarting normally. If this is simply a disk repair or cache file problem then this may fix it.
You can also try creating a new admin account on each computer then booting into the new account. This would help determine if the problem is related to a bad file in the user accounts.
Maybe you are looking for
-
Jabber for windows 9.2: search bar field mapping?
Hello, using JFW 9.2 on a cucm 8.6/cups 8.6 environnement, I saw that we can search user from first and last name, but I would like to know if it is possible to search a user from telephone number or other field? For information, JFW perform lookup d
-
Due date analysis for G/L account
Hy! I need to make a report that makes due date analysis for G/L accounts similar to S_ALR_87012078 Due date analysis for open items for Account payable. Has any one experience with that and can help me with that? Regards, Marina
-
HI In Sharepoint 2013 BI solutions using Performance point services is can be compatible with Analysis server 2008 R2? here in sp 2013 i upgraded sp 2010 BI site and when i open dashboard pages they not display the pointers. and when i open dashboar
-
Getting external swf to stay visible?
Hi I have an external swf that contains a button that controls my main swf's timeline. I can get it to navigate fine, but as soon as it navigates, my external swf disappears, because my main swf is no longer on the frame my external swf was imported
-
im having the next error...someting about negative cache... this is my first webdynpro proyect i load to PRD system and has this message when trying to execute a model RFC. Error cargarHojaAutorizacion: com.femsa.br.afa.rfc.model.bireg.Zebife_00002 F