Сообщений: 265
Тем: 2
Зарегистрирован: Jan 2010
Репутация:
4,770
Отредактировал:
Немного не так прочитал суть вашей ошибки, она ругается на то что не может найти метод который указан в строчке запуска, ищите проблему в расположении либсы, либо в батнике запуска.
22 пост посмотрите..
open-team.ru
Сообщений: 3,968
Тем: 90
Зарегистрирован: Nov 2010
Репутация:
15,337
Серый_Ветер Написал:geodata включена и присутсуют все файлы.
1. не та ошибка:
2. все ошибки перерыл, нету таких...
Да как нету? Я писал выше, внимательнее.
Ro_0TT Написал:Да
В методе
PHP код: <?php
public void onBypassCommand(Player player, String bypass)
{
....
}
удалите строки:
PHP код: <?php
if (!Config.COMMUNITYBOARD_CUSTOM_ENABLED)
html = HtmCache.getInstance().getNotNull(COMMUNITY_BOARD_HTML + "bbs_top.htm", player);
else
{
HtmlManager.getInstance().onBypassCommand(player, bypass);
return;
}
Сообщений: 9
Тем: 1
Зарегистрирован: Jul 2012
Репутация:
0
в каком именно?
Код: > find . -name "*.*" -exec grep -H 'public void onBypassCommand(Player player, String bypass)' {} \; | awk -F":" '{print $1}' | uniq
Код: ./build/dist/gameserver/data/scripts/services/community/PrivateMail.java
./build/dist/gameserver/data/scripts/services/community/CommunityBoard.java
./build/dist/gameserver/data/scripts/services/community/ManageFavorites.java
./build/dist/gameserver/data/scripts/services/community/ManageMemo.java
./build/dist/gameserver/data/scripts/services/community/ClanCommunity.java
./build/dist/gameserver/data/scripts/services/community/ManageFriends.java
./build/dist/gameserver/data/scripts/services/community/RegionCommunity.java
./gameserver/data/scripts/services/community/ManageFavorites.java
./gameserver/data/scripts/services/community/ClanCommunity.java
./gameserver/data/scripts/services/community/CommunityBoard.java
./gameserver/data/scripts/services/community/RegionCommunity.java
./gameserver/data/scripts/services/community/ManageMemo.java
./gameserver/data/scripts/services/community/ManageFriends.java
./gameserver/data/scripts/services/community/PrivateMail.java
./gameserver/java/la2shark/gameserver/handler/bbs/CommunityBoardManager.java
все, нашел...по содержимому
Код: > find . -name "*.*" -exec grep -H 'html = HtmCache.getInstance().getNotNull(COMMUNITY_BOARD_HTML +' {} \; | awk -F":" '{print $1}' | uniq
Код: ./services/community/CommunityBoard.java
>
Сообщений: 3,968
Тем: 90
Зарегистрирован: Nov 2010
Репутация:
15,337
В ошибке было указано в каком файле.
Сообщений: 9
Тем: 1
Зарегистрирован: Jul 2012
Репутация:
0
убрал вышеуказанные строки строки
все равно
Код: > cat stdout.log
Exception in thread "main" java.lang.NoClassDefFoundError: la2shark/gameserver/GameServer
Caused by: java.lang.ClassNotFoundException: la2shark.gameserver.GameServer
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>
Сообщений: 3,968
Тем: 90
Зарегистрирован: Nov 2010
Репутация:
15,337
Класс не может найти, написано же, у вас видимо ядро не скомпилировано.
Сообщений: 9
Тем: 1
Зарегистрирован: Jul 2012
Репутация:
0
07-11-2012, 06:40 PM
(Сообщение последний раз редактировалось: 07-11-2012, 11:39 PM Серый_Ветер.)
с ссылки в первом посте слито.
в корне с build.xml
в логах пишет что все сделано.
Добавлено через 4 минуты
Цитата:> cat log
i Код: nit:
compile-commons:
[delete] Deleting directory /home/l2serv/source/sharkteam/source/build/classes
[mkdir] Created dir: /home/l2serv/source/sharkteam/source/build/classes
[javac] /home/l2serv/source/sharkteam/source/build.xml:56: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 77 source files to /home/l2serv/source/sharkteam/source/build/classes
commons-jar:
[exec] Execute failed: java.io.IOException: Cannot run program "/home/l2serv/source/sharkteam/source/C:/Program Files/SlikSvn/bin/svnversion.exe": java.io.IOException: error=2, No such file or directory
[jar] Building jar: /home/l2serv/source/sharkteam/source/build/commons.jar
compile-authserver:
[delete] Deleting directory /home/l2serv/source/sharkteam/source/build/classes
[mkdir] Created dir: /home/l2serv/source/sharkteam/source/build/classes
[javac] /home/l2serv/source/sharkteam/source/build.xml:151: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 54 source files to /home/l2serv/source/sharkteam/source/build/classes
authserver-jar:
[exec] Execute failed: java.io.IOException: Cannot run program "/home/l2serv/source/sharkteam/source/C:/Program Files/SlikSvn/bin/svnversion.exe" (in directory "/home/l2serv/source/sharkteam/source/authserver"): java.io.IOException: error=2, No such file or directory
[jar] Building jar: /home/l2serv/source/sharkteam/source/build/authserver.jar
authserver:
[copy] Copying 2 files to /home/l2serv/source/sharkteam/source/build/dist/authserver/libs
compile-gameserver:
[delete] Deleting directory /home/l2serv/source/sharkteam/source/build/classes
[mkdir] Created dir: /home/l2serv/source/sharkteam/source/build/classes
[javac] /home/l2serv/source/sharkteam/source/build.xml:85: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1661 source files to /home/l2serv/source/sharkteam/source/build/classes
[javac] /home/l2serv/source/sharkteam/source/gameserver/java/la2shark/gameserver/model/instances/RaidBossInstance.java:199: warning: [unchecked] unchecked cast
[javac] found : java.lang.Object
[javac] required: java.util.Set<la2shark.gameserver.model.Player>
[javac] ((Set<Player>) info[0]).add(p);
[javac] ^
[javac] /home/l2serv/source/sharkteam/source/gameserver/java/la2shark/gameserver/model/instances/RaidBossInstance.java:205: warning: [unchecked] unchecked cast
[javac] found : java.lang.Object
[javac] required: java.util.Set<la2shark.gameserver.model.Player>
[javac] ((Set<Player>) info[0]).add(p);
[javac] ^
[javac] /home/l2serv/source/sharkteam/source/gameserver/java/la2shark/gameserver/model/instances/RaidBossInstance.java:208: warning: [unchecked] unchecked cast
[javac] found : java.lang.Object
[javac] required: java.util.Set<la2shark.gameserver.model.Player>
[javac] ((Set<Player>) info[0]).add(player);
[javac] ^
[javac] /home/l2serv/source/sharkteam/source/gameserver/java/la2shark/gameserver/model/instances/RaidBossInstance.java:215: warning: [unchecked] unchecked cast
[javac] found : java.lang.Object
[javac] required: java.util.HashSet<la2shark.gameserver.model.Player>
[javac] Set<Player> players = (HashSet<Player>) groupInfo[0];
[javac] ^
[javac] /home/l2serv/source/sharkteam/source/gameserver/java/la2shark/gameserver/network/l2/s2c/ExReceiveOlympiad.java:73: warning: [unchecked] unchecked conversion
[javac] found : java.util.ArrayList[]
[javac] required: java.util.ArrayList<la2shark.gameserver.network.l2.s2c.ExReceiveOlympiad.MatchResult.PlayerInfo>[]
[javac] private ArrayList<PlayerInfo>[] _players = new ArrayList[2];
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 5 warnings
gameserver-jar:
[exec] Execute failed: java.io.IOException: Cannot run program "/home/l2serv/source/sharkteam/source/C:/Program Files/SlikSvn/bin/svnversion.exe" (in directory "/home/l2serv/source/sharkteam/source/gameserver"): java.io.IOException: error=2, No such file or directory
[jar] Building jar: /home/l2serv/source/sharkteam/source/build/gameserver.jar
gameserver:
[mkdir] Created dir: /home/l2serv/source/sharkteam/source/build/dist/gameserver/log
[sync] Copying 1 file to /home/l2serv/source/sharkteam/source/build/dist/gameserver
[sync] Removed 2 dangling directories from /home/l2serv/source/sharkteam/source/build/dist/gameserver
[sync] Removed 20 dangling files from /home/l2serv/source/sharkteam/source/build/dist/gameserver
[copy] Copying 2 files to /home/l2serv/source/sharkteam/source/build/dist/gameserver/libs
[copy] Copying 18 files to /home/l2serv/source/sharkteam/source/build/dist/gameserver/libs
dist:
[zip] Building zip: /home/l2serv/source/sharkteam/source/build/mmocore-dist.zip
BUILD SUCCESSFUL
Total time: 22 seconds
>
Добавлено через 2 часа 34 минуты
она что только пд виндой скомпилится?
ээээ...
и смысл тогда от нее?
Добавлено через 3 часа 37 минут
проблема решена.
отчасти.
Цитата:ищите проблему в расположении либсы
закинул все ее содержимое в корень gameserver
и пошло.
покрайней мере дальше:
Цитата:> cat stdout.log
[19:14:31] INFO =================================================
[19:14:31] INFO Revision: ................ ${build.revision}
[19:14:31] INFO Build date: .............. 2012.07.11 15:15
[19:14:31] INFO Compiler version: ........ 1.6.0_07-b02 (The FreeBSD Foundation)
[19:14:31] INFO =================================================
[19:14:31] ERROR Error loading config : CommunityBoard.properties!
[19:14:31] INFO Abuse: Loaded 18 abuse words.
[19:14:31] INFO IdFactory: Clear characters online status.
[19:14:31] INFO IdFactory: Extracted 30 used id's from characters
[19:14:31] INFO IdFactory: Extracted 940 used id's from items
[19:14:31] INFO IdFactory: Extracted 1 used id's from clan_data
[19:14:31] INFO IdFactory: Extracted total 971 used id's.
[19:14:31] INFO IdFactory: 411648 id's available.
[19:14:31] INFO Scripts: Loading...
[19:14:34] ERROR /home/l2serv/source/sharkteam/tests/gameserver/data/scripts/services/community/CommunityBoard.java:19,8: The import services.community.custom cannot be resolved
[19:14:36] ERROR Scripts: Failed loading scripts!
>
одно НО!
я удалял эти строки из CommunityBoard.java
Цитата:if (!Config.COMMUNITYBOARD_CUSTOM_ENABLED)
html = HtmCache.getInstance().getNotNull(COMMUNITY_BOARD_HTML + "bbs_top.htm", player);
else
{
HtmlManager.getInstance().onBypassCommand(player, bypass);
return;
}
чего тут то ругается?
Добавлено через 4 часа 23 минуты
Код: public void onBypassCommand(Player player, String bypass)
{
StringTokenizer st = new StringTokenizer(bypass, "_");
String cmd = st.nextToken();
String html = "";
if("bbshome".equals(cmd))
{
StringTokenizer p = new StringTokenizer(Config.BBS_DEFAULT, "_");
String dafault = p.nextToken();
if(dafault.equals(cmd))
{
int favCount = 0;
Connection con = null;
PreparedStatement statement = null;
ResultSet rset = null;
try
{
con = DatabaseFactory.getInstance().getConnection();
statement = con.prepareStatement("SELECT count(*) as cnt FROM `bbs_favorites` WHERE `object_id` = ?");
statement.setInt(1, player.getObjectId());
rset = statement.executeQuery();
if(rset.next())
favCount = rset.getInt("cnt");
}
catch(Exception ignored)
{}
finally
{
DbUtils.closeQuietly(con, statement, rset);
}
html = html.replace("<?fav_count?>", String.valueOf(favCount));
html = html.replace("<?clan_count?>", String.valueOf(ClanTable.getInstance().getClans().length));
html = html.replace("<?market_count?>", String.valueOf(CommunityBoardManager.getInstance().getIntProperty("col_count")));
}
else
{
onBypassCommand(player, Config.BBS_DEFAULT);
return;
}
}
else if("bbslink".equals(cmd))
html = HtmCache.getInstance().getNotNull(COMMUNITY_BOARD_HTML + "bbs_homepage.htm", player);
else if(bypass.startsWith("_bbspage"))
{
//Example: "bypass _bbspage:index".
String[] b = bypass.split(":");
String page = b[1];
html = HtmCache.getInstance().getNotNull(COMMUNITY_BOARD_HTML + "pages/" + page + ".htm", player);
}
else if(bypass.startsWith("_bbsmultisell"))
{
try
{
int multisell = Integer.parseInt(curCommand(trunkateCommand(bypass)));
MultiSellHolder.getInstance().SeparateAndSend(multisell, player, 0);
}
catch (Exception e)
{
_log.warn("Error command: " + bypass);
}
return;
}
else if(bypass.startsWith("_bbsscripts"))
{
//Example: "_bbsscripts:events.GvG.GvG:addGroup;_bbspage:index" or "_bbsscripts:events.GvG.GvG:addGroup;_bbshome" or "_bbsscripts:events.GvG.GvG:addGroup"...
StringTokenizer st2 = new StringTokenizer(bypass, ";");
String sBypass = st2.nextToken().substring(12);
String pBypass = st2.hasMoreTokens() ? st2.nextToken() : null;
if(pBypass != null)
CommunityBoardManager.getInstance().onBypassCommand(player, pBypass);
String[] word = sBypass.split("\\s+");
String[] args = sBypass.substring(word[0].length()).trim().split("\\s+");
String[] path = word[0].split(":");
if(path.length != 2)
return;
Scripts.getInstance().callScripts(player, path[0], path[1], word.length == 1 ? new Object[] {} : new Object[] { args });
return;
}
ShowBoard.separateAndSend(html, player);
}
убрано все. как видите.
Добавлено через 4 часа 59 минут
теперь пишет.
Код: [20:22:32] INFO =================================================
[20:22:32] INFO Revision: ................ ${build.revision}
[20:22:32] INFO Build date: .............. 2012.07.11 20:07
[20:22:32] INFO Compiler version: ........ 1.6.0_07-b02 (The FreeBSD Foundation)
[20:22:32] INFO =================================================
[20:22:32] ERROR Error loading config : CommunityBoard.properties!
[20:22:32] INFO Abuse: Loaded 18 abuse words.
[20:22:33] INFO IdFactory: Clear characters online status.
[20:22:33] INFO IdFactory: Extracted 30 used id's from characters
[20:22:33] INFO IdFactory: Extracted 940 used id's from items
[20:22:33] INFO IdFactory: Extracted 1 used id's from clan_data
[20:22:33] INFO IdFactory: Extracted total 971 used id's.
[20:22:33] INFO IdFactory: 411648 id's available.
[20:22:33] INFO Scripts: Loading...
[20:22:33] ERROR Scripts: Failed loading scripts!
и ни в какую
пустой файл не читает.
и заполненый тоже не читает.
Сообщений: 52
Тем: 13
Зарегистрирован: Jul 2012
07-28-2012, 03:45 PM
(Сообщение последний раз редактировалось: 07-28-2012, 03:54 PM PaperMan.)
тут конфигов на альт б нету хотя они прописаны в ядре
жадный попще !
Добавлено через 1 минуту
он даже баг на оли не исправил, что можно с фулл бафом ходить и тд. импорты поменял там и парочку проверок добавил.
теперь он начал мне репутацию минусовать пустая трата времени
Сообщений: 3,968
Тем: 90
Зарегистрирован: Nov 2010
Репутация:
15,337
PaperMan Написал:тут конфигов на альт б нету хотя они прописаны в ядре
Добавлено через 1 минуту
он даже баг на оли не исправил, что можно с фулл бафом ходить и тд. импорты поменял там и парочку проверок добавил.
Да что вы говорите :redlol:.
Сообщений: 17
Тем: 1
Зарегистрирован: Aug 2012
Репутация:
0
Попогите скомпилить сборку, ни в какую не идет, вот лог
Код: init:
compile-commons:
[delete] Deleting directory C:\ant\svn\build\classes
[mkdir] Created dir: C:\ant\svn\build\classes
[javac] C:\ant\svn\build.xml:56: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 77 source files to C:\ant\svn\build\classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] C:\ant\svn\commons\java\la2shark\commons\dbcp\BasicDataSource.java:25: error: BasicDataSource is not abstract and does not override abstract method getParentLogger() in CommonDataSource
[javac] public class BasicDataSource implements DataSource
[javac] ^
[javac] 1 error
[javac] 1 warning
BUILD FAILED
C:\ant\svn\build.xml:56: Compile failed; see the compiler error output for details.
Total time: 2 seconds
|