No file Exisits

Dear All, 
I have One document Library with the name of proposals & Quotation. This document library is working fine on Parent Site. I made the Web part for this library and place it under the Sub site. 
The webpart display fines but when i tried to access the Folder it gives me an error 
"No Item Exisits" 
Can Any one have an idea how to resolve this issue? 
Regards 

I made the webpart through SharePoint designer 
Here are the steps 
1) Open list in SharePoint Designer 
2) Click on the "List WebPart View" tab 
3) Under Webpart sub tab click on "Site Gallery"
After that the Webpart will be available in the Webpart gallery and from Page > Insert Webpart menu
i have include the webpart in to the above mentioned page
Note: If i upload any file then it is accessible only folder is not accessable

Similar Messages

  • File download/code

    Hello,
    I'm using JDeveloper 11.1.1.3. I'm trying to read the value of an attribute in an "ADF Quick Query with Table" called "Filename" and compare it with list of files i have in the directory "C:\\demos". Once the value is matched, the file with the corresponding Filename should be download. However, when i press the download button which has an af:downloadActionlistener binded to my bean i get an empty page. Can anyone please check my code:
    public void ACDownloadFile(FacesContext facesContext, OutputStream outputStream)
                InputStream in;
                BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
                DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("SearchAdministrationCircularsView1Iterator");
                Row selectedrow = dciter.getCurrentRow();
                File root = new File("C:\\demos");
                String att = "";
                if (selectedrow != null) {
                    att = (String)selectedrow.getAttribute("Filename");
                  File[] listOfFiles = root.listFiles();
                  for(int i = 0; i < listOfFiles.length; i++){
                      String filename = listOfFiles.getName();
    if(filename.equalsIgnoreCase(att)){//attname  
    try {
    in = new FileInputStream(listOfFiles[i]);
    IOUtils.copy(in, outputStream);
    in.close();
    outputStream.flush();
    catch (IOException e)
    e.printStackTrace();
    FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, e.getMessage(), "");
    FacesContext.getCurrentInstance().addMessage(null, msg);
    i=listOfFiles.length;
    }Thanks,
    Mohamed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Mohamed,
    the code look OK. One thing which you can do better is not to iterate over all files present in the directory, but use the File.exists(); method with the file name you are getting from the UI.
    If the file exisits you get true as return value otherwise false.
    File root = new File("C:\\demos");
                String att = "";
                if (selectedrow == null) {
                    return;
                att = (String)selectedrow.getAttribute("Filename");
                File downloadFile = new File("C:\\demos\\"+attr);
                if (!downloadFile.exists()) {
                    return;
                try {
                    in = new FileInputStream(listOfFiles);
    IOUtils.copy(in, outputStream);
    in.close();
    outputStream.flush();
    catch (IOException e) {
    e.printStackTrace();
    FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, e.getMessage(), "");
    FacesContext.getCurrentInstance().addMessage(null, msg);
    Should do the it. To avoid problems the the case the file name is given from the UI you should store all files in upper or lowercase.
    The there are some other flaws in your code like you test in the file name is given from the UI, but if it's not you still iterate over all files. Next you don't stop the iteration of the files once you found the matching file.
    Have you debug the code and verified that the fileyou are looking for is found?
    Timo                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Application works from NB but not from jar

    Hi,
    I'am programming a game in JAVA and this going as planned. Everything works when I run it from NetBeans, but when I execute the jar file from the console, then I get hunderds of the same exception.
    I really don't know what it is, I see a NoSuchMethod exception in the MouseEvent of the method getLocationOnScreen(), but just as i said, the app works fine without errors from out NB.
    Does somebody knows what the problem is?
    thx Sven
    java -jar Hotel.jar
    Loading board images.
    Loading image: /Images/bg-patern-hotel.jpg
    Opening file /Images/bg-patern-hotel.jpg file exisits: true -- [/Users/svenvanzoelen/NetBeansProjects/Games/Hotel/dist/Images/bg-patern-hotel.jpg]
    Loading image: /Images/Main-board-big.jpg
    Opening file /Images/Main-board-big.jpg file exisits: true -- [/Users/svenvanzoelen/NetBeansProjects/Games/Hotel/dist/Images/Main-board-big.jpg]
    Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: java.awt.event.MouseEvent.getLocationOnScreen()Ljava/awt/Point;
         at Engine.GameAction.setMousePos(GameAction.java:137)
         at Engine.InputManager.mouseMoved(InputManager.java:277)
         at java.awt.Component.processMouseMotionEvent(Component.java:5647)
         at java.awt.Component.processEvent(Component.java:5371)
         at java.awt.Container.processEvent(Container.java:2010)
         at java.awt.Window.processEvent(Window.java:1184)
         at java.awt.Component.dispatchEventImpl(Component.java:4068)
         at java.awt.Container.dispatchEventImpl(Container.java:2068)
         at java.awt.Window.dispatchEventImpl(Window.java:1801)
         at java.awt.Component.dispatchEvent(Component.java:3903)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Same error goes 50 times more.Edited by: Svenmeister on Apr 16, 2010 7:22 AM
    Edited by: Svenmeister on Apr 16, 2010 7:22 AM

    Ok, I updated my Mac but still got the 1.5.0_22 crap so I changed the function from the mouseEvent to one that 1.5 supports.
    But now when I run the application from the console the Exception about the mouse function is gone, but I got another exception instead of it. And this one is I believe not JRE version relevant.
    The error is in the loading of the images, at the third PNG image to be precise. The images are now in total 10.8MB in size.
    So is this also a 1.6 thing? Would be awesome if someone can explain it.
    java -jar Hotel.jar Loading board images.
    Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space
         at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:41)
         at java.awt.image.Raster.createPackedRaster(Raster.java:458)
         at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015)
         at sun.awt.image.ImageRepresentation.createBufferedImage(ImageRepresentation.java:223)
         at sun.awt.image.ImageRepresentation.setPixels(ImageRepresentation.java:469)
         at apple.awt.OSXImageRepresentation.setPixels(OSXImageRepresentation.java:66)
         at sun.awt.image.ImageDecoder.setPixels(ImageDecoder.java:120)
         at sun.awt.image.PNGImageDecoder.sendPixels(PNGImageDecoder.java:498)
         at sun.awt.image.PNGImageDecoder.produceImage(PNGImageDecoder.java:419)
         at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:246)
         at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
         at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
         at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:41)
         at java.awt.image.Raster.createPackedRaster(Raster.java:458)
         at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015)
         at java.awt.image.BufferedImage.<init>(BufferedImage.java:345)
         at apple.awt.CGraphicsConfig.createCompatibleImage(CGraphicsConfig.java:174)
         at GUI.Board.toBufferedImage(Board.java:1472)
         at GUI.Board.loadImages(Board.java:1143)
         at Engine.HotelMain.switchState(HotelMain.java:86)
         at Engine.HotelMain.<init>(HotelMain.java:57)
         at Engine.HotelMain.main(HotelMain.java:194)Edited by: Svenmeister on Apr 16, 2010 11:01 AM

  • Java 1.4.2_04-b05 not working with netscape 7.1

    I am unable to get java to work with netscape 7.1 on Windows XP. I just get the puzzle icon when running the installation test.
    1. I have de-installed and reinstalled java 1.4.2_04-b05 multiple times
    2. Netscape/Plugins directory has npjpi142_04.dll, and npjava(11,12,13,14).dlls
    3. Netscape cache has been cleared. Enable Java is checked under Preferences/Advanced
    4. Java Plug-in Control Panel shows browser Netscape 6 or later checked, use browser settings for proxy
    5. Java does work with my IE 6.0 browser.

    NPOJI610.dll is a very important file for Java Plugin to work with Netscape/Mozilla. So first check whether that file exisits in your system or not. If no, you probably need to reinstall JRE.
    If yes, you can try the following.
    1. Would you be able to open "Java Console" from Netscape's Tools->Web Development?
    2. Also you can try to rename C:\Document And Settings\Username\Application Date\Mozilla directory and then re-launch the browser to see whether it works or not.
    Xiaobin

  • Change from 1.4.2_04-b05 to  (Java 1.3.1_02 and Tomcat 4.0.1)

    I'm afraid i am completely new to configuring machines for use with Java.
    I need to configure a server to run on a prior version of Java and am not sure how to do this as there are no uninstall options either in the application directory or through the control panel. If anyone could help it would be greatly appreciated as to configure the same roll back on my local machine took a real fudge of altering the registry and manually changing the Java.exe to a proir version. Although this has not caused any problems i would like to run through a cleaner process on the server.
    Thanks in advance
    Mark Harrison

    NPOJI610.dll is a very important file for Java Plugin to work with Netscape/Mozilla. So first check whether that file exisits in your system or not. If no, you probably need to reinstall JRE.
    If yes, you can try the following.
    1. Would you be able to open "Java Console" from Netscape's Tools->Web Development?
    2. Also you can try to rename C:\Document And Settings\Username\Application Date\Mozilla directory and then re-launch the browser to see whether it works or not.
    Xiaobin

  • Where is the error

    hi
    i'm trying to creat Arraylist with objects then store this arraylist to file
    when the program starts it will check if the file exist if yes it will load it and casted to array list
    if not
    creat new file and start new array list , but i get always different error
    here is my codes :
    public class Animal {
         private String name ;
         private int age ;
         public Animal(String name , int age){
              setName( name);
              setAge( age);
         public int getAge() {
              return age;
         public void setAge(int age) {
              this.age = age;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
    import java.io.File;
    import java.util.ArrayList;
    import java.util.Scanner;
    public class Test {
          * @param args
         public static void main(String[] args) {
              String _CLN_File     ="C:"+File.separator+"Animal";
              File file;
              String name1 ,name2;
              int age1,age2;
              Animal temo ,rico;
              Scanner input = new Scanner(System.in);
              ArrayList<Animal> list;
              file = new File(_CLN_File);
              if(file.exists()){
                   System.out.println("file exisits");
                   list = (ArrayList) ReadFromDesk.readList(file);
              else{
                   list = new ArrayList<Animal>();
                   System.out.println("no file found");
                   name1 =input.next();
                   name2=input.next();
                   age1=input.nextInt();
                   age2=input.nextInt();
                   temo = new Animal(name1,age1);
                   rico = new Animal(name2,age2);
                   list.add(temo);
                   list.add(rico);
                   WriteToDisk.writeList(file,_CLN_File,list);
              for(Animal st : list){
                   System.out.println("name is "+st.getName());
                   System.out.println("age is "+st.getAge());
    import java.io.FileInputStream;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.lang.NullPointerException;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    public class ReadFromDesk {
         public ReadFromDesk(){}
         //will return any array list
         public static ArrayList readList (File file){
              FileInputStream   _arrListIn     = null;
              ObjectInputStream _arrListReadObj= null;
              try{
                   _arrListIn = new FileInputStream(file);
                   _arrListReadObj = new ObjectInputStream(_arrListIn);
                   ArrayList temp = new ArrayList();
                   temp = (ArrayList) _arrListReadObj.readObject();
                   return temp;
                   }catch (ClassNotFoundException cnfe) {
                        cnfe.printStackTrace();
                   } catch (FileNotFoundException fnfe) {
                        fnfe.printStackTrace();
                   } catch (IOException ioe) {
                        ioe.printStackTrace();
                   }catch (NullPointerException npi){
                        npi.printStackTrace();
              finally{
                   try {
                        _arrListReadObj.close();
                        _arrListIn.close();
                        } catch (IOException ioe) {
                             ioe.printStackTrace();
              return null;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.ObjectOutputStream;
    import java.util.ArrayList;
    public class WriteToDisk {
         public WriteToDisk(){}
         //using generic so this method can take any type of arraylist as
         //parameter
         public static <E> void writeList(File file,
                   String path,ArrayList <E> arrlist){
              FileOutputStream   _arrListOut      = null;
              ObjectOutputStream _arrListWriteObj = null;
              try{
                   _arrListOut = new FileOutputStream(file);
                   _arrListWriteObj = new ObjectOutputStream(_arrListOut);
                   _arrListWriteObj.writeObject(arrlist);
                   _arrListWriteObj.flush();
              catch (FileNotFoundException fnfe) {
                   System.out.println("NotFound Ex");
              } catch (IOException ioe) {
                   System.out.println("IO EX");
              }catch (NullPointerException npi){
                   System.out.println("NULL EX");
              finally{
                   try {
                   _arrListWriteObj.close();
                   _arrListOut.close();
                   } catch (IOException ioe) {               
                        System.out.println("Finally Close EX");
    }

    thanks it works fine BUT here is part of my real program and i have a problem reading from file
    package database;
    import java.io.File;
    import java.io.Serializable;
    import java.util.ArrayList;
    import exceptions.DuplicatedInput;
    import exceptions.InvalidPasswordException;
    import exceptions.NoObjectFoundException;
    import model.Client;
    import utilities.ListsUtil;
    import utilities.ReadFromDesk;
    public class ClientsList implements Serializable{
         private final String _CLN_File     ="C:"+File.separator+"clients";
         private File         _clientsF;
         private ArrayList <Client> _clientList;
         public ClientsList(){
              ReadFromDesk rfd = new ReadFromDesk();
              _clientsF = new File (_CLN_File);
              _clientList = new ArrayList<Client>();
              if (_clientsF.exists()){
                   // i should also check if the file is not empty
                   _clientList = rfd.readList(_clientsF);
         }//end constructor
         /* add client to list , test if the list is empty , client will be
          * added if the user name doesn't exists in the list.
         public void addClientToList(Client client)throws DuplicatedInput{
              if (_clientList.isEmpty()){
                   _clientList.add(client);
              else{
                   for(Client temp : _clientList){
                        if (temp.get_userName().equals(client.get_userName()))
                             throw new DuplicatedInput("username exists");
              //the following in case if the list is not empty and no dublicated input
              _clientList.add(client);
         public boolean checkUsername(String username){
              if (_clientList.isEmpty()){
                        return true;
              else{
                        for(Client temp : _clientList){
                             if (temp.get_userName().equals(username))
                                  return false;
                   return true;
         public Client logIn(String username,String password) throws NoObjectFoundException , InvalidPasswordException
              for(Client client : _clientList){
                   //i could use one if statment and check both , but by this way
                   //i can throw 2 different exception
                   if (client.get_userName().equals(username)){
                        if (client.get_passWord().equals(password)){
                             return client;
                        else
                             throw new InvalidPasswordException ("invalid password");
              throw new NoObjectFoundException("ther is no client with this user name");
         public void saveClientList(){
              ListsUtil.saveList(_clientsF,_clientList);
    package model;
    import java.io.Serializable;
    import java.util.ArrayList;
    import exceptions.NoObjectFoundException;
    import utilities.DateManager;
    public class Client extends Group3 implements Serializable{
         private String _fName;
         private String _userName;
         private String _passWord;
         private String _passwordHint;
         private String _lastVisitDate;
         private char   _client_classification;
         private double _totalOrders;
         private double _lastOrder;
         private ArrayList <Product> _pasket; //create method to print this in text file
         public Client(String lName, String fName, String address,String phoneNum,
                   String username, String password,String passwordHint){
              super (lName,address,phoneNum);
              set_fName(fName);
              set_userName(username);
              set_passWord(password);
              set_passwordHint(passwordHint);
              _pasket       = new ArrayList<Product>();
         public void addToPasket(Product product , int qty){
              product.set_priceWithQtyDis(qty);
              product.set_PriceWithoutDis(qty);
              _pasket.add(product);
        /*All Setters and Geters*/
         public ArrayList<Product> getPurchasedProducts()throws NoObjectFoundException
              if (!_pasket.isEmpty())
                   return _pasket;
              else
                   throw new NoObjectFoundException("Your Pasket is Empty");     
         public char get_client_classification() {
              return _client_classification;
         public void set_client_classification() {
              if (get_totalOrders() >=20000)
                   _client_classification = 'A';
              else if (get_totalOrders() >=15000 && get_totalOrders() < 20000)
                   _client_classification = 'B';
              else if (get_totalOrders() >=7500 && get_totalOrders() < 15000)
                   _client_classification = 'C';
              else
                   _client_classification = 'D';
         public double get_lastOrder() {
              return _lastOrder;
         public void set_lastOrder(double order) {
              _lastOrder = order;
         public double get_totalOrders() {
              return _totalOrders;
         public void set_totalOrders(double orders) {
              _totalOrders += orders;
         public String get_lastVisitDate() {
              return _lastVisitDate;
         public void set_lastVisitDate() {
              _lastVisitDate =DateManager.currentDate();
         public String get_fName() {
              return _fName;
         public void set_fName(String fname) {
              _fName = fname;
         public String get_passWord() {
              return _passWord;
         public void set_passWord(String word) {
              _passWord = word;
         public String get_passwordHint() {
              return _passwordHint;
         public void set_passwordHint(String hint) {
              _passwordHint = hint;
         public String get_userName() {
              return _userName;
         public void set_userName(String name) {
              _userName = name;
    * this class will write any class that implements the interface "List"
    package utilities;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.ObjectOutputStream;
    import java.util.List;
    public class WriteToDisk {
         public WriteToDisk(){}
         //using generic so this method can take any type of arraylist as
         //parameter
         public static <E> void writeList(File file,List <E> arrlist){
              FileOutputStream   _arrListOut      = null;
              ObjectOutputStream _arrListWriteObj = null;
              try{
                   _arrListOut = new FileOutputStream(file);
                   _arrListWriteObj = new ObjectOutputStream(_arrListOut);
                   _arrListWriteObj.writeObject(arrlist);
                   _arrListWriteObj.flush();
              catch (FileNotFoundException fnfe) {
                fnfe.printStackTrace();
                file.deleteOnExit();
              } catch (IOException ioe) {
                ioe.printStackTrace();
                file.deleteOnExit();
              }catch (NullPointerException npi){
                   npi.printStackTrace();
                   file.deleteOnExit();
              finally{
                   try {
                   _arrListWriteObj.close();
                   _arrListOut.close();
                   } catch (IOException ioe) {               
                        ioe.printStackTrace();
                        file.deleteOnExit();
    package utilities;
    import java.io.FileInputStream;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.lang.NullPointerException;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    public class ReadFromDesk {
         public ReadFromDesk(){}
         //will return any array list
         public <E>  ArrayList<E> readList (File file){
              FileInputStream   _arrListIn     = null;
              ObjectInputStream _arrListReadObj= null;
              try{
                   _arrListIn = new FileInputStream(file);
                   _arrListReadObj = new ObjectInputStream(_arrListIn);
                   ArrayList <E>temp = new ArrayList<E>();
                   temp = (ArrayList) _arrListReadObj.readObject();
                   return temp;
                   }catch (ClassNotFoundException cnfe) {
                        System.out.println("class n Ex");
                   } catch (FileNotFoundException fnfe) {
                        System.out.println("file NotFound Ex");
                   } catch (IOException ioe) {
                        System.out.println("io Ex");
                   }catch (NullPointerException npi){
                        System.out.println("null Ex");
              finally{
                   try {
                        _arrListReadObj.close();
                        _arrListIn.close();
                        } catch (IOException ioe) {
                             ioe.printStackTrace();
              return null;
         public static <E> List<E> deepCopy(List<E>dist , List<E>Source){
              Iterator <E> iter = Source.iterator();
              int counter =0;
              while (iter.hasNext()){
                   dist.add(counter,Source.get(counter));
                   counter++;
              return dist;
    package utilities;
    import java.io.File;
    import java.rmi.server.UID;
    import java.util.ArrayList;
    import java.util.List;
    import model.Group3;
    import utilities.WriteToDisk;
    import exceptions.NoObjectFoundException;
    public class ListsUtil {
         public static <E> void saveList(File file ,
                   ArrayList <E> arraylist)
              if (!arraylist.isEmpty())
                   WriteToDisk.writeList(file,arraylist);
              else
                   file.deleteOnExit();
         public static void removeFromList(List<Group3> list , UID id)throws NoObjectFoundException
              for(Group3 g3 : list){
                   if(g3.get_IDENTIFIER().equals(id)){
                        list.remove(g3);
                        return;
              throw new NoObjectFoundException("error removing object");
    package View;
    import java.util.Scanner;
    import model.Client;
    import database.ClientsList;
    //import database.ProductsList;
    import exceptions.DuplicatedInput;
    import exceptions.InvalidPasswordException;
    import exceptions.NoObjectFoundException;
    public class OnlineOrder {
         public static void main(String[] args) {
              String lName,  fName,  address, phoneNum, username ,  password,
              passwordHint;
              Client cast = null;
              ClientsList cList  = new ClientsList();
              //ProductsList pLists= new ProductsList();
              System.out.println("Welcome to Group3 Shop");
              System.out.printf("%s\n%s\n",
                        "1- New user",
                        "2- LogIn");
              int choice = 0;
              Scanner input = new Scanner(System.in);
              choice =input.nextInt();
              switch (choice){
                   case 1 : System.out.println("please fill in :");
                              lName = input.next();
                              fName = input.next();
                              address=input.next();
                              phoneNum=input.next();
                              while (true){
                                   boolean usernameExsit = false;
                                   System.out.println("enterusername");
                                   username = input.next();
                                   usernameExsit = cList.checkUsername(username);
                                   if (usernameExsit==true)
                                        break;
                              password = input.next();
                              passwordHint =input.next();
                              cast = new Client(lName,  fName,  address, phoneNum,
                                        username,  password, passwordHint);
                              break;
                   case 2:
                        String user = input.next();
                        String pass = input.next();
                        try {
                             cast = cList.logIn(user,pass);
                        } catch (NoObjectFoundException e) {
                             // TODO Auto-generated catch block
                             System.out.println("no username");
                        } catch (InvalidPasswordException e) {
                             // TODO Auto-generated catch block
                             System.out.println("no pass");
                        break;
                   default :
                        cast = new Client("wael","manar","imbaba","imbaba","imbaba","imbaba","imbaba");
              try {
                   cList.addClientToList(cast);
              } catch (DuplicatedInput e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              cList.saveClientList();
              System.out.printf("%s",cast.get_fName());
    }

  • CF9, IIS7.5, CFImage, /CFFileservlet/, Handler Mapping, URL Rewrite

    I am trying to figure out how to enable the default handler in II7 like it was done in IIS6, with the "Verify file exisits" option turned off.
    In IIS7 I have been lead to "Invoke handler only if request is mapped to:" however if that is unchecked, no static files (css, js, etc)  are served.

    Are you sure that your tag meets all of the requirements?  Check out the documentation here: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-79 45.html
    Specifically for captcha that article mentions:
    For the CAPTCHA image to display, the width value must be greater than: fontSize times the number of characters specified in text times 1.08.
    ColdFusion supports CAPTCHA images in PNG format only.
    I believe the images generated from the cfimage tag are also served up from a differently location than your web-root.
    Is your server allowing the PNG file extension?  With your URL rewrite rule are you still seeing the request reach IIS (iis log)?  Is it reaching ColdFusion (coldfusion log)?  Is your server allowing access to the directory where the generated image is stored (view the browser source code when it works to see where the image is actually stored)?

  • Photoshop Overwrite exisiting file

    I'm using this line to write over an exisiting document if it exists already
      save in (localBrandFolder_PSD) as Photoshop format with options myPSDOptions without copying
    This doesn't give the expected behaviour.
    Previously on other applescript I have used it in this was
    save in (localBrandFolder_High_Res & name) as JPEG with options myOptions with replacing
    As you can see in this script it turns green and hence won't work.
    Any pointers please
    Mat

    This might help, this is the beginning of the script.
    property type_list : {"8BPS"}
    property extension_list : {"psd"}
    script o
              property theseNames : {}
    end script
    -- empty log file
    do shell script "echo  'Files not processed in Photoshop :'  > ~/Desktop/LogPhotoshopError.txt"
    set noError to true
    --Setup list of folders and process details of folders
    set dtF to paragraphs of (do shell script "ls -F ~/Desktop | grep '/' | cut -d'/' -f1")
    set tc to (count dtF)
    repeat with i from 1 to tc
              set folderName to item i of dtF --<:  is the folder name, no need to use text item delimiters -->":"
              if folderName does not start with "2_" and folderName does not start with "Hot" and folderName does not start with "Press" and folderName does not start with "Design" then
                        set {oldTID, my text item delimiters} to {my text item delimiters, "_WK"}
                        set FolderEndName to last text item of folderName
                        set brandName to first text item of folderName
                        set my text item delimiters to "_PSD"
                        set weekNumber to first text item of FolderEndName
                        set my text item delimiters to oldTID
                        set theFolder to ("Hal 9000:Users:matthew:Desktop:" & folderName)
      --set up names to destination folders and create locally based on brand name and week number
                        set this_local_folder to "Hal 9000:Users:matthew:Pictures:2011-2012"
                        set localWeekFolder to my getFolderPath("WK" & weekNumber, this_local_folder)
                        set localBrandFolder to my getFolderPath(brandName, localWeekFolder)
                        set localBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", localBrandFolder)
                        set localBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", localBrandFolder)
                        set localBrandFolder_PSD to my getFolderPath(brandName & "_WK" & weekNumber & "_PSD", localBrandFolder)
                        set this_Network_folder to "DCKGEN:Brands:Zoom:Brand - Zoom:Upload Photos:2012:"
                        set networkWeekFolder to my getFolderPath("Week" & weekNumber, this_Network_folder)
                        set networkBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", networkWeekFolder)
                        set website_images to "DCKGEN:Website_Images:"
      --set up names to destination folders and create over Netwrok for FTP collection (based on a mounted drive)
                        set this_ftp_folder to "Impulse:"
                        set ftpWeekFolder to my getFolderPath("Week" & weekNumber, this_ftp_folder)
                        set ftpBrandFolder to my getFolderPath(brandName, ftpWeekFolder)
                        set ftpBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", ftpBrandFolder)
                        set ftpBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", ftpBrandFolder)
      --taking the folder identify which process it must follow.
                        if brandName is equal to "Matt" then
                                  try
                                            tell application "Finder" to set o's theseNames to (name of files of alias theFolder whose file type is in the type_list or name extension is in the extension_list)
                                  on error
                                            set o's theseNames to {} -- no psd files or "8BPS"
                                  end try
                                  set numOfNames to (count o's theseNames)
                                  repeat with j from 1 to numOfNames
                                            set thefile to theFolder & ":" & (item j of o's theseNames)
      --    M a t t    Folder Photoshop Process
                                            tell application "Adobe Photoshop CS6"
      -- I remove the command activate, Photoshop stay in background
                                                      try
      open (alias thefile) showing dialogs never
                                                                set myOptions to {class:JPEG save options, quality:12}
                                                                set myPSDOptions to {class:Photoshop save options, embed color profile:true, save layers:true}
                                                                tell current document
      --If the quick mask mode has been left on then delete the channel Quick Mask
                                                                          if (quick mask mode) then delete channel ¬
                                                                                    "Quick Mask"
      --If the Layer is incorrectly labeled with Original Layer it needs renaming to original Image
                                                                          if (exists layer "Original Layer") then ¬
                                                                                    tell layer "Original Layer" to set name to "Original Image"
      save in (localBrandFolder_PSD) as Photoshop format with options myPSDOptions without copying
                                                                          (delete layer "Original Image") flatten

  • Adding a new listener in the exisiting listener file

    Hi,
    I am trying to add a new listener entry into the exisitng listener file for a db which is on some network machine. The listener file is for 9idb on a linux box. I am tryin to create a listener for the network db since i cannot directly connect to that network machine however i can connect very well through the linux server on which 9idb is present.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = DAYBREAK)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /orainst/ora9idb/product/9.2.0)
    (PROGRAM = /orainst/ora9idb/product/9.2.0/bin/extproc)
    (ENVS = "EXTPROC_DLLS=ANY")
    (SID_DESC =
    (GLOBAL_DBNAME = dlsdev)
    (ORACLE_HOME = /orainst/ora9idb/product/9.2.0)
    (SID_NAME = dlsdev)
    (SID_DESC =
    (GLOBAL_DBNAME = dlsqa)
    (ORACLE_HOME = /orainst/ora9idb/product/9.2.0)
    (SID_NAME = dlsqa)
    -----NEW LISTENER ENTRY------------------
    LISTENER_OTH =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.80.125.106)(PORT = 1521))
    SID_LIST_LISTENER_OTH =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = orcl)
    (ORACLE_HOME = /orainst/ora9idb/product/9.2.0)
    (SERVICE_NAME = orcl)
    I've checked for the ip, port and the sid and they all are correct.
    Now when i try to start this new listener from server below is wat i get:
    lsnrctl start listener_oth
    LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 19-NOV-2007 16:22:52
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Starting /orainst/ora9idb/product/9.2.0/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 9.2.0.4.0 - Production
    System parameter file is /orainst/ora9idb/product/9.2.0/network/admin/listener.ora
    Log messages written to /orainst/ora9idb/product/9.2.0/network/log/listener_oth.log
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.80.125.106)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    Linux Error: 99: Cannot assign requested address
    Listener failed to start. See the error message(s) above...

    Are you trying to start a separate listener on the same port on the same box? Two processes can't run on the same box on the same port. If you are trying to add another DB to the existing listener you can add it to the sid_list portion of the listener.ora file.

  • Opening an exisiting file or site on another machine

    I have macs, a desktop and portable. I would love to edit my site from both machines. I use the idisk to transfer file and keep both system update. I can see the site and it's files on my idisk, but iWeb will not import or open the files. I know there are other design application that will allow for me to edit the site but the lack the theme and sometimes iWeb can't re open the file created in another app. I don't understand why there isn't a simple save as or opening an existing site command in iWeb like yo would find in similar applications. If anyone has founded a work around please let me know

    I believe you can store your domain file in a remote location, such as a file on your iDisk, so that iWeb accesses that domain file from each computer that you use. The secret is to double-click the domain file from each computer, so that the iWeb software then looks to that location. I haven't tried it, but here's the scoop:
    http://docs.info.apple.com/article.html?artnum=303045

  • Recently updated Mac OS 10.5.8 to 10.6.8 and and can not open exisiting Illustrator5 files or save new files.

    I recently updated my MacBook Pro OS from 10.5.8 to 10.6.8 and can not open existing Illustrator5 files or save new files can someone help?

    I think you have a corrupted upgrade. Do you have a backup of your old system?
    Here's what you should do for now:
    Reinstall OS X without erasing the drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.

  • Overwrite Exisiting Files - error

    I see this questions has come up a few times, but having read the answers it seems i still have a problem.  can someone clarify if i am making an error my workflow please?
    Take images in Folder XXX and develop them
    Export these images to a new folder YYY.  add to catalogue not ticked
    Syncronise YYY and bring in new images.  Apply a develop preset to these images on import
    Export the images in YYY with preset applied as jpegs to YYY for external use.  Select "Overwrite without Warning"
    Error comes up saying this cannot be performed as woudl replace exisitng photo
         My understanding from other threads is this eror should only happen if you try to replace an original, but was designed for exactly my purpose when you are operation on copies.  I am just owndering how LR is meant to know that the imported copy is a copy not an original.  What attribute would tell in that as importing through syncronisation is the same process.  If I used the "add to catalogie" in stage 2. does this let LR know it'sa copy?  If so I could add my preset manually?
    i am using LR 2.5 on Vista 32 bit
    Thanks for any advice.
    Mike

    The bug that allowed overwriting of files present in the catalog was resolved some time ago. LR has no idea what "originals" are, it just won't let you over write files present in its catalog and a good thing to! The over write function is to over write exported images, I use it all the time and it works fine. So if I want a set of images for one purpose I export them to a folder, if I then need them in a different size or whatever I just use the same folder and over write the previously exported files. No need to import these files into LR as I have the "originals" and can always make virtual copies if I need different versions in LR

  • Libstdc++-libc6.1-1.so.2 file does not exisits

    oracle : 9.2.0.4
    os : linux 5.1
    issues while starting I am getting error libstdc++-libc6.1-1.so.2 file does not exists

    Hi,
    one or two days ago someone mentioned in another thread that Oracle 9i is not supported on RHEL/OEL 5.x. Maybe you should install Oracle 9.2.0.4 on RHEL 4.8 or at least clarify if 9i is supported on RHEL/OEL 5.1.
    Regards,
    David
    OCP 9i / 10g / 11g
    http://www.oratoolkit.ch/otn.php

  • New computer, exisiting iDisk data/files

    I just had to replace my hard drive in my Macbook. The Macbook has a fresh install of OS X (NOT a restore from backup). Most of my important files are on my .Mac (now MobileMe) iDisk. I would like to just mount my iDisk, and let all the files on the server populate the local copy on my new disk.
    However, some time ago, I seem to recall that when I used System Prefs to "Start" the iDisk Sync for the first time on a new machine, the result was that my new machine's "empty" iDisk tried to replace (erase) the one at .Mac. How do I safely enable iDisk Sync so that my local iDisk receives a copy of my .Mac's iDisk, and not the other way around?

    You've posted this in the iSync forum. It would be better in the MobileMe iDisk forum, as you're more likely to find people who know about iDisk there.

  • How to attach a file that exisiting in server to email

    Hi all,
    I have to attach a file from server to email .I need not to upload that file i just want to attach the file which is in the server to email (.TXT format) .can any one help me in this issue?

    yes u can . Check out the code below. This is not my code and i found this from net and this is the code that i use as reference when i go for mailing programs.This code will help u to send PDF & TIFF . U can always modify the file type. The comments will not be in english but u can understand from the program flow.
    FORM ENVIAMENT_CORREU
      USING  PAGINA1
             PAGINA2.
      DATA: FRONTEND_SERVICES TYPE REF TO CL_GUI_FRONTEND_SERVICES.
      DATA: T_PDF TYPE TABLE OF SOLI,          "Contingut del .pdf
            T_TIF TYPE TABLE OF SOLI,          "Contingut del .tif
            T_ANN TYPE TABLE OF SOLI.          "Suma d'annexos
      DATA: L_ANN TYPE SOLI.                   "Línia estandard d'un annex
      DATA: TAM_PDF TYPE I,                    "Línies del .pdf
            TAM_TIF TYPE I,                    "Línies del .tif
            TAM_ANN TYPE I.                    "Línies dels annexos
      DATA: ELPATH         TYPE STRING.        "Per convertir tipus
      DATA: NOMFITXER(255) TYPE C,             "Per separar nom i extensió
            EXTENSIO(3)    TYPE C,             "Extensió/tipus del fitxer
            ESBORRAR(128)  TYPE C.             "Per esborrar
      DATA: TEXTS LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE,
            LIN_TEXT TYPE I.
      DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE.
      DATA: DOC_CHNG LIKE SODOCCHGI1.
      DATA: ENVIAT LIKE SONV-FLAG.
      DATA: REMITENT  LIKE SOEXTRECI1-RECEIVER,
            DADESUSER TYPE TABLE OF BAPIADSMTP WITH HEADER LINE,
            BAPIRETUR TYPE TABLE OF BAPIRET2 WITH HEADER LINE.
    ------------------ANNEXOS-------------------
    1 - el .pdf
      ELPATH = PAGINA1.  "Canvi de tipus
    Fem servir objectes perquè la funció GUI_UPLOAD
    ens la dona com a obsoleta. Encara que el mètode
    cridat la fa servir, és de suposar que quan SAP
    elimini la funció, canviarà el mètode.
      IF FRONTEND_SERVICES IS INITIAL.
        CREATE OBJECT FRONTEND_SERVICES.
      ENDIF.
      CALL METHOD FRONTEND_SERVICES->GUI_UPLOAD
        EXPORTING
          FILENAME                = ELPATH
          FILETYPE                = 'BIN'
          READ_BY_LINE            = ' '
        IMPORTING
          FILELENGTH              = TAM_PDF
        CHANGING
          DATA_TAB                = T_PDF
        EXCEPTIONS
          FILE_OPEN_ERROR         = 1
          FILE_READ_ERROR         = 2
          NO_BATCH                = 3
          GUI_REFUSE_FILETRANSFER = 4
          INVALID_TYPE            = 5
          NO_AUTHORITY            = 6
          UNKNOWN_ERROR           = 7
          BAD_DATA_FORMAT         = 8
          HEADER_NOT_ALLOWED      = 9
          SEPARATOR_NOT_ALLOWED   = 10
          HEADER_TOO_LONG         = 11
          UNKNOWN_DP_ERROR        = 12
          ACCESS_DENIED           = 13
          DP_OUT_OF_MEMORY        = 14
          DISK_FULL               = 15
          DP_TIMEOUT              = 16
          NOT_SUPPORTED_BY_GUI    = 17
          OTHERS                  = 18.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    2 - el .tif (o el que sigui)
      ELPATH = PAGINA2.  "Canvi de tipus
    Fem servir objectes perquè la funció GUI_UPLOAD
    ens la dona com a obsoleta. Encara que el mètode
    cridat la fa servir, és de suposar que quan SAP
    elimini la funció, canviarà el mètode.
      IF FRONTEND_SERVICES IS INITIAL.
        CREATE OBJECT FRONTEND_SERVICES.
      ENDIF.
      CALL METHOD FRONTEND_SERVICES->GUI_UPLOAD
        EXPORTING
          FILENAME                = ELPATH
          FILETYPE                = 'BIN'
          READ_BY_LINE            = ' '
        IMPORTING
          FILELENGTH              = TAM_TIF
        CHANGING
          DATA_TAB                = T_TIF
        EXCEPTIONS
          FILE_OPEN_ERROR         = 1
          FILE_READ_ERROR         = 2
          NO_BATCH                = 3
          GUI_REFUSE_FILETRANSFER = 4
          INVALID_TYPE            = 5
          NO_AUTHORITY            = 6
          UNKNOWN_ERROR           = 7
          BAD_DATA_FORMAT         = 8
          HEADER_NOT_ALLOWED      = 9
          SEPARATOR_NOT_ALLOWED   = 10
          HEADER_TOO_LONG         = 11
          UNKNOWN_DP_ERROR        = 12
          ACCESS_DENIED           = 13
          DP_OUT_OF_MEMORY        = 14
          DISK_FULL               = 15
          DP_TIMEOUT              = 16
          NOT_SUPPORTED_BY_GUI    = 17
          OTHERS                  = 18.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Acumulem annexos!
      LOOP AT T_PDF INTO L_ANN.
        APPEND L_ANN TO T_ANN.
      ENDLOOP.
      LOOP AT T_TIF INTO L_ANN.
        APPEND L_ANN TO T_ANN.
      ENDLOOP.
    Tamanys
      DESCRIBE TABLE T_PDF LINES TAM_PDF.
      DESCRIBE TABLE T_TIF LINES TAM_TIF.
      DESCRIBE TABLE T_ANN LINES TAM_ANN.
    Remitent i Text del correu
      SELECT SINGLE *
        INTO T_DESTI
        FROM ZMAILDEST
        WHERE TCODE = SY-TCODE
          AND ZCOMPT = 0.
      IF SY-SUBRC = 0.
        REMITENT = T_DESTI-ZDESTI.
        IF T_DESTI-ZTEXT1 IS NOT INITIAL.
          TEXTS = T_DESTI-ZTEXT1.
        ELSE.
          TEXTS = 'Adjunt trameto l''expedient indicat.'.
        ENDIF.
        APPEND TEXTS.
        IF T_DESTI-ZTEXT2 IS NOT INITIAL.
          TEXTS = T_DESTI-ZTEXT2.
          APPEND TEXTS.
        ENDIF.
        IF T_DESTI-ZTEXT3 IS NOT INITIAL.
          TEXTS = T_DESTI-ZTEXT3.
          APPEND TEXTS.
        ENDIF.
      ELSE.
    Busquem adreça de l'usuari
        CALL FUNCTION 'BAPI_USER_GET_DETAIL'
          EXPORTING
            USERNAME = SY-UNAME
          TABLES
            RETURN   = BAPIRETUR
            ADDSMTP  = DADESUSER.
        READ TABLE BAPIRETUR WITH KEY TYPE = 'E'.
        IF SY-SUBRC NE 4.
          MESSAGE E039 WITH
            'No es pot determinar remitent. Enviament avortat.'.
        ELSE.
    trobat
          READ TABLE DADESUSER INDEX 1.
          REMITENT = DADESUSER-E_MAIL.
        ENDIF.
    Si venim per aquí, no tenim text especificat...
        TEXTS = 'Adjunt trameto l''expedient indicat.'.
        APPEND TEXTS.
      ENDIF.
      DESCRIBE TABLE TEXTS LINES LIN_TEXT.
    Assumpte
      CONCATENATE 'TB Núm. Expedient:'
                  ZACEXPEDI-NUMEXPED
        INTO TEXTS SEPARATED BY SPACE.
      DOC_CHNG-OBJ_NAME = 'URGENT'.
      DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
      DOC_CHNG-OBJ_DESCR = TEXTS.
      DOC_CHNG-SENSITIVTY = 'O'.
      DOC_CHNG-DOC_SIZE = LIN_TEXT * 255.
    Capçalera
      CLEAR OBJPACK-TRANSF_BIN.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM = 0.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM = LIN_TEXT.
      OBJPACK-DOC_TYPE = 'RAW'.
      APPEND OBJPACK.
    Annex 1
    Separem nom i extensió per tal d'obtenir els tipus
      NOMFITXER = PAGINA1.
      CALL FUNCTION 'SPLIT_FILENAME'
        EXPORTING
          LONG_FILENAME  = NOMFITXER
        IMPORTING
          PURE_EXTENSION = EXTENSIO.
      OBJPACK-TRANSF_BIN = 'X'.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM = 1.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM = TAM_PDF.
      OBJPACK-DOC_TYPE = EXTENSIO.
      OBJPACK-OBJ_NAME = 'pagina1'.
      CONCATENATE 'pagina1' EXTENSIO
        INTO NOMFITXER SEPARATED BY '.'.    "un altre cop junts
      OBJPACK-OBJ_DESCR = NOMFITXER.
      OBJPACK-DOC_SIZE = TAM_PDF * 255.
      APPEND OBJPACK.
    Annex 2
    Separem nom i extensió per tal d'obtenir els tipus
      NOMFITXER = PAGINA2.
      CALL FUNCTION 'SPLIT_FILENAME'
        EXPORTING
          LONG_FILENAME  = NOMFITXER
        IMPORTING
          PURE_EXTENSION = EXTENSIO.
      OBJPACK-TRANSF_BIN = 'X'.
      OBJPACK-HEAD_START = 2.
      OBJPACK-HEAD_NUM = 2.
      OBJPACK-BODY_START = TAM_PDF + 1.
      OBJPACK-BODY_NUM = TAM_TIF.
      OBJPACK-DOC_TYPE = EXTENSIO.
      OBJPACK-OBJ_NAME = 'pagina2'.
      CONCATENATE 'pagina2' EXTENSIO
        INTO NOMFITXER SEPARATED BY '.'.    "un altre cop junts
      OBJPACK-OBJ_DESCR = NOMFITXER.
      OBJPACK-DOC_SIZE = TAM_TIF * 255.
      APPEND OBJPACK.
    VLR - 13/04/2005
    Canvi per funció SO_DOCUMENT_SEND_API1
    és una funció obsoleta, però ens permet canviar
    el remitent
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          DOCUMENT_DATA                    = DOC_CHNG
          PUT_IN_OUTBOX                    = 'X'
          SENDER_ADDRESS                   = REMITENT
          SENDER_ADDRESS_TYPE              = 'SMTP'
          COMMIT_WORK                      = ' '
        IMPORTING
         SENT_TO_ALL                      = ENVIAT
      NEW_OBJECT_ID                    =
      SENDER_ID                        =
        TABLES
          PACKING_LIST                     = OBJPACK
      OBJECT_HEADER                    =
          CONTENTS_BIN                     = T_ANN
          CONTENTS_TXT                     = TEXTS
      CONTENTS_HEX                     =
      OBJECT_PARA                      =
      OBJECT_PARB                      =
          RECEIVERS                        = DESTINATARIS
       EXCEPTIONS
         TOO_MANY_RECEIVERS               = 1
         DOCUMENT_NOT_SENT                = 2
         DOCUMENT_TYPE_NOT_EXIST          = 3
         OPERATION_NO_AUTHORIZATION       = 4
         PARAMETER_ERROR                  = 5
         X_ERROR                          = 6
         ENQUEUE_ERROR                    = 7
         OTHERS                           = 8.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
       EXPORTING
         DOCUMENT_DATA                    = DOC_CHNG
         PUT_IN_OUTBOX                    = 'X'
         COMMIT_WORK                      = 'X'
       IMPORTING
         SENT_TO_ALL                      = ENVIAT
      NEW_OBJECT_ID                    =
       TABLES
         PACKING_LIST                     = OBJPACK
      OBJECT_HEADER                    =
         CONTENTS_BIN                     = T_ANN
         CONTENTS_TXT                     = TEXTS
      CONTENTS_HEX                     =
      OBJECT_PARA                      =
      OBJECT_PARB                      =
         RECEIVERS                        = DESTINATARIS
      EXCEPTIONS
        TOO_MANY_RECEIVERS               = 1
        DOCUMENT_NOT_SENT                = 2
        DOCUMENT_TYPE_NOT_EXIST          = 3
        OPERATION_NO_AUTHORIZATION       = 4
        PARAMETER_ERROR                  = 5
        X_ERROR                          = 6
        ENQUEUE_ERROR                    = 7
        OTHERS                           = 8.
      IF SY-SUBRC <> 0.
        MESSAGE E041
          WITH '(' SY-SUBRC ') No s''ha pogut enviar el correu.'.
      ENDIF.
      Esborrem annexos
      ESBORRAR = PAGINA1(128).
      CALL FUNCTION 'GUI_DELETE_FILE'
        EXPORTING
          FILE_NAME = ESBORRAR
        EXCEPTIONS
          FAILED    = 1
          OTHERS    = 2.
      ESBORRAR = PAGINA2(128).
      CALL FUNCTION 'GUI_DELETE_FILE'
        EXPORTING
          FILE_NAME = ESBORRAR
        EXCEPTIONS
          FAILED    = 1
          OTHERS    = 2.
    ENDFORM.                    "enviament_correu

Maybe you are looking for

  • Difference between Rebate Credit Memo and Credit Memo

    Dear Experts, Can an

  • How to create a layout for  tcode fbl1n

    hi.. i  want to know how to create a layout for flbl1n.pls provide me a step by step approach. regards

  • Power book G5 flashing ? mark !

    my power book G5 is doing nothing but flashing a ? mark on the screen, it won't display anything, help please.

  • IPad3 - Storage management

    1- Is there an SD card reader that can be connected to the iPAD3? 2- What are the tranfere speeds limits? 3- Can the iPAD3 read from a wi-fi SD card using wi-fi mode directly? Or does it has to be via an existing wi-fi office network. 4- Can we conne

  • Hierarchical keywords in iPhoto

    I really appreciate the ability to open my Aperture library in iPhoto. I moved from iPhoto to Aperture a couple of years ago and upgraded all my keywords to hierarchical ones. Now when I open my library in iPhoto though, none of my keywords are visib