How can i get a filename?
I have some files on linux, I need to get their names and checks if the word that I search exists in the filename or not? if it does, I will copy the file as a different name. If it doesn't i will raise an error.
I want to do that using pl/sql, is there anyone who can help me?
Hello,
FTP From PL/SQL, look at this,
http://www.oracle-base.com/articles/misc/FTPFromPLSQL.php
something like this,
DECLARE
l_conn UTL_TCP.connection;
l_list ftp.t_string_table;
BEGIN
l_conn := ftp.login('ftp.company.com', '21', 'ftpuser', 'ftppassword');
ftp.list(p_conn => l_conn,
p_dir => '/u01/app/oracle',
p_list => l_list);
ftp.logout(l_conn);
utl_tcp.close_all_connections;
IF l_list.COUNT > 0 THEN
FOR i IN l_list.first .. l_list.last LOOP
DBMS_OUTPUT.put_line(i || ': ' || l_list(i));
END LOOP;
END IF;
END;
/ http://www.oracle-base.com/dba/miscellaneous/ftp.pks
http://www.oracle-base.com/dba/miscellaneous/ftp.pkb
Hope this helps,
Christian Balz
Similar Messages
-
How can i get report filename in a fomula column
Hi,
We are using Oracle Reports 6i.
i want to get the filename of current report in a formula column.
how can we take the current report filename into a variable in a formula column..
If it is possible please provide your valuable inputs on how to achieve this or please provide any helpful pointers
Please get back to me if my requirement is not clear
Thanks,
anishIts not possible to get the report file name in a formula column
-
How can I get a filename without the file extension?
I using a JFileChooser to select and read a file. Now I want to get the filename without the file extension
JFileChooser j = new JFileChooser;
String file = j.getSelectedFile.getName();
At the moment I get this result "file.dat". I need only the filename.....
Thank you
ThomasIt's quite that.
Here is the code to do that (and the method to get only the extension):
public String getFileName(String text) {
int ind = text.lastIndexOf(".");
if(0<ind && ind<(text.length()-1)) {
return text.substring(0, ind);
return(null);
public String getFileExtension(String text) {
int ind = text.lastIndexOf(".");
if(0<ind && ind<(text.length()-1)) {
return text.substring(ind+1).toLowerCase();
return(null);
}(I used 0<ind instead of ind>0 because with the code formatting there is a bug with > )
I hope this helps,
Denis -
How can I get a filename during or after saving in CS4/5?
I'm trying to get the new filename of a file the user is saving. The way I'm trying to do it right now is to wait until after the file is saved, and then just check the current filename.
In CS5, I found kAIDocumentWritePostprocessNotifier to be notified after a save,. But CS4 only has kAIDocumentWritePreprocessNotifier. I thought of using a timer, but I was wary that my plugin might be shut down before I can take an action if the user is shutting down Illustrator and saving. Is there some way to emulate this functionality? Is there a way to check when the file has been saved? That'd at least let the timer length go under a second safely, by checking repeatedly.
Or, better yet, is there just a way to get the new filename directly?
Edit: It appears Postprocess is still too early in CS5. So, any answer will be helpful for both CS4 and CS5.Hello,
FTP From PL/SQL, look at this,
http://www.oracle-base.com/articles/misc/FTPFromPLSQL.php
something like this,
DECLARE
l_conn UTL_TCP.connection;
l_list ftp.t_string_table;
BEGIN
l_conn := ftp.login('ftp.company.com', '21', 'ftpuser', 'ftppassword');
ftp.list(p_conn => l_conn,
p_dir => '/u01/app/oracle',
p_list => l_list);
ftp.logout(l_conn);
utl_tcp.close_all_connections;
IF l_list.COUNT > 0 THEN
FOR i IN l_list.first .. l_list.last LOOP
DBMS_OUTPUT.put_line(i || ': ' || l_list(i));
END LOOP;
END IF;
END;
/ http://www.oracle-base.com/dba/miscellaneous/ftp.pks
http://www.oracle-base.com/dba/miscellaneous/ftp.pkb
Hope this helps,
Christian Balz -
How can I get the MS-DOS style filename?
Hi all;
How can I get the MS-DOS style filename from LabVIEW?
I mean, in Windows if I have the following dir/file:
"C:\My Documents\Misc Folder\text.txt"
In MS-DOS style looks something like:
"C:\MYDOCU~1\MISCFO~2\TEXT.TXT"
Enrique
www.vartortech.comA call to a kernel32.dll function does the job. See the attached VI.
LabVIEW, C'est LabVIEW
Attachments:
GetShortPathA.vi 16 KB -
How can I get Firefox to automatically rename images when clicking "Save image as" on the menu, when an image with the same file name already exists in the folder??
Hello,
That is not a feature that is supported natively within Firefox but there are various add-ons which I think will do the job you need.
The one I have used is [https://addons.mozilla.org/en-US/firefox/addon/web-slide-show/?src=search Web Slide Show]. This is primarily an add-on for viewing a slideshow of images when they are presented as thumbnails on a web page. However once you are in the slideshow there is a download button which will download all the images in the slideshow. It will automatically rename the images if an image with the same name already exists in the folder.
If you don't like that add-on then here are some others that may do the same job:
* [https://addons.mozilla.org/en-US/firefox/addon/image-download-%E2%85%B1/?src=search Image Download II]
* [https://addons.mozilla.org/En-us/firefox/addon/image-picker/ Image Picker]
I hope that helps. Let me know if not.
Also I notice that you are using Firefox v23. That is now an outdated version. To get the latest security updates I suggest updating to version 24. See the support article here: [[Update Firefox to the latest version]]. -
What i get is only the directories and files that in other nodes. But i have also files on the root directory and i never
get them. This is a screenshot of my program after i got the content of my ftp. I'm using treeView to display my ftp content:
You can see two directories from the root but no files on the root it self. And in my ftp server host i have files in the root direcory.
This is the method i'm using to get the directory listing:
public IEnumerable<FTPListDetail> GetDirectoryListing(string rootUri)
var CurrentRemoteDirectory = rootUri;
var result = new StringBuilder();
var request = GetWebRequest(WebRequestMethods.Ftp.ListDirectoryDetails, CurrentRemoteDirectory);
using (var response = request.GetResponse())
using (var reader = new StreamReader(response.GetResponseStream()))
string line = reader.ReadLine();
while (line != null)
result.Append(line);
result.Append("\n");
line = reader.ReadLine();
if (string.IsNullOrEmpty(result.ToString()))
return new List<FTPListDetail>();
result.Remove(result.ToString().LastIndexOf("\n"), 1);
var results = result.ToString().Split('\n');
string regex =
@"^" + //# Start of line
@"(?<dir>[\-ld])" + //# File size
@"(?<permission>[\-rwx]{9})" + //# Whitespace \n
@"\s+" + //# Whitespace \n
@"(?<filecode>\d+)" +
@"\s+" + //# Whitespace \n
@"(?<owner>\w+)" +
@"\s+" + //# Whitespace \n
@"(?<group>\w+)" +
@"\s+" + //# Whitespace \n
@"(?<size>\d+)" +
@"\s+" + //# Whitespace \n
@"(?<month>\w{3})" + //# Month (3 letters) \n
@"\s+" + //# Whitespace \n
@"(?<day>\d{1,2})" + //# Day (1 or 2 digits) \n
@"\s+" + //# Whitespace \n
@"(?<timeyear>[\d:]{4,5})" + //# Time or year \n
@"\s+" + //# Whitespace \n
@"(?<filename>(.*))" + //# Filename \n
@"$"; //# End of line
var myresult = new List<FTPListDetail>();
foreach (var parsed in results)
var split = new Regex(regex)
.Match(parsed);
var dir = split.Groups["dir"].ToString();
var permission = split.Groups["permission"].ToString();
var filecode = split.Groups["filecode"].ToString();
var owner = split.Groups["owner"].ToString();
var group = split.Groups["group"].ToString();
var filename = split.Groups["filename"].ToString();
var size = split.Groups["size"].Length;
myresult.Add(new FTPListDetail()
Dir = dir,
Filecode = filecode,
Group = group,
FullPath = CurrentRemoteDirectory + "/" + filename,
Name = filename,
Owner = owner,
Permission = permission,
return myresult;
And then this method to loop over and listing :
private int total_dirs;
private int searched_until_now_dirs;
private int max_percentage;
private TreeNode directories_real_time;
private string SummaryText;
private TreeNode CreateDirectoryNode(string path, string name , int recursive_levl )
var directoryNode = new TreeNode(name);
var directoryListing = GetDirectoryListing(path);
var directories = directoryListing.Where(d => d.IsDirectory);
var files = directoryListing.Where(d => !d.IsDirectory);
total_dirs += directories.Count<FTPListDetail>();
searched_until_now_dirs++;
int percentage = 0;
foreach (var dir in directories)
directoryNode.Nodes.Add(CreateDirectoryNode(dir.FullPath, dir.Name, recursive_levl+1));
if (recursive_levl == 1)
TreeNode temp_tn = (TreeNode)directoryNode.Clone();
this.BeginInvoke(new MethodInvoker( delegate
UpdateList(temp_tn);
percentage = (searched_until_now_dirs * 100) / total_dirs;
if (percentage > max_percentage)
SummaryText = String.Format("Searched dirs {0} / Total dirs {1}", searched_until_now_dirs, total_dirs);
max_percentage = percentage;
backgroundWorker1.ReportProgress(percentage, SummaryText);
percentage = (searched_until_now_dirs * 100) / total_dirs;
if (percentage > max_percentage)
SummaryText = String.Format("Searched dirs {0} / Total dirs {1}", searched_until_now_dirs, total_dirs);
max_percentage = percentage;
backgroundWorker1.ReportProgress(percentage, SummaryText);
foreach (var file in files)
TreeNode file_tree_node = new TreeNode(file.Name);
file_tree_node.Tag = "file" ;
directoryNode.Nodes.Add(file_tree_node);
numberOfFiles.Add(file.FullPath);
return directoryNode;
Then updating the treeView:
DateTime last_update;
private void UpdateList(TreeNode tn_rt)
TimeSpan ts = DateTime.Now - last_update;
if (ts.TotalMilliseconds > 200)
last_update = DateTime.Now;
treeViewMS1.BeginUpdate();
treeViewMS1.Nodes.Clear();
treeViewMS1.Nodes.Add(tn_rt);
ExpandToLevel(treeViewMS1.Nodes, 1);
treeViewMS1.EndUpdate();
And inside a backgroundworker do work how i'm using it:
var root = Convert.ToString(e.Argument);
var dirNode = CreateDirectoryNode(root, "root", 1);
e.Result = dirNode;
And last the FTPListDetail class:
public class FTPListDetail
public bool IsDirectory
get
return !string.IsNullOrWhiteSpace(Dir) && Dir.ToLower().Equals("d");
internal string Dir { get; set; }
public string Permission { get; set; }
public string Filecode { get; set; }
public string Owner { get; set; }
public string Group { get; set; }
public string Name { get; set; }
public string FullPath { get; set; }
Now the main problem is that when i list the files and directories and display them in the treeView it dosen't get/display
the files in the root directory. Only in the sub nodes.
I will see the files inside hello and stats but i need also to see the files in the root directory.
1. How can i get and list/display the files of the root directory ?
2. For the test i tried to add to a List<string> the items in var files to see if i get the root files at all.
This is what i tried in the CreateDirectoryNode before it i added:
private List<string> testfiles = new List<string>();
Then after var files i did:
testfiles.Add(files.ToList()
But this is wrong. I just wanted to see in testfiles what items i'm getting in var files in the end of the process.
Both var files and directoryListing are IEnumerable<FTPListDetail> type.
The most important is to make the number 1 i mentioned and then to do number 2.Risa no.
What i mean is this. This is a screenshot of my ftp server at my host(ipage.com).
Now this is a screenshot of my program and you can see that in my program i have only the directories hello stats test but i don't have the files in the root: htaccess.config swp txt 1.txt 2.png....all this files i don't have it on my treeView.
What i want it to be is that on my program on the treeView i will also display the files like in my ftp server.
I see in my program only the directories and the files in the directories but i don't see the files on the root directory/node.
I need it to be like in my ftp server i need to see in my program the htaccess 1.txt 2.png and so on.
So what i wrote in my main question is that in the var files i see this files of the root directory i just don't know to add and display them in my treeView(my treeView is treeViewMS1).
I know i checked in my program in the method CreateDirectoryNode i see in the first iteration of the recursive that var files contain this root files i just dont know how to add and display them in my treeView.
On the next iterations when it does the recursive it's adding the directories hello stats test and the files in this directories but i need it to first add the root files. -
How can I get an mp4 video running on iPad Mini?
How can I get an mp4 video running on iPad Mini, which is already in the iTunes File?
Pad2, the new iPad Supported Video Formats & Movie Formats
H.264 video up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format
You can use a USB flash drive & the camera connection kit.
Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
Cheers, Tom -
How Can I get a HeapDump file in JRockit R26.3 or latter version
I had tried "-Djrockit.oomdiagnostics.filename=oom.txt" arg,but it didn't work.
how can i get a heapdump file in JRockit R26.3 or latter version ?
I can only get the under infomation by using a ctrlhandler.act file.
======== BEGIN OF HEAPDIAGNOSTIC =========================
Invoked from ctrlbreakhandler
Total memory in system: 402075648 bytes
Available physical memory in system: 54231040 bytes
-Xmx (maximal heap size) is 314572800 bytes
Heapsize: 314572800 bytes
Free heap-memory: 0 bytes
mmStartCompaction = 0x01DC0000, mmEndCompaction = 0x03080000
3 GB mode was not used
--------- Detailed Heap Statistics: ---------
59.1% 110757k 1360491 +110757k [C
17.0% 31916k 1361767 +31916k java/lang/String
16.6% 31021k 1323579 +31021k java/util/HashMap$Entry
4.7% 8766k 1909 +8766k [Ljava/util/HashMap$Entry;
0.8% 1470k 2256 +1470k [B
0.3% 491k 480 +491k [Lweblogic/servlet/utils/URLMatchMap$URLMatchNode;
0.2% 342k 4871 +342k java/lang/Class
0.2% 283k 3942 +283k [Ljava/lang/Object;
0.1% 215k 1536 +215k [I
0.1% 172k 7376 +172k java/util/Hashtable$Entry
0.1% 157k 1552 +157k weblogic/management/tools/AttributeInfo
0.0% 83k 2421 +83k [Ljava/lang/String;
0.0% 83k 299 +83k [Ljava/util/Hashtable$Entry;
0.0% 74k 1900 +74k java/util/HashMap
0.0% 71k 1530 +71k java/lang/reflect/Method
0.0% 62k 472 +62k weblogic/servlet/internal/ServletStubImpl
0.0% 61k 461 +61k weblogic/management/runtime/ServletRuntimeMBean_Stub
0.0% 55k 2383 +55k java/util/ArrayList
0.0% 50k 3227 +50k java/lang/Integer
0.0% 48k 1552 +48k weblogic/management/internal/DynamicMBeanImpl$XAttributeInfo
0.0% 48k 1229 +48k java/util/WeakHashMap$Entry
0.0% 43k 1840 +43k java/lang/ref/WeakReference
0.0% 41k 528 +41k weblogic/rmi/internal/MethodDescriptor
0.0% 38k 1768 +38k [Ljava/lang/Class;
0.0% 38k 1637 +38k javax/management/modelmbean/DescriptorSupport$Pair
0.0% 37k 805 +37k weblogic/management/WebLogicObjectName
0.0% 34k 480 +34k [Lweblogic/servlet/utils/URLMatchMap$URLExtensionNode;
0.0% 33k 532 +33k weblogic/management/tools/OperationInfo
0.0% 32k 461 +32k weblogic/servlet/internal/ServletRuntimeMBeanImpl
0.0% 30k 982 +30k java/lang/ref/SoftReference
0.0% 26k 419 +26k weblogic/servlet/internal/dd/ServletDescriptor
0.0% 20k 423 +20k [Lweblogic/utils/collections/ConcurrentHashMap$Entry;
0.0% 19k 423 +19k weblogic/utils/collections/ConcurrentHashMap
0.0% 19k 1222 +19k java/util/jar/Attributes$Name
0.0% 18k 100 +18k [Ljava/lang/reflect/Method;
0.0% 17k 447 +17k weblogic/servlet/utils/URLMatchMap$URLMatchNode
0.0% 17k 12 +17k [J
0.0% 16k 425 +16k weblogic/servlet/internal/dd/UIDescriptor
0.0% 16k 684 +16k javax/management/MBeanParameterInfo
0.0% 15k 480 +15k weblogic/servlet/utils/URLMatchMap
0.0% 14k 471 +14k java/util/TreeMap$Entry
0.0% 14k 453 +14k javax/management/modelmbean/DescriptorSupport
0.0% 14k 638 +14k [Ljavax/management/MBeanParameterInfo;
0.0% 13k 431 +13k weblogic/servlet/internal/dd/ServletMappingDescriptor
0.0% 13k 852 +13k com/octetstring/vde/syntax/DirectoryString
0.0% 13k 431 +13k [S
0.0% 12k 553 +12k java/util/Vector
0.0% 11k 302 +11k java/lang/Package
0.0% 11k 369 +11k weblogic/xml/util/TernarySearchTree$Node
0.0% 11k 727 +11k java/lang/Boolean
0.0% 10k 266 +10k java/util/Hashtable
0.0% 9k 182 +9k java/net/URL
0.0% 9k 15 +9k [Ljava/util/WeakHashMap$Entry;
0.0% 9k 386 +9k weblogic/rmi/internal/ClientMethodDescriptor
0.0% 8k 158 +8k com/octetstring/vde/schema/AttributeType
0.0% 8k 90 +8k weblogic/logging/WLServerLogRecord
0.0% 8k 211 +8k weblogic/management/commo/CommoModelMBeanAttributeInfo
0.0% 8k 2 +8k [Lcom/octetstring/vde/backend/standard/KeyPtr;
0.0% 7k 322 +7k jrockit/vm/FCECache$FCE
0.0% 7k 471 +7k weblogic/servlet/internal/URLMatchHelper
0.0% 7k 58 +7k [Lweblogic/management/tools/AttributeInfo;
0.0% 7k 58 +7k [Lweblogic/management/internal/DynamicMBeanImpl$XAttributeInfo;
0.0% 6k 288 +6k weblogic/utils/collections/ConcurrentHashMap$Entry
0.0% 6k 431 +6k java/util/HashMap$EntrySet
0.0% 6k 428 +6k java/util/jar/Attributes
0.0% 6k 156 +6k jrockit/memory/SoftCache$ValueCell
0.0% 5k 379 +5k java/lang/Long
0.0% 5k 751 +5k java/lang/Object
0.0% 5k 77 +5k java/util/GregorianCalendar
0.0% 5k 231 +5k java/util/LinkedList$Entry
0.0% 5k 32 +5k weblogic/kernel/ExecuteThread
0.0% 4k 25 +4k weblogic/rmi/internal/BasicRuntimeDescriptor
0.0% 4k 111 +4k [Z
0.0% 4k 204 +4k com/octetstring/vde/backend/standard/KeyPtr
0.0% 4k 301 +4k com/bea/utils/misc/ProcessProperty
0.0% 4k 49 +4k weblogic/apache/xerces/impl/dv/xs/XSSimpleTypeDecl
0.0% 4k 73 +4k weblogic/jndi/internal/ApplicationNamingNode
0.0% 4k 58 +4k weblogic/management/tools/Info
0.0% 4k 290 +4k java/lang/Byte
0.0% 4k 289 +4k java/lang/Short
0.0% 4k 57 +4k [Ljava/lang/ThreadLocal$ThreadLocalMap$Entry;
0.0% 4k 275 +4k java/lang/Character
0.0% 4k 108 +4k java/math/BigInteger
0.0% 4k 60 +4k weblogic/management/commo/ModelMBeanTypeMBean
0.0% 4k 106 +4k java/util/TreeMap
0.0% 4k 172 +4k java/text/EntryPair
0.0% 3k 99 +3k weblogic/management/commo/CommoModelMBeanOperationInfo
0.0% 3k 12 +3k weblogic/management/configuration/WebAppComponentMBean_Stub
0.0% 3k 81 +3k sun/util/calendar/ZoneInfo
0.0% 3k 9 +3k [Lweblogic/utils/collections/WeakConcurrentHashMap$Entry;
0.0% 3k 95 +3k sun/misc/SoftCache$ValueCell
0.0% 3k 93 +3k weblogic/management/commo/CommoModelMBeanInfoSupport
0.0% 3k 115 +3k weblogic/servlet/internal/dd/ParameterDescriptor
0.0% 3k 108 +3k javax/management/ObjectName
0.0% 3k 104 +3k java/lang/StackTraceElement
0.0% 3k 137 +3k java/io/ExpiringCache$Entry
0.0% 3k 58 +3k [Lweblogic/management/tools/OperationInfo;
0.0% 3k 7 +3k weblogic/servlet/internal/WebAppServletContext
0.0% 3k 49 +3k jrockit/vm/ObjectMonitor
0.0% 2k 191 +2k java/util/HashSet
0.0% 2k 91 +2k java/util/ResourceBundle$LoaderReference
0.0% 2k 121 +2k weblogic/management/commo/Commo$Pair
0.0% 2k 4 +2k [Ljrockit/vm/FCECache$FCE;
0.0% 2k 7 +2k [[Ljava/lang/String;
0.0% 2k 30 +2k weblogic/management/internal/ConfigurationMBeanImpl
0.0% 2k 107 +2k jrockit/reflect/VirtualNativeMethodInvoker
0.0% 2k 12 +2k weblogic/management/configuration/ApplicationMBean_Stub
0.0% 2k 73 +2k java/lang/ThreadLocal$ThreadLocalMap$Entry
0.0% 2k 97 +2k java/util/LinkedList
0.0% 2k 95 +2k weblogic/apache/xerces/util/SymbolHash$Entry
0.0% 2k 56 +2k com/octetstring/vde/schema/ObjectClass
0.0% 2k 93 +2k sun/security/util/ObjectIdentifier
0.0% 2k 92 +2k java/util/ResourceBundle$ResourceCacheKey
0.0% 2k 92 +2k java/util/regex/Pattern$Range
0.0% 2k 91 +2k com/octetstring/vde/backend/standard/KeyEidList
0.0% 2k 25 +2k [Lweblogic/management/commo/CommoModelMBeanAttributeInfo;
0.0% 2k 12 +2k weblogic/management/mbeans/custom/Application
0.0% 1k 25 +1k [Lweblogic/rmi/internal/MethodDescriptor;
0.0% 1k 81 +1k weblogic/management/internal/Pair
0.0% 1k 30 +1k com/bea/utils/misc/Process
0.0% 1k 86 +1k [Lweblogic/management/WebLogicObjectName;
0.0% 1k 58 +1k weblogic/management/internal/DynamicMBeanImpl$XInfo
0.0% 1k 33 +1k sun/net/www/protocol/jar/URLJarFile
0.0% 1k 38 +1k java/util/jar/JarFile
0.0% 1k 74 +1k javax/management/NotificationBroadcasterSupport$Triple
0.0% 1k 72 +1k com/sun/management/jmx/MBeanServerNotificationListener
0.0% 1k 12 +1k weblogic/management/mbeans/custom/WebAppComponent
0.0% 1k 72 +1k weblogic/management/internal/OnewayNotificationListenerImpl
0.0% 1k 4 +1k [Lcom/sun/corba/se/internal/util/IdentityHashtableEntry;
0.0% 1k 30 +1k [Lcom/bea/utils/misc/ProcessProperty;
0.0% 1k 70 +1k java/util/Collections$SynchronizedList
0.0% 1k 2 +1k weblogic/management/configuration/ServerMBean_Stub
0.0% 1k 51 +1k weblogic/rmi/internal/PhantomRef
0.0% 1k 3 +1k [Ljava/util/TimerTask;
0.0% 1k 49 +1k weblogic/apache/xerces/dom/DeferredAttrImpl
0.0% 1k 39 +1k weblogic/jndi/internal/WLEventContextImpl
0.0% 1k 19 +1k weblogic/rmi/internal/BasicServerRef
0.0% 1k 92 +1k jrockit/memory/AtomicIntImpl
0.0% 1k 90 +1k weblogic/utils/DebugCategory
0.0% 1k 59 +1k javax/management/loading/MLetContent
0.0% 1k 16 +1k java/util/jar/JarFile$JarFileEntry
0.0% 1k 87 +1k weblogic/utils/collections/Stack
0.0% 1k 57 +1k java/lang/ThreadLocal$ThreadLocalMap
0.0% 1k 13 +1k weblogic/jndi/internal/AdminRoleBasedDispatchServerRef
0.0% 1k 13 +1k [Ljava/lang/Byte;
0.0% 1k 41 +1k weblogic/xml/babel/scanner/Token
0.0% 1k 25 +1k [Lweblogic/management/commo/CommoModelMBeanOperationInfo;
0.0% 1k 53 +1k java/util/Collections$SynchronizedRandomAccessList
0.0% 1k 52 +1k java/util/Date
0.0% 1k 12 +1k java/text/DecimalFormat
0.0% 1k 38 +1k sun/misc/URLClassPath$JarLoader
0.0% 1k 6 +1k weblogic/management/runtime/WebAppComponentRuntimeMBean_Stub
0.0% 1k 15 +1k [Lweblogic/apache/xerces/util/SymbolHash$Entry;
0.0% 1k 48 +1k java/util/Locale
0.0% 1k 14 +1k weblogic/common/internal/PeerInfo
0.0% 1k 20 +1k sun/nio/cs/ext/GBK$Encoder
0.0% 1k 44 +1k [Ljavax/management/NotificationBroadcasterSupport$Triple;
0.0% 1k 23 +1k weblogic/jndi/internal/ServerNamingNode
0.0% 1k 20 +1k [[B
0.0% 1k 27 +1k java/lang/reflect/Constructor
0.0% 1k 33 +1k java/util/zip/Inflater
0.0% 1k 1 +1k [Ljava/lang/Character;
0.0% 1k 1 +1k [Ljava/lang/Short;
0.0% 1k 1 +1k [Ljava/lang/Integer;
0.0% 1k 43 +1k sun/security/util/DerValue
0.0% 1k 43 +1k sun/security/util/DerInputBuffer
0.0% 1k 43 +1k java/security/AccessControlContext
0.0% 0k 9 +0k java/lang/Thread
0.0% 0k 21 +0k java/util/Properties
0.0% 0k 31 +0k java/util/Collections$SynchronizedSortedMap
0.0% 0k 31 +0k weblogic/servlet/utils/URLMatchMap$URLExtensionNode
0.0% 0k 4 +0k weblogic/management/configuration/JMSQueueMBean_Stub
0.0% 0k 11 +0k weblogic/kernel/ExecuteThreadManager
0.0% 0k 6 +0k weblogic/j2ee/J2EEApplicationContainer
0.0% 0k 20 +0k java/nio/HeapByteBuffer
187413kB total ---
--------- End of Detailed Heap Statistics ---
------------------- Printing heap ---------------------
"o"/"p" = 1k normal/pinned objects
"O"/"P" = 50k normal/pinned objects
"."/"/" = <1k normal/pinned objects (fragmentation)
" "/"_" = 1k/50k free space
OOOOoooooooooooooooooooooooooooooooooooooooooooooo 0x00B3BD08
........oooooooooooooooooooooooooooooooooooooooooo 0x00B48058
oooo....ooooooooooooooooooooo.....ooo..........OOO 0x00B6C278
OOOOooooooooooooooooooooooo....ooooooooooooooooooo 0x00BB42D0
oooooooooooooo.ooo..oooooooooooooooooooooooooooooo 0x00BC0620
oooooooooooooo.Ooooooooooooooooooooooooooooooooooo 0x00BD88D8
oo.....Ooooooooooooooooooooooooooooooooooooooooo.. 0x00BF0B90
...oooooooooooooooooooooooooooooooooooooooooooo... 0x00BFCEE0
...ooooo.....................................Ooooo 0x00C15198
oooooooooooooooooooooooooooooooooo................ 0x00C214E8
......o........oooo.oooooo....oo.Ooooooooooooooooo 0x00C397A0
ooooooooooooo.............................Oooooooo 0x00C51A58
ooooooooooooooooooooooooooooooo. . ...oooooooooooo 0x00C5DDA8
o..........................ooooooooooooooooooooooo 0x00C6A0F8
oooooooooooooooooooooo........ooo..o...ooooooooooo 0x00C76448
.......Hi all,
We have HPROF functionality in our latest roadmap, so you will see that feature in our next major release called JRockit R28.
I recommend, above from the MemLeak documentation suggested by Makiey, the following information on how to use JRockit tools.
Performance Tuning & Profiling:
http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_02.html
Using JRockit tools:
http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_03.html
Diagnostics & Troubleshooting
http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_04.html
Best Regards,
Tuva
JRockit PM -
How can i get production version value(verid) for luck through bdc.
HI..
i have one requirement..that in c223 tcode while i luck the production version through BDC in my report program as i given bellow...i upload mat.no , plant, production version and 1(for luck)...
req:: i want while i given production version for particlular plant and material no...that production version should be luck....
so in standard tcode c223 how can i get value to compair it with my input production version value then i will close that...
program:::
report ZC2232
no standard page heading line-size 255.
*include bdcrecx1.
Tables : mkal.
data : nodata value '/' .
data : CTUMODE type c value 'E'.
DATA : CUPDATE TYPE C VALUE 'L'.
DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
messages of call transaction
DATA: MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
data: begin of HEADER OCCURS 0,
data element: MATNR
MATNR_001(018),
data element: WERKS_D
WERKS_002(004),
data element: PLNNR
PLNNR_003(008),
data element: CP_STTAG
STTAG_003(010),
data element: ENTRY_ACT
ENTRY_ACT_005(011),
data element: PLNAL
PLNAL_004(001),
data element: FLG_SEL
FLG_SEL_01_006(001),
data element: PLANTEXT
STLAL_004(002),
DATUV_005(010),
data element: WERKS_D
WERKS_008(004),
data element: PLN_VERWE
ktext_005(001),
data element: PLNST
DELKZ_005(001),
data element: LOSGRVON
LOSVN_011(017),
data element: LOSGRBIS
LOSBS_012(017),
data element: PLNME
PLNME_013(003),
data element: PLNME
stlal_014(002),
end of HEADER.
data : begin of it_header occurs 0,
matnr like marc-matnr,
werks like marc-matnr,
verid like mkal-verid,
mksp like mkal-mksp,
end of it_header.
data : exnum(40) type c,
exnum1(40) type c,
cnt type I,
CN(2) TYPE C,
c1 type c value '(',
c2 type c value ')'.
start-of-selection.
parameters: p_file like rlgrap-filename.
at selection-screen on value-request for p_file.
call function 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
importing
file_name = p_file.
start-of-selection.
call function 'WS_UPLOAD'
exporting
CODEPAGE = ' '
filename = p_file
filetype = 'DAT'
HEADLEN = ' '
LINE_EXIT = ' '
TRUNCLEN = ' '
USER_FORM = ' '
USER_PROG = ' '
DAT_D_FORMAT = ' '
IMPORTING
FILELENGTH =
tables
data_tab = it_header
EXCEPTIONS
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
NO_AUTHORITY = 10
OTHERS = 11
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
DELETE it_header WHERE MATNR IS INITIAL.
LOOP AT it_header.
*start-of-selection.
*perform open_group.
perform bdc_dynpro using 'SAPLCMFV' '1000'.
perform bdc_field using 'BDC_OKCODE'
'=ENTE'.
perform bdc_field using 'BDC_CURSOR'
'MKAL-WERKS'.
perform bdc_field using 'MKAL-WERKS'
it_header-werks.
perform bdc_field using 'MKAL-MATNR'
it_header-matnr.
perform bdc_dynpro using 'SAPLCMFV' '1000'.
perform bdc_field using 'BDC_OKCODE'
'=PICK'.
perform bdc_field using 'MKAL-WERKS'
it_header-werks.
perform bdc_field using 'MKAL-MATNR'
it_header-matnr.
*>>>>>>>>>>>>>>>>>>>>here what logic can i write****
clear cnt.
do 15 times.
cnt = cnt + 1 .
CN = CNT.
exnum = 'MKAL_EXPAND-VERID'.
concatenate exnum c1 cn c2 into exnum1.
*perform bdc_field using 'BDC_CURSOR'
exnum1.
GET PARAMETER ID 'VER' FIELD EXNUM1.
CALL TRANSACTION 'C223' AND SKIP FIRST SCREEN.
if ( it_header-verid = EXNUM1 ).
exit.
endif.
enddo.
****************************************************end***>>>>>>>>
perform bdc_field using 'BDC_CURSOR'
exnum1.
perform bdc_dynpro using 'SAPLCMFV' '2000'.
perform bdc_field using 'BDC_CURSOR'
'MKAL_EXPAND-PLNTY'.
perform bdc_field using 'BDC_OKCODE'
'=PRFG'.
perform bdc_dynpro using 'SAPMSSY0' '0120'.
perform bdc_field using 'BDC_OKCODE'
'=RW'.
perform bdc_dynpro using 'SAPLCMFV' '2000'.
perform bdc_field using 'BDC_OKCODE'
'/ECANC'.
perform bdc_field using 'BDC_CURSOR'
'MKAL_EXPAND-VERID'.
perform bdc_dynpro using 'SAPLCMFV' '1000'.
perform bdc_field using 'BDC_OKCODE'
'=SAVE'.
perform bdc_field using 'BDC_CURSOR'
'MKAL-WERKS'.
perform bdc_field using 'MKAL-WERKS'
it_header-werks.
perform bdc_field using 'MKAL-MATNR'
it_header-matnr.
perform bdc_dynpro using 'SAPLCMFV' '1000'.
perform bdc_field using 'BDC_OKCODE'
'/EBACK'.
perform bdc_transaction using 'C223'.
endloop.
*perform close_group.
*& Form bdc_dynpro
text
-->P_0161 text
-->P_0162 text
form bdc_dynpro USING PROGRAM DYNPRO.
CLEAR BDCDATA.
BDCDATA-PROGRAM = PROGRAM.
BDCDATA-DYNPRO = DYNPRO.
BDCDATA-DYNBEGIN = 'X'.
APPEND BDCDATA.
endform. " bdc_dynpro
*& Form bdc_transaction
text
-->P_0351 text
form bdc_transaction USING TCODE.
call transaction 'C223' using bdcdata
mode CTUMODE
update CUPDATE
messages into messtab.
if sy-subrc <> 0.
message e000(zmm01) with
'Check your input data'.
endif.
endform. " bdc_transaction
*& Form bdc_field
text
-->P_0346 text
-->P_0347 text
form bdc_field USING FNAM FVAL.
if fval <> nodata.
CLEAR BDCDATA.
BDCDATA-FNAM = FNAM.
BDCDATA-FVAL = FVAL.
APPEND BDCDATA.
endif.
endform. " bdc_fieldl_nl := dbms_xslprocessor.selectNodes(l_n, '/TaxInvoice/TaxInvoiceDocument');try to change as follow
l_nl := dbms_xslprocessor.selectnodes(l_n,'/TaxInvoice/TaxInvoiceDocument','xmlns="urn:kr:or:kec:standard:Tax:ReusableAggregateBusinessInformation:1:0"');Edited by: AlexAnd on Aug 17, 2011 12:36 AM -
How can i get the path to config folder placed inside the jar file?
Hi i have developed an RCP application using eclipse.
In my application config directory is there.
When i export my RCP application as JNLP Project the jar file is created which contains config folder inside it.
When i download the application using java web start , how can i get the path to config folder placed inside the jar file?
Will the config folder exists in local cache in my system?
Help needed.
-Deepak-- This works in CS6:
tell application "Adobe InDesign CS6"
set myDocument to active document
set selectedRectangles to selection of myDocument
set theGraphicsLink to file path of item link of (graphic 1 of (item 1 of selectedRectangles))
--> "Macintosh HD:folder/folder/filename.tif"
end tell -
Hi Experts,
How can i get a file header using this method cl_gui_frontend_services=>gui_download
Thanks
BasuHi,
You can use the FM - GUI_DOWNLOAD to specify the headers. It can be done in the following manner -
TYPES: BEGIN OF ty_head, "Structure for header
h(10) TYPE c,
END OF ty_head.
DATA: it_head TYPE TABLE OF ty_head WITH HEADER LINE.
"Adding header details
it_head-h = 'Field1'.
APPEND it_head.
it_head-h = 'Field2'.
APPEND it_head.
it_head-h = 'Field3'.
APPEND it_head.
it_head-h = 'Field4'.
APPEND it_head.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = p_file
filetype = 'ASC'
write_field_separator = 'X'
header = '00' "<= note this
TABLES
data_tab = it_tab
fieldnames = it_head[] "<= Pass your header table here
EXCEPTIONS
OTHERS = 1.
Hope this helps.
Regards,
Himanshu -
I arranged my photos in order and in folders on my PC. When I synced them to my IPad they were in the correct folders but completely out of order. How can I get them to sync in the order they appear on my PC?.
On iOS 5 (if viewing individual photo albums on the iPad) the photo sorting order should be by filename, on iOS 4 it's date taken (from here) :
iOS 4 sorts photos by the Date Taken tag of the photos. Specifically, your device uses the pictures' EXIF tags to determine the Date Taken information. Your device will look for the following EXIF tags within your pictures:
Capture Date
Date Time Digitized
Date Time Original
Last Modified
So you will need to change their names or their dates -
How can I get path from af: inputFile or a uploadedFile
Hi, there,
I am getting error messages while sending attachment.
I firstly tired getting the attachment from <af:inputFile> and attach it to the email. It failed. Then I put the file name directly into my code, still choose the same file from the <af:inputFile>, it failed again. However, from the code you can see, I can get system out println to print the file name, even the file content.
I realized that I might need the file path, but I don't konw how I do get the path, should I write code in the backing bean of uploadedFile or in the send() in the Application Module ? How can I get the path?
any advice is welcome and thank you very much!
The system.out.println result is
08/05/09 11:56:38 2javax.activation.FileDataSource@1674b36
08/05/09 11:56:38 2.1 jkljlj
08/05/09 11:56:38 2.2New Text Document.txt
But the error message still says :
nested exception is:
class javax.mail.MessagingException: IOException while sending message;
nested exception is:
java.io.FileNotFoundException: New Text Document.txt (The system cannot find the file specified)
Here is my code:
ViewObject issueView = getIssueView1();
Row x = issueView.getCurrentRow();
String fileName = "New Text Document.txt";
System.out.println("1 " + fileName);
System.out.println("1.5 " + x.getAttribute("attachmentName"));
// msg.setText(body);
MimeBodyPart mbp1 = new MimeBodyPart();
mbp1.setText(body);
Multipart mp = new MimeMultipart();
mp.addBodyPart(mbp1);
// String attachmentName = (String)x.getAttribute("attachmentName");
//if (attachmentName != null) {
MimeBodyPart mbp2 = new MimeBodyPart();
DataSource source = new FileDataSource(fileName);
System.out.println("2" + source);
System.out.println("2.1 " + x.getAttribute("attachment"));
mbp2.setDataHandler(new DataHandler(source));
//mbp2.setFileName(source.getName());
mbp2.setFileName(fileName);
System.out.println("2.2" + fileName);
mp.addBodyPart(mbp2);
msg.setContent(mp);
// send the message!
getDBTransaction().commit();
Transport.send(msg);
System.out.println("\nMail was sent successfully.");
} catch (Exception e) {
System.out.println("Error: " + e.getMessage());
}I wish you and others like you would say what you are trying to do, not how you are trying to do it. That would save those who would like to help the trouble of figuring it out. However, I'm going to make a guess at what you are doing. Tell me if I'm right.
You are writing a page that lets a user construct an e-mail message. I assume that the page has fields like: addressee, subject, and message. It also has a field, defined as an <af:inputFile> component for getting a file to be added as an attachment to the e-mail.
You will want to look at forum posts and tutorials about how to upload a file. You will see that the "value" attribute of an <af:inputFile> will normally contain EL referencing a property of a backing bean which has the UploadedFile class. This class has methods for getting the filename, MIME content type, and an InputStream containing the data in the uploaded file. These pieces of information are all you need to add an attachment to an e-mail. You don't need the file's path, which is a good thing, since that information is not available to you.
I've never used Javamail, so I can't tell you exactly how to use it, but I do understand the basics of sending e-mail. What you are going to do is create a multi-part message. The first part will be the message itself. Subsequent parts are the attachments. Each attachment can have it's filename and MIME content type set. Then you read the file through it's InputStream and write it to the message content. If the file contains binary data, you will need to pass it through a filter that will encode it to the Base64 format - which represents your data as 7 bit bytes.
You will NOT be using the database connection or anything from the data controls to send an e-mail, unless you also need to save a copy to the database. The connection that is needed for e-mail is a connection to an SMTP service. Ask your e-mail administrator for some help with this.
You MIGHT want to write most of this code in your Model project as a business component. Then your backing bean would probably just pass the fields as parameters. -
How can I get the photos from iPhoto copied to a disk in the order I want?
How can I get the photos from iPhoto copied to a disk in the order I want??
To ensure a custom ordering, sort the files in an album and rename the files with a sequentially numbered filename.
File > Export > Version/Originals
Then use "Filename > Sequential"
or "Filename > Album name with index"
Maybe you are looking for
-
Using a wildcard in the contact number for a messenging service.
I am a volunteer firefighter. Our fire company uses a messenging service to send MMS notifications when there is a call. All of the messages come through as 1(410)000-nnn where nnn = the sequential message number. E.g. let's say I get a text at 06:00
-
Downloading files from a time capsule
What kind of cord do I use to connect a time capsule to the macbook air I'm transferring files to?
-
I am trying to play movies that were saved as wmv and I can't play them with Quicktime player on my macbook. Does anybody have any recommendations please. I used to be able to play them on my e-mac and i was sure it was with Quicktime. Now I get a me
-
CUCM SIP Route Pattern Discussion
Hello, I have some questions about SIP route pattern configuration but the main question is I can configure SIP route pattern to match any IP address. so if the user dial any ip address it will hit this route pattern. Regards,
-
How to view list buffer in new debugger?
Hi there, Any body knows how to view the list buffer generated so far while debugging in new debugger.It says, after first write statement a new button appears in tool bar.I couldn't find it.Please help. regards