Сообщений: 4,694
Тем: 85
Зарегистрирован: Mar 2009
Репутация:
23,364
offtop
Сегодня день некропостинга?! :redlol:
Fortuna - non penis, in manus non recipe.
Сообщений: 17
Тем: 1
Зарегистрирован: Aug 2012
Репутация:
0
BasicDataSource сделал abstract не помогло
Код: 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] 1 warning
commons-jar:
[jar] Building jar: C:\ant\svn\build\commons.jar
compile-authserver:
[delete] Deleting directory C:\ant\svn\build\classes
[mkdir] Created dir: C:\ant\svn\build\classes
[javac] C:\ant\svn\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 C:\ant\svn\build\classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] C:\ant\svn\authserver\java\la2shark\authserver\database\L2DatabaseFactory.java:7: error: BasicDataSource is not public in la2shark.commons.dbcp; cannot be accessed from outside package
[javac] import la2shark.commons.dbcp.BasicDataSource;
[javac] ^
[javac] C:\ant\svn\authserver\java\la2shark\authserver\database\L2DatabaseFactory.java:10: error: cannot find symbol
[javac] public class L2DatabaseFactory extends BasicDataSource
[javac] ^
[javac] symbol: class BasicDataSource
[javac] C:\ant\svn\authserver\java\la2shark\authserver\database\L2DatabaseFactory.java:26: error: method getConnection in class L2DatabaseFactory cannot be applied to given types;
[javac] return getConnection(null);
[javac] ^
[javac] required: no arguments
[javac] found: <null>
[javac] reason: actual and formal argument lists differ in length
[javac] C:\ant\svn\authserver\java\la2shark\authserver\database\L2DatabaseFactory.java:23: error: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] 4 errors
[javac] 1 warning
BUILD FAILED
C:\ant\svn\build.xml:151: Compile failed; see the compiler error output for details.
Total time: 4 seconds
Сообщений: 5,863
Тем: 105
Зарегистрирован: Sep 2010
Репутация:
13,014
Предлагаю прочитать тему. Решение ошибки было выложено в теме.
Сообщений: 4,694
Тем: 85
Зарегистрирован: Mar 2009
Репутация:
23,364
Zubastic Написал:Предлагаю прочитать тему. Решение ошибки было выложено в теме. Ну это же нужно читать, лучше когда тебе приносят готовое на блюдечке с голубой каёмочкой. :redlol:
Fortuna - non penis, in manus non recipe.
Сообщений: 17
Тем: 1
Зарегистрирован: Aug 2012
Репутация:
0
08-24-2012, 12:01 PM
(Сообщение последний раз редактировалось: 08-24-2012, 12:01 PM ardashes.)
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;
}
Бесспорно, Андрюх, по ДП спасибо тебе.
Добавлено через 59 минут
В ближайшие дни вылью исходники Up2, там будут некоторые фиксы, которые я не успел запилить для шарной сборки.если про это , то сделал
Добавлено через 31 секунду
не помогло
Сообщений: 4,694
Тем: 85
Зарегистрирован: Mar 2009
Репутация:
23,364
Fortuna - non penis, in manus non recipe.
Сообщений: 17
Тем: 1
Зарегистрирован: Aug 2012
Репутация:
0
08-24-2012, 01:05 PM
(Сообщение последний раз редактировалось: 08-24-2012, 08:51 PM ardashes.)
Ashe Написал:ardashes, http://forum.zone-game.info/showthread.php?t=21755
Учитесь пользоваться поиском. спасибо, ща попробу отпишусь.
Добавлено через 7 часов 9 минут
Ashe Написал:ardashes, http://forum.zone-game.info/showthread.php?t=21755
Учитесь пользоваться поиском.
Добавил в BasicDataSource, получлось так
Код: public class BasicDataSource implements DataSource
{
[B]public Logger getParentLogger() throws SQLFeatureNotSupportedException
{
return Logger.getLogger(BasicDataSource.class.getName());
}[/B]
private final PoolingDataSource _source;
private final ObjectPool _connectionPool;
........
[CODE]
теперь такая хрень
[CODE]
init:
compile-commons:
[delete] Deleting directory C:\ant\svn\svn\build\classes
[mkdir] Created dir: C:\ant\svn\svn\build\classes
[javac] C:\ant\svn\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\svn\build\classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] C:\ant\svn\svn\commons\java\la2shark\commons\dbcp\BasicDataSource.java:28: error: cannot find symbol
[javac] public Logger getParentLogger() throws SQLFeatureNotSupportedException {
[javac] ^
[javac] symbol: class Logger
[javac] location: class BasicDataSource
[javac] C:\ant\svn\svn\commons\java\la2shark\commons\dbcp\BasicDataSource.java:28: error: cannot find symbol
[javac] public Logger getParentLogger() throws SQLFeatureNotSupportedException {
[javac] ^
[javac] symbol: class SQLFeatureNotSupportedException
[javac] location: class BasicDataSource
[javac] C:\ant\svn\svn\commons\java\la2shark\commons\dbcp\BasicDataSource.java:29: error: cannot find symbol
[javac] return Logger.getLogger(BasicDataSource.class.getName());
[javac] ^
[javac] symbol: variable Logger
[javac] location: class BasicDataSource
[javac] 3 errors
[javac] 1 warning
BUILD FAILED
C:\ant\svn\svn\build.xml:56: Compile failed; see the compiler error output for details.
Total time: 2 seconds
Пробовал заменить версию джавы в build.xml не помогло.
Помогите скомпилить эту сборку
Добавлено через 7 часов 46 минут
Вопрос снят, установил jre6 и все пошло
Сообщений: 17
Тем: 1
Зарегистрирован: Aug 2012
Репутация:
0
Скомпилировал а запустить пока не удалось, скомпиллировал, установил базы sql через install.bat из gameserver и authserver,
Лог компилирования
Код: init:
compile-commons:
[delete] Deleting directory C:\ant\svn\svn\build\classes
[mkdir] Created dir: C:\ant\svn\svn\build\classes
[javac] C:\ant\svn\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\svn\build\classes
commons-jar:
[jar] Building jar: C:\ant\svn\svn\build\commons.jar
compile-authserver:
[delete] Deleting directory C:\ant\svn\svn\build\classes
[mkdir] Created dir: C:\ant\svn\svn\build\classes
[javac] C:\ant\svn\svn\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 C:\ant\svn\svn\build\classes
authserver-jar:
[jar] Building jar: C:\ant\svn\svn\build\authserver.jar
authserver:
[mkdir] Created dir: C:\ant\svn\svn\build\dist
[mkdir] Created dir: C:\ant\svn\svn\build\dist\authserver
[mkdir] Created dir: C:\ant\svn\svn\build\dist\authserver\log
[mkdir] Created dir: C:\ant\svn\svn\build\dist\authserver\libs
[copy] Copying 2 files to C:\ant\svn\svn\build\dist\authserver\libs
[copy] Copying 18 files to C:\ant\svn\svn\build\dist\authserver\libs
[copy] Copying 15 files to C:\ant\svn\svn\build\dist\authserver
compile-gameserver:
[delete] Deleting directory C:\ant\svn\svn\build\classes
[mkdir] Created dir: C:\ant\svn\svn\build\classes
[javac] C:\ant\svn\svn\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 C:\ant\svn\svn\build\classes
[javac] C:\ant\svn\svn\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] C:\ant\svn\svn\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] C:\ant\svn\svn\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] C:\ant\svn\svn\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] C:\ant\svn\svn\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:
[jar] Building jar: C:\ant\svn\svn\build\gameserver.jar
gameserver:
[mkdir] Created dir: C:\ant\svn\svn\build\dist\gameserver
[mkdir] Created dir: C:\ant\svn\svn\build\dist\gameserver\log
[mkdir] Created dir: C:\ant\svn\svn\build\dist\gameserver\libs
[sync] Copying 32160 files to C:\ant\svn\svn\build\dist\gameserver
[sync] Removed 2 dangling directories from C:\ant\svn\svn\build\dist\gameserver
[copy] Copying 2 files to C:\ant\svn\svn\build\dist\gameserver\libs
[copy] Copying 18 files to C:\ant\svn\svn\build\dist\gameserver\libs
dist:
[zip] Building zip: C:\ant\svn\svn\build\mmocore-dist.zip
BUILD SUCCESSFUL
Total time: 9 minutes 4 seconds
запускаю StartGameServer.bat :
Код: Starting GameServer.
log4j:WARN No appenders could be found for logger (la2shark.gameserver.GameServe
r).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more in
fo.
java.io.FileNotFoundException: C:\ant\svn\svn\build\dist\gameserver\config\GMAcc
ess.xml (╨Э╨╡ ╤Г╨┤╨░╨╡╤В╤Б╤П ╨╜╨░╨╣╤В╨╕ ╤Г╨║╨░╨╖╨░╨╜╨╜╤Л╨╣ ╤Д╨░╨╣╨╗)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown So
urce)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
Entity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineD
ocVersion(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
nown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at la2shark.gameserver.Config.loadGMAccess(Config.java:1973)
at la2shark.gameserver.Config.loadGMAccess(Config.java:1951)
at la2shark.gameserver.Config.load(Config.java:1902)
at la2shark.gameserver.GameServer.<init>(GameServer.java:122)
at la2shark.gameserver.GameServer.main(GameServer.java:338)
и висит так.
Запускаю authserver:
Код: Starting AuthServer.
log4j:WARN No appenders could be found for logger (la2shark.authserver.Config).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more in
fo.
Exception in thread "main" java.sql.SQLException: Access denied for user 'root'@
'localhost' (using password: NO)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:935)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4101)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1300)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2337)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2
370)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2154)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:792)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:381)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:305)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnecti
on(DriverManagerConnectionFactory.java:78)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(Poolable
ConnectionFactory.java:582)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericOb
jectPool.java:1181)
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSo
urce.java:106)
at la2shark.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j
ava:77)
at la2shark.authserver.database.L2DatabaseFactory.getConnection(L2Databa
seFactory.java:26)
at la2shark.authserver.AuthServer.main(AuthServer.java:89)
Server terminated abnormaly ...
Server terminated ...
Посдкажите что не так?
Сообщений: 4,694
Тем: 85
Зарегистрирован: Mar 2009
Репутация:
23,364
ardashes, Вы не хотите думать и учиться, вот в чём дело. Да, кстати, Вы поиском принципиально не пользуетесь?
Fortuna - non penis, in manus non recipe.
Сообщений: 17
Тем: 1
Зарегистрирован: Aug 2012
Репутация:
0
08-27-2012, 10:25 AM
(Сообщение последний раз редактировалось: 08-27-2012, 09:20 PM ardashes.)
Ashe Написал:ardashes, Вы не хотите думать и учиться, вот в чём дело. Да, кстати, Вы поиском принципиально не пользуетесь? Понял, деиствую)
Логин запустился нормально, а вот геим че-то опять не хочет
Код: [12:57:43] INFO =================================================
[12:57:43] INFO Revision: ................ Unversioned directory
[12:57:43] INFO Build date: .............. 2012.08.24 21:40
[12:57:43] INFO Compiler version: ........ 1.6.0_34-b04 (Sun Microsystems Inc.)
[12:57:43] INFO =================================================
[12:57:43] ERROR Error loading config : CommunityBoard.properties!
[12:57:43] INFO Abuse: Loaded 18 abuse words.
[12:57:44] INFO IdFactory: Clear characters online status.
[12:57:44] INFO IdFactory: Extracted total 0 used id's.
[12:57:44] INFO IdFactory: 102912 id's available.
[12:57:44] INFO Scripts: Loading...
[12:58:08] INFO Scripts: Loaded 1114 classes.
[12:58:08] INFO GeoEngine: Loading Geodata...
[12:58:08] INFO Loaded 418 translit entries.
[12:58:08] INFO GameTimeController: initialized. Current time is 11:48 in the d
ay.
[12:58:08] INFO L2World: Creating regions: [256][272][32].
[12:58:08] INFO HtmCache: disabled.
[12:58:09] INFO StringHolder: load strings: 424 for lang: RUSSIAN
[12:58:09] INFO StringHolder: load strings: 424 for lang: ENGLISH
[12:58:16] INFO SkillsEngine: Loaded 65980 skill templates from XML files. Max
id: 90001, max level: 259
[12:58:21] INFO OptionDataHolder: loaded 24973 option data(s) count.
[12:58:25] INFO ItemHolder: loaded 19134 item(s) count.
[12:58:31] INFO NpcHolder: loaded 10456 npc(s) count.
[12:58:31] INFO MapRegionManager: loaded 272 map region manager(s) count.
[12:58:31] INFO MapRegionManager: loaded 272 map region manager(s) count.
[12:58:31] INFO StaticObjectHolder: loaded 50 static object(s) count.
[12:58:32] INFO DoorHolder: loaded 1155 door(s) count.
[12:58:32] INFO ZoneHolder: loaded 1130 zone(s) count.
[B][12:58:35] ERROR SpawnParser: Invalid polygon: null{[[x: 149382 y: 119327]]}. Fi
le: 24_21.xml
[12:58:35] INFO SpawnHolder: loaded 28164 spawn(s) count.
[12:58:36] INFO InstantZoneHolder: loaded 80 instant zone(s) count.
Exception in thread "main" java.lang.ExceptionInInitializerError
at la2shark.gameserver.data.xml.Parsers.parseAll(Parsers.java:39)
at la2shark.gameserver.GameServer.<init>(GameServer.java:150)
at la2shark.gameserver.GameServer.main(GameServer.java:338)
Caused by: java.lang.NullPointerException
at la2shark.gameserver.geodata.GeoEngine.getGeoBlockFromGeoCoords(GeoEng
ine.java:1344)
at la2shark.gameserver.geodata.GeoEngine.applyGeoCollision(GeoEngine.jav
a:1926)
at la2shark.gameserver.model.instances.DoorInstance.setGeoOpen(DoorInsta
nce.java:481)
at la2shark.gameserver.model.instances.DoorInstance.closeMe(DoorInstance
.java:306)
at la2shark.gameserver.model.instances.DoorInstance.onSpawn(DoorInstance
.java:379)
at la2shark.gameserver.model.GameObject.spawn0(GameObject.java:247)
at la2shark.gameserver.model.GameObject.spawnMe0(GameObject.java:229)
at la2shark.gameserver.model.GameObject.spawnMe(GameObject.java:220)
at la2shark.gameserver.model.Creature.spawnMe(Creature.java:4786)
at la2shark.gameserver.model.entity.Reflection.init(Reflection.java:649)
at la2shark.gameserver.instancemanager.ReflectionManager.<init>(Reflecti
onManager.java:42)
at la2shark.gameserver.instancemanager.ReflectionManager.<clinit>(Reflec
tionManager.java:21)
... 3 more[/B]
как я понял это из-за геодаты?
Добавлено через 10 часов 54 минуты
Походу я тут один
|