Collect Files Error - Folder Nested too deeply?

I'm getting a new error when trying to collect files.
"Folders are too deeply nested to create full path for file "filename"" 3:32
I'm a little puzzled because this source folder isn't more deeply nested than any other source file in my project. How deep can AE create folders?

That's a great resource, Myles! Thanks.
I'll have to investigate further. My source footage isn't buried deep, but I think when AE is collecting files, it's creating folders too deep for it to save it at the destination.

Similar Messages

  • Getting "Serialized xml is nested too deeply" when trying to restart AppFabric Cache Cluster remotely with Powershell

    Hi! I´m Getting the following error when trying to restart the AppFabric Cache Cluster:
    PS C:\temp> .\restartappfabric.ps1
    Serialized xml is nested too deeply.
    + CategoryInfo          : OperationStopped: (ServerName:String) [], PSRemotingTransportException
        + FullyQualifiedErrorId : JobFailure
        + PSComputerName        :
    ServerName
    Here's The Script:
    $ServerName="ServerName"
    $sc = {
                Import-module DistributedCacheAdministration
                Use-CacheCluster
                Restart-CacheCluster
    Invoke-Command -computername  $ServerName -scriptblock $sc
    Powershell remoting is fully enabled and working fine con remote computers. When testing the script against a TEST computer is working fine, but when executing the script against PRE & PROD servers I get the error described above.
    Running the lines within the scriptblock locally in the servers works fine.
    Any help on this would be appreciated.
    Thanks

    Thanks man for your help. Tried using the connectionstring but got the same results
    PS C:\temp> Invoke-Command -ComputerName Servername {import-Module DistributedCacheAdministration;Use-CacheCluster -P
    rovider XML -ConnectionString "\\vmbcorp.com\FS\ApplicationContent\PRE\AppFabricCache" ;Restart-CacheCluster}
    Serialized xml is nested too deeply.
        + CategoryInfo          : OperationStopped: (BBLAMTPDAFC01:String) [], PSRemotingTransportException
        + FullyQualifiedErrorId : JobFailure
        + PSComputerName        : BBLAMTPDAFC01
    PS C:\temp>
    Running the commands locally with the ConnectionString swith works as well. Running out of Ideas.. May be using psexec..

  • I met ORA-00935 group function is nested too deeply Message.

    Hi all,
    I made a table like below,
    ==============================
    CREATE TABLE ser_1m_det (
         time                    TIMESTAMP,
         proto                    NUMBER(3,0),
         port                    NUMBER(5,0),
         pkts                    NUMBER(17,0),
         vol_m                    NUMBER(17,4)
    ====================================
    Then I want to use below SQL
    ====================================
    SELECT proto, port, SUM(pkts) pkts, SUM(vol_m) vol_m
    FROM ser_1m_det
    GROUP BY (proto, port)
    HAVING time < SYSTIMESTAMP AND ROWNUM<10
    ORDER BY SUM(pkts);
    ====================================
    When I execute upper sql, I met this error message;
    ===================================
    ORDER BY SUM(pkts)
    ORA-00935 group function is nested too deeply
    ===================================
    Then I search what this message mean.
    ====================================
    ORA-00935 group function is nested too deeply
    Cause: This is an internal error message not usually issued.
    Action: Contact Oracle Support Services.
    ====================================
    I install Oracle9iAS Infrastructure 9.0.2.0.0 on WIN2000.
    (I am using DBMS in Oracle9iAS @.@)
    -> DBMS version is Oracle9i Enterprise Edition Release 9.0.1.3.1
    Anybody know why I met upper error message?
    Thanks in advance.

    well,
    first you want to group,
    then you want to order,
    and most probably then you are interested in the N top records.
    I had a try on table USER_OBJECTS to make things easier:
    select * from
    (select
    object_type
    ,status
    ,nvl(oi ,0) oi
    ,nvl(doi,0) doi
    from
    ( select
    object_type
    ,status
    ,sum(object_id) oi
    ,sum(data_object_id) doi
    from
    user_objects
    where
    created between sysdate -1000 and sysdate
    group by
    object_type
    ,status
    ) A
    order by
    oi desc
    ) B
    where rownum < 5
    ;

  • Collect Files Error:Bad Reference Number (-51)

    When using Collect Files to push my project to a renderfarms watch folder it stops when the transfer is to a specific source file:
    AVI (Blackmagic SDI)
    YUV 10bit
    uncompressed
    16 GB
    The error message is:
    BAD REFERENCE NUMBER (-51)
    what does this mean?
    Rendering on my local machine works fine.

    What is the file size and to what network storage do you transfer? Sounds like the file size is simply too large and the server refuses to accept it or at least the server is unable to provide enough contiguous storage space to accomodate it...
    Mylenium

  • ORA-00935:  group function is nested too deeply - SQL Query is correct...

    select s.sname, to_char(sum(t.amount), 'fm$999999.00')
    from transactions t, salespeople s
    where t.sid = s.sid
    group by s.sname, t.year
    having (t.year = 1997) and max(sum(t.amount));
    I'm trying to print sales person name who had the highest total sell in 1997. I do not see where did i go wrong in the above query...Isn't nested group function allowed?!
    What about this?
    select s.sname, to_char(sum(t.amount), 'fm$999999.00') as "TOTAL"
    from transactions t, salespeople s
    where t.sid = s.sid
    group by s.sname, t.year
    having (t.year = 1997) and sum(t.amount) = (select max(amount) from transactions where year = 1997);
    It should return something, but it does not due lack of data in database. I think the above code is correct. I just need to confirm from you...

    select s.sname, (case when sum(t.amount) > sum(t2.amount)
    then sum(t.amount)
    else sum(t2.amount)
    end) "TOTAL"
    from transactions t, salespeople s
    where t.sid = s.sid
    group by s.sname, t.year
    having t.year = 1997
    union
    select s.sname, sum(t2.amount)
    from transactions t2, salespeople s
    where t2.sid = s.sid
    group by s.sname, t2.year
    having t2.year = 1997;
    Your code looks good, but it does not work in Oracle Developer...
    The above should work isn't it? The inner query gets executed then the outer one so the result i get in

  • Bridge Collection file / folder name single quote bug fix?

    Just starting using Bridge CS5 on WIndows 7.  Fresh install of OS and CS5.  Latest patches applied (4.0.5.11).
    After laboriously selecting 60+ files and creating a colelction, the collection showed zero items.
    I recreated the collection multiple times but same result.  This was supremely frustrating and a huge time waster for me (and I'm sure for others).
    Completely repeatable.
    Tracked this down to one of my folders having a single quote in its name.  This problem was documented back in 2010:
    http://forums.adobe.com/message/2936294
    I edited the collection file in notepad and replaced the single quote with %27.  Worked fine.
    But manually editting the collection file everytime I make a change to the collection or renaming my folder hierachry are not viable workarounds.
    Does anybody know if a fix was ever released for this?  What is Adobe's response to this? 
    It apparently is a regression (i.e. it was fixed in a pevious verision and now is back).
    This is a programming 101 bug (i.e. escaping special characters in file names). 
    This type of programing error is a real showstopper and really inexcuable, especially for how long it has been out there.
    Jeff

    Thanks for posting this problem on the photoshop feedback page.
    It's clear many of us have tripped on this issue and that it is time Adobe fixed this problem.
    To hedge our collective bets, I also filed a "bug report" using this web page:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    It interesting to note that I did not find a bug report form for Bridge - the site just offers a redirect to the general feedback form on Photoshop.  But there was a bug report form for Premier Pro (a program they obviously care more about).  So I filed this issue as an official bug against Premier Pro thinking it may get greater visiability.  What follows is what I submitted.  If I hear back from the development team I'll let this thread know.
    Jeff
    ******BUG******
    File names / folders with single quotes (e.g., Jeff's Photos) are not properly escaped in the collection xml file created by Bridge which is used to manage assets in Photoshop, Premier Pro, etc. The single quote, which is a valid filename symbol in Windows, should be converted to %27 in the xml file but is left "as is" which prematurely terminates filename / folder strings.  The net effect varies based on the operation being performed, but it is typically a silent error (i.e. the user is given no warning anything is wrong) and can result in catastrophic loss of critical assets.
    It is simple to repro: just create a folder with a single quote in the name, populate it with content files, and create a collection.  The next time you use it, the collection shows up as 0 entries.
    The bug (which appears to be a regression) results in many users losing critical asset files and wasting huge amounts of time debugging this issue which was reported almost a year ago.  The forums have many threads on this problem - see my recent entry for an example:
    http://forums.adobe.com/message/4112499#4112499
    The bug is a trap that directly erodes customer confidence and satisfaction with Adobe's whole product line.  Bridge is billed as hub that is supposed to tie all products together - but it cannot be trusted.  Critical assets and time are lost.  This is trivial bug to fix and many customers are outraged that Adobe has done nothing to fix it or warn users about it - especially since this is in your professional line of products that cost over a thousand dollars.  Please escalate this fix immediately. 
    As a courtesy, please let me know this bug report was escalated and an ETA when a fix may become available.
    Thank you

  • Error message: file name invalid or too long.  How do I fix this when uploading my purchased cd's???

    Error message when importing a commercial CD: "file name invalid or too long".  How do I fix this????

    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store you can find it in your Purchases List.

  • [Solved] Error : The file or folder path /Probl?me 1 does not exist

    Hello,
    I encountered this error
    The file or folder <path>/Probl?me 2 does not exist
    while I was trying to open a directory already extracted from a zip file containing directories with special characters. In this case, it is a "è" that was misinterpreted as a "?".
    I searched the forums and on google, the solutions proposed do not work for me. Although, I have to deal with these files written in french, I would like to have my locale in english (US), with a system wide support for special characters.
    Attempt 1: Adding the option : iocharset=utf8 into the fstab, like this :
    fstab :
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /dev/pts devpts defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    /dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
    /dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
    /dev/fd0 /media/fl auto user,noauto 0 0
    /dev/disk/by-uuid/24ba75ac-e52d-40eb-a599-83b394b500b2 /boot ext2 defaults 0 2
    /dev/disk/by-uuid/c797f409-00bc-479a-b4d6-ab49943f644b / ext4 defaults 0 1
    /dev/disk/by-uuid/668427a8-5f51-42bd-a316-fc7984bf5f4f /var ext4 defaults 0 2
    /dev/sda7 swap swap defaults 0 0
    /dev/disk/by-uuid/417cd1b7-8f06-414b-84d5-e8714d9646ab /home ext4 defaults 0 2
    /dev/disk/by-uuid/ef9aa00e-0515-4d7b-aa23-8096e787250d /usr ext4 defaults 0 2
    /dev/disk/by-uuid/17d401b7-2fc7-4d9f-8e17-657d86926d2e /tmp ext4 defaults,iocharset=utf8 0 0 <<<<<<<<<<<<<<
    /dev/disk/by-uuid/71e543b6-e06c-4b0e-b1e3-3b491ff1fefe /var/cache/pacman/repos ext4 defaults 0 2
    #/dev/sda12 /mnt/archive ext4 defaults 0 2
    #.host:/ /mnt/hgfs vmhgfs defaults 0 0
    This solution does not work, because after adding iocharset=utf8, in front or after a "defaults", after a reboot, while mounting the filesystem, there is the following error message:
    Mounting Locale Filesystem :
    mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so
    $ dmesg | tail
    phy0: Selected rate control algorithm 'iwl-agn-rs'
    EXT4-fs (sda5): re-mounted. Opts: (null)
    EXT4-fs (sda5): re-mounted. Opts: (null)
    EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sda8): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sda9): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sda10): Unrecognized mount option "iocharset=utf8" or missing value <<<<<<<<<<<<<<
    EXT4-fs (sda11): mounted filesystem with ordered data mode. Opts: (null)
    Adding 2104476k swap on /dev/sda7. Priority:-1 extents:1 across:2104476k
    tg3 0000:07:00.0: irq 44 for MSI/MSI-X
    Attempt 2: Changing all the locale features in KDE and in /etc/rc.conf as well.
    $ vim /etc/rc.conf
    LOCALE="fr_CA.utf8"
    HARDWARECLOCK=""
    TIMEZONE="America/Montreal"
    KEYMAP="us"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    It is complicated to remove these directories. I had to use the inum to get precisely these directories before removing them.
    $ ls -il
    total 8
    1577566 drwxr-xr-x 2 [username] [username] 4096 28 jan 07:09 Probl?me 1
    1577573 drwxr-xr-x 2 [username] [username] 4096 28 jan 07:09 Probl?me 2
    $ find . -inum 1577566 -exec rm -i {} \;
    rm: impossible de supprimer « ./Probl\212me 1 »: est un dossier
    Note that the hypothetical character 'è' is represented has a '\212', a 'È' if seen as a extended ASCII character.
    These directories cannot be deleted this way :
    $ rm -r Problème\ 1
    rm: cannot remove `Problème 1': No such file or directory
    or
    $ rm -r ProblÈme\ 1
    rm: cannot remove `ProblÈme 1': No such file or directory
    What should I do to be make the operating system recognize those special character, and interpret them correctly ?
    Last edited by ramboman (2011-01-29 21:45:50)

    I found a working solution, but better solution are also welcome
    I had to have fr_CA not only in utf8 but also in iso88591. I had to modify the /etc/rc.conf this way :
    LOCALE="fr_CA" <<<<<<<<<<<<<<
    HARDWARECLOCK=""
    TIMEZONE="America/Montreal"
    KEYMAP="us"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    To preserve the english US language system wide, I had to add the following line in the /etc/profile :
    # Allow french special character while in en_US
    export LANG=en_US
    The character misinterpreted by a "?" is now seen :
    as a "è" in dolphin
    as a "?" in the console
    It is now possible to access the folders.

  • Part of Photoshop isn't functioning.  Under adjustments, when HDR toning is clicked on I get a code:  Error 48: File or folder does not exist.  Line:11  - $.evalFile(g_StackScriptFolderPath   "StackSupport.jsx");  How can it be fixed?

    The phone company was here working on something while I was gone.  They sat down at my computer (iMac) and since then HDR toning doesn't work.  Get the code:   Error 48: File or folder does not exist.    Line: 11     ->  $.evalFile(g_StacScriptFolderPatch + "StackSupport.jsx");   How can this be fixed?   

    Go to //Applications/Adobe Photoshop [Version]/Presets/ Scripts/Stack Scripts Only/ and see if StackSupport.jsx is there. If it is not, uninstall and reinstall Photoshop to have it added back in. If it is there, first try recreating the Photoshop Preferences (hold down Command+Option+Shift while launching Photoshop).

  • HDR Toning Error 48: File or Folder Does Not Exist

    After migrating to a new computer HDR Toning is no longer available.
    I get a pop-up: Error 48: File or Folder Does Not Exist
                             Line 11  -> $. evalFile(g_StackScriptFolderPath + "StackSupport.jsx");
    What's the fix for this, if anyone knows?
    Thanks.

    Go to //Applications/Adobe Photoshop [Version]/Presets/ Scripts/Stack Scripts Only/ and see if StackSupport.jsx is there. If it is not, uninstall and reinstall Photoshop to have it added back in. If it is there, first try recreating the Photoshop Preferences (hold down Command+Option+Shift while launching Photoshop).

  • Ruler Tool- Error 48: File or folder does not exist

    I am trying to use the new RULER TOOL in CS5 (64-bit mode) running 10.6.4 and I get the following error:
    Error 48: File or folder does not exist.
    Line: 31
    ->  $.evalFile( g_StackScriptFolderPath + "Geometry.jsx");
    Any ideas?

    i'm getting the exact error using Windows XP with CS5.5
    error 48: file or folder does not exist
    line: 31
    -> $.evalFile(g_StackScriptFolderPath + "Geometry.jsx");
    HELP!!!
    someone
    hello ... anyone out there?
    how do we get support for this error?
    e

  • Error 48: File or folder not found when using photomerge panorama - imac photoshop elements 10

    Any help is appreciated.  Followed the photomerge panorama instructions and got error 48: file or folder not found.....line 16 ...
    using photoshop elements 10 on imac with OSX 10.8.2
    Thx

    Have you recently updated your Operating system? Please try repairing permissions for your hard disk.
    Please check the help document to know more about repairing permissions http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac-os.html#main_Solutio n_3__Repair_Disk_Permissions

  • Intermittent too many open files error and Invalid TLV error

    Post Author: jam2008
    CA Forum: General
    I'm writing this up in the hopes of saving someone else a couple of days of hair-pulling...
    Environment: Crystal Reports XI Enterprise / also runtime via Accpac ERP 5.4
    Invalid TLV error in Accpac
    "too many open files" error in event.log file
    Situation:
    Invalid TLV error occurs seemingly randomly on report created in CR Professional 11.  Several days of troubleshooting finally lead to the following diagnosis:
    This error occurs in a report that contains MORE THAN 1 bitmap image.
    The error only shows up after 20 or more reports have been generated sequentially, WITHOUT CLOSING the application that is calling the report.  In our case the Invoice Report dialog within Accpac.  This same error occurred in a custom 3rd party VB.NET app that also called the report through an Accpac API.

    after getting this message you need to do 2 things:
    1. delete the current workspace because it contains some bad data in one the config files - failure to delete the workspace will result the error message to appear even if trying to upload a single file.
    2. add to DTR files in groups - no more than 500 in a single add.

  • File too large error or corrupt file error

    I have scanned some images using a Nikon Cool Scan and when trying to import the the NEF files into Lightroom I get a corrupt or unrecognized file error. Bring it into CS2 or CS3 and save as TIFF and try the import and get a File too large error.
    Any ideas or help on this. What is the file size max for import?
    The scan is 4000dpi even tried at 300dpi.
    Thanks in advance for any insight.

    &gt; Is it truly a size problem? If so, what is recommended? Lee Jay states that 10000 pixels is the max on either side. Okay, in DPI, what does that translate to?
    <br />
    <br />There's no necessary relationship between pixels and dots. You could scan an image at 4,000,000 dpi and translate it into an image of 100 x 100 pixels. I've used ridiculous extremes to make a point. The LR limitation is currently 10,000 pixels for any side. So you could have 9,000 x9,000 pixels but not 10,001 x50 pixels.
    <br />
    <br />Is this now clearer?
    <br />
    <br />
    <span style="color: rgb(102, 0, 204);">John "McPhotoman"</span>
    <font br="" /></font> color="#800000" size="2"&gt;~~ John McWilliams
    <br />
    <br />
    <br />
    <br />MacBookPro 2 Ghz Intel Core Duo, G-5 Dual 1.8;
    <br />Canon DSLRs

  • Suddenly getting "Too Many Open File" error

    Dear All,
    I have listener program which have been working well for the past few months. Suddenly I start to get "Too Many Open File" error. What can be solution? Is it I need to increase the file descriptors or any other solution? Thank you.

    Dear Ejp,
    Attached below is my codes. I have remove some of the fields for db just to make the code a bit more easier to read. Where do you think is leaking?
    public class commServer {
    public static void main(String[] args) {
    try {
                   final ServerSocket serverSocketConn = new ServerSocket(8888);
                        while (true)
                                  try
                             Socket socketConn1 = serverSocketConn.accept();
    new Thread(new ConnectionHandler(socketConn1)).start();               
                                  catch(Exception e)
                                                 System.out.println(e.toString());
    catch (Exception e)
    System.out.println(e.toString());
    //System.exit(0);
    class ConnectionHandler implements Runnable {
    private Socket receivedSocketConn1;
    DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
    DateFormat formatter = new SimpleDateFormat("EEE, dd MMM yyyy");
    DateFormat inDf=new SimpleDateFormat("ddMMyyHHmmss");
    DateFormat outDf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    ConnectionHandler(Socket receivedSocketConn1) {
    this.receivedSocketConn1=receivedSocketConn1;
    //@Override
    public void run() {
    Connection dbconn = null;
    BufferedWriter w = null;
    BufferedReader r = null;
    try {
    PrintStream out = System.out;
         BufferedWriter fout = null;
    w = new BufferedWriter(new OutputStreamWriter(receivedSocketConn1.getOutputStream()));
    r = new BufferedReader(new InputStreamReader(receivedSocketConn1.getInputStream()));
    int m = 0, count=0;
    String line="";
    String n="";
    w.write("$PA\n");
    w.flush();
    while ((m=r.read()) != -1)
    Date dateIn = new Date();
         n = n + (char) m;
         int i = n.indexOf("GET");
                                  if(i != -1) {
                                       break;
         if (m==35)
         String ori = n;
         String noCheckSum = n.substring(0,(n.length()-4));
                   int addExist = n.indexOf("@");
    String[] slave = null;
    if(addExist!=-1)
         slave = noCheckSum.split("@");
              n = slave[0];
              //System.out.println(" slave : "+slave.length);
                   else
                        n = noCheckSum;
         String[] result = n.split(",");
         Statement stmt = null;
         w.write("$PA\n");
    w.flush();
                   int count1 = 0;
    Date date = Calendar.getInstance().getTime();
    String today = formatter.format(date);
                        String filename= "MyDataFile"+today+".txt";
    boolean append = true;
    FileWriter fw = null;
    try
    fw = new FileWriter(filename,append);
         fw.write(ori+" "+dateFormat.format(dateIn)+"\n");//appends the string to the file
         Date dateOut = new Date();
         fw.write("$PA"+" "+dateFormat.format(dateOut)+"\n");//appends the string to the file
    catch (IOException ex)
                        //ex.printStackTrace(new PrintWriter(sWriter));
                        System.out.println("MyError:IOException has been caught in in the file operation");
                        ex.printStackTrace();
                        finally
                   try
         if ( fw != null )
              fw.close();
         else
              System.out.println("MyError:fw is null in finally close");
                        catch(IOException ex){
                        System.out.println("MyError:IOException has been caught in fw is null in finally close");
                        ex.printStackTrace();
         try
                             String deviceID=result[3].trim();      
                             String dateTime=result[4].trim();                          
                             String[] result2 = result[10].split("'");                          
                             String gpsDate = result2[1].trim().substring(0,6);                    
                             String gpsTime = result2[1].trim().substring(6,12);                         
                             String gpsLat = result2[1].trim().substring(13,20);
                             String latitude = result2[1].trim().substring(13,20).substring(0,2)+"."+result2[1].trim().substring(13,20).substring(2,7);
                             String gpsLong = result2[1].trim().substring(21,29);
                             String longitude = result2[1].trim().substring(21,29).substring(0,3)+"."+result2[1].trim().substring(21,29).substring(3,8);
                             String speed = result2[1].trim().substring(30,33);                         
                             String course = result2[1].trim().substring(33,36);
                   String dateTimer = null;
                             try
                             Date inDate=null;
                             inDf.setTimeZone(TimeZone.getTimeZone("UTC"));
                             inDate=inDf.parse(dateTime);
                             outDf.setTimeZone(TimeZone.getTimeZone("Asia/Kuala_Lumpur"));
                                       dateTimer=outDf.format(inDate);
                             catch(ParseException ex)
                             System.out.println("MyError:Parse Error has been caught for date parse close");
              ex.printStackTrace();
                        dbconn = DriverManager.getConnection("jdbc:mysql://192.168.1.155:3306/db1?"+"user=db1&password=test1");
                   stmt = dbconn.createStatement();
                   String selectQuery2 = "Select * from tripData Where deviceID='"+ deviceID +"' and dateTimer>'"+dateTimer+"' Order By dateTimer Desc Limit 1";
                   ResultSet rs2 = stmt.executeQuery(selectQuery2);
                   String updateQuery = "";
                   if(rs2.next())
                        String previousLatitude="";
                        String previousLongitude="";
                        String previousSpeed="";
                        previousLatitude = rs2.getString("latitude");
                        previousLongitude = rs2.getString("longitude");
                        previousSpeed = rs2.getString("speed");
                        updateQuery = "UPDATE device SET " +
                                       "latitude='" + previousLatitude +
                                       "',longitude='" + previousLongitude +
                                       "',speed='" + previousSpeed +
                                       "' WHERE serialNumber='" + deviceID + "'";
                   else
                   updateQuery = "UPDATE device SET " +
                                       "latitude='" + latitude +
                                       "',longitude='" + longitude +
                                       "',speed='" + speed +
                                       "',course='" + course +
                                       "',dateTimer='" + dateTimer +
                                       "' WHERE serialNumber='" + deviceID + "'";
                        count = stmt.executeUpdate(updateQuery);                    
                   String insertQuery = "INSERT INTO tripData" +
                                       "(latitude,longitude,speed,course,dateTimer,deviceID)" + " VALUES ('" +
                                       latitude + "','" + longitude + "','" + speed + "','" + course + "','" + dateTimer + "','" + deviceID + "' )";
         count = stmt.executeUpdate(insertQuery);
              if(addExist!=-1)
              for(int iSlave=1; iSlave<slave.length ; iSlave++)
                                            String[] slaveDetails = slave[iSlave].split(",",-1);
                                            String slaveEventType = slaveDetails[0];
                                            String slaveGroup = slaveDetails[1];
                                            String slaveUnitID = slaveDetails[2];
                                            String slaveBattLevel = slaveDetails[3];
                                            String slaveSwitchStat = slaveDetails[4];
                                            String slaveTempHumid = slaveDetails[5];
                                       String slaveTemp="",slaveHumid="";                                   
                                       if(slaveTempHumid.length()>0)
                                       slaveHumid = slaveTempHumid.substring(5,7);
                                                 if(slaveTempHumid.charAt(0)=='P')
                                                 slaveTemp = "+"+slaveTempHumid.substring(1,3)+"."+slaveTempHumid.substring(3,5);                                                  
                                                 else if(slaveTempHumid.charAt(0)=='M')
                                                 slaveTemp = "-"+slaveTempHumid.substring(1,3)+"."+slaveTempHumid.substring(3,5);
                                       slaveBattLevel = slaveBattLevel.trim().substring(0,2)+"."+slaveBattLevel.trim().substring(2,3);
                                            String insertQuery2 = "INSERT INTO tripDataSlave" +
                                            "(dateTimer,deviceID,slaveUnitID,slaveEventType,slaveGroup,slaveBattLevel,slaveSwitchStat,slaveTemp,slaveHumidity)" + " VALUES ('" +
                                            dateTimer + "','" + deviceID + "','" + slaveUnitID + "','" + slaveEventType + "','" + slaveGroup + "','" + slaveBattLevel + "','" + slaveSwitchStat + "','" + slaveTemp + "','" + slaveHumid + "')";
              count = stmt.executeUpdate(insertQuery2);
                   catch (SQLException ex)
    System.out.println("MyError:Error : "+ex);
                        finally
                        try
                             if ( stmt != null )
                             stmt.close();
                             else
                                  System.out.println("MyError:stmt is null in finally close");
                        catch(SQLException ex){
                        System.out.println("MyError:SQLException has been caught for stmt close");
    ex.printStackTrace();
                        try
                             if ( dbconn != null )
                             dbconn.close();
                             else
                             System.out.println("MyError:dbconn is null in finally close");
                        catch(SQLException ex){
                        System.out.println("MyError:SQLException has been caught for dbconn close");
    ex.printStackTrace();
         n="";
    catch (IOException ex)
    System.out.println("MyError:IOException has been caught in in the main first try");
    ex.printStackTrace();
    finally
    try
         if ( w != null )
              w.close();
         else
              System.out.println("MyError:w is null in finally close");
    catch(IOException ex){
    System.out.println("MyError:IOException has been caught in w in finally close");
    ex.printStackTrace();
    }

Maybe you are looking for