Regarding Dump Files

Results 1 to 7 of 7
  1. #1
    ~永遠の美~ Utsukushi is offline
    MemberRank
    Apr 2011 Join Date
    AustraliaLocation
    804Posts

    Regarding Dump Files

    So I tried to find the source of problem for this but I have a question what is Data Truncation

    Curiosity hits What is BLOB

    By the way I have this error:



    My inStoreSecond SQL table is used VARCHAR(1024)
    Last edited by Utsukushi; 07-07-13 at 02:08 PM.


  2. #2
    Gamma Xerixe is offline
    MemberRank
    Apr 2008 Join Date
    MalaysiaLocation
    3,605Posts

    Re: Regarding Dump Files

    Blob : MySQL :: MySQL 5.0 Reference Manual :: 11.1.6.3 The BLOB and TEXT Types

    Your error means you're trying to store something too big that column

  3. #3
    ~永遠の美~ Utsukushi is offline
    MemberRank
    Apr 2011 Join Date
    AustraliaLocation
    804Posts

    Re: Regarding Dump Files

    Quote Originally Posted by Xerixe View Post
    Blob : MySQL :: MySQL 5.0 Reference Manual :: 11.1.6.3 The BLOB and TEXT Types

    Your error means you're trying to store something too big that column
    Damn... Thank you so much. I might just make it LongBLOB then

    Now I have a new problem. When I wanted to try and launch

    Last edited by Utsukushi; 07-07-13 at 02:26 PM.

  4. #4
    Gamma Xerixe is offline
    MemberRank
    Apr 2008 Join Date
    MalaysiaLocation
    3,605Posts

    Re: Regarding Dump Files

    Hm, that error is most likely the way the source is coded. Post your MapleDataProvider.

  5. #5
    ~永遠の美~ Utsukushi is offline
    MemberRank
    Apr 2011 Join Date
    AustraliaLocation
    804Posts

    Re: Regarding Dump Files

    Here ya go Thanks for helping me out:

    Code:
    /*
    This file is part of the OdinMS Maple Story Server
    Copyright (C) 2008 ~ 2010 Patrick Huy <patrick.huy@frz.cc> 
    Matthias Butz <matze@odinms.de>
    Jan Christian Meyer <vimes@odinms.de>
    
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License version 3
    as published by the Free Software Foundation. You may not use, modify
    or distribute this program under any other version of the
    GNU Affero General Public License.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.
    
    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     */
    package provider;
    
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    
    public class MapleDataProvider {
        private File root;
        private MapleDataDirectoryEntry rootForNavigation;
    
        public MapleDataProvider(File fileIn) {
            root = fileIn;
            rootForNavigation = new MapleDataDirectoryEntry(fileIn.getName(), 0, 0, null);
            fillMapleDataEntitys(root, rootForNavigation);
        }
    
        private void fillMapleDataEntitys(File lroot, MapleDataDirectoryEntry wzdir) {
            for (File file : lroot.listFiles()) {
                String fileName = file.getName();
    
                if (file.isDirectory() && !fileName.endsWith(".img")) {
                    MapleDataDirectoryEntry newDir = new MapleDataDirectoryEntry(fileName, 0, 0, wzdir);
                    wzdir.addDirectory(newDir);
                    fillMapleDataEntitys(file, newDir);
    
                } else if (fileName.endsWith(".xml")) { // get the real size here?
                    wzdir.addFile(new MapleDataFileEntry(fileName.substring(0, fileName.length() - 4), 0, 0, wzdir));
                }
            }
        }
    
        public MapleData getData(String path) {
            File dataFile = new File(root, path + ".xml");
            File imageDataDir = new File(root, path);
            /*		if (!dataFile.exists()) {
            throw new RuntimeException("Datafile " + path + " does not exist in " + root.getAbsolutePath());
            }*/
            FileInputStream fis;
            try {
                fis = new FileInputStream(dataFile);
            } catch (FileNotFoundException e) {
                throw new RuntimeException("Datafile " + path + " does not exist in " + root.getAbsolutePath());
            }
            final MapleData domMapleData;
            try {
                domMapleData = new MapleData(fis, imageDataDir.getParentFile());
            } finally {
                try {
                    fis.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return domMapleData;
        }
    
        public MapleDataDirectoryEntry getRoot() {
            return rootForNavigation;
        }
    }

  6. #6
    Gamma Xerixe is offline
    MemberRank
    Apr 2008 Join Date
    MalaysiaLocation
    3,605Posts

    Re: Regarding Dump Files

    Do you have the WZ / XML files?

  7. #7
    ~永遠の美~ Utsukushi is offline
    MemberRank
    Apr 2011 Join Date
    AustraliaLocation
    804Posts

    Regarding Dump Files

    I do but I will check it once more


    Sent from my iPhone using Tapatalk



Advertisement