Ir para conteúdo
  • Cadastre-se
  • 0

alguem sabe esse erro


kayllan

Pergunta

7 respostass a esta questão

Posts recomendados


  • 0

Arquivo l2f/gameserver/GameServer esta com alguma escrita errada...

 

A parte do Java são WARNINGS, é sempre bom arrumar, mas eles não irao lhe impedir de startar eu servidor.

 

Concerte o arquivo citado acima e ira funcionar

A Vida é uma eterna lição...

Estamos sempre aprendendo...

Link para o comentário
Compartilhar em outros sites

  • 0

amigo esta aqui o arquivo que vc cito o que eu mudo? esto usando o java jre1.8.0_102

 

 

Arquivo l2f/gameserver/GameServer esta com alguma escrita errada...

 

A parte do Java são WARNINGS, é sempre bom arrumar, mas eles não irao lhe impedir de startar eu servidor.

 

Concerte o arquivo citado acima e ira funcionar

.//FandC-Project - Opensource distribution
/**
* FandC - Opensource Project - Powered by
O conteúdo está oculto, favor efetuar login ou se cadastrar!
*/
package l2f.gameserver;
import java.io.File;
import java.net.InetAddress;
import java.net.ServerSocket;
import l2f.commons.lang.StatsUtils;
import l2f.commons.listener.Listener;
import l2f.commons.listener.ListenerList;
import l2f.commons.net.nio.impl.SelectorThread;
import l2f.commons.versioning.Version;
import l2f.gameserver.cache.CrestCache;
import l2f.gameserver.dao.CharacterDAO;
import l2f.gameserver.dao.HidenItemsDAO;
import l2f.gameserver.dao.ItemsDAO;
import l2f.gameserver.data.BoatHolder;
import l2f.gameserver.data.xml.Parsers;
import l2f.gameserver.data.xml.holder.EventHolder;
import l2f.gameserver.data.xml.holder.ResidenceHolder;
import l2f.gameserver.data.xml.holder.StaticObjectHolder;
import l2f.gameserver.database.DatabaseFactory;
import l2f.gameserver.geodata.GeoEngine;
import l2f.gameserver.handler.admincommands.AdminCommandHandler;
import l2f.gameserver.handler.items.ItemHandler;
import l2f.gameserver.handler.usercommands.UserCommandHandler;
import l2f.gameserver.handler.voicecommands.VoicedCommandHandler;
import l2f.gameserver.idfactory.IdFactory;
import l2f.gameserver.instancemanager.AutoAnnounce;
import l2f.gameserver.instancemanager.AutoHuntingManager;
import l2f.gameserver.instancemanager.AutoSpawnManager;
import l2f.gameserver.instancemanager.BloodAltarManager;
import l2f.gameserver.instancemanager.BotCheckManager;
import l2f.gameserver.instancemanager.CastleManorManager;
import l2f.gameserver.instancemanager.CoupleManager;
import l2f.gameserver.instancemanager.CursedWeaponsManager;
import l2f.gameserver.instancemanager.DimensionalRiftManager;
import l2f.gameserver.instancemanager.HellboundManager;
import l2f.gameserver.instancemanager.PetitionManager;
import l2f.gameserver.instancemanager.PlayerMessageStack;
import l2f.gameserver.instancemanager.RaidBossSpawnManager;
import l2f.gameserver.instancemanager.SoDManager;
import l2f.gameserver.instancemanager.SoIManager;
import l2f.gameserver.instancemanager.SpawnManager;
import l2f.gameserver.instancemanager.achievements_engine.AchievementsManager;
import l2f.gameserver.instancemanager.games.FishingChampionShipManager;
import l2f.gameserver.instancemanager.games.LotteryManager;
import l2f.gameserver.instancemanager.games.MiniGameScoreManager;
import l2f.gameserver.instancemanager.itemauction.ItemAuctionManager;
import l2f.gameserver.instancemanager.naia.NaiaCoreManager;
import l2f.gameserver.instancemanager.naia.NaiaTowerManager;
import l2f.gameserver.listener.GameListener;
import l2f.gameserver.listener.game.OnShutdownListener;
import l2f.gameserver.listener.game.OnStartListener;
import l2f.gameserver.model.World;
import l2f.gameserver.model.entity.Hero;
import l2f.gameserver.model.entity.MonsterRace;
import l2f.gameserver.model.entity.SevenSigns;
import l2f.gameserver.model.entity.VotePollReplacement;
import l2f.gameserver.model.entity.VoteRewardHopzone;
import l2f.gameserver.model.entity.VoteRewardTopzone;
import l2f.gameserver.model.entity.SevenSignsFestival.SevenSignsFestival;
import l2f.gameserver.model.entity.auction.AuctionManager;
import l2f.gameserver.model.entity.olympiad.Olympiad;
import l2f.gameserver.network.GameClient;
import l2f.gameserver.network.GamePacketHandler;
import l2f.gameserver.network.loginservercon.AuthServerCommunication;
import l2f.gameserver.network.telnet.TelnetServer;
import l2f.gameserver.scripts.Scripts;
import l2f.gameserver.security.HWIDBan;
import l2f.gameserver.tables.AugmentationData;
import l2f.gameserver.tables.ClanTable;
import l2f.gameserver.tables.EnchantHPBonusTable;
import l2f.gameserver.tables.FakePlayersTable;
import l2f.gameserver.tables.FishTable;
import l2f.gameserver.tables.LevelUpTable;
import l2f.gameserver.tables.OfflineBuffersTable;
import l2f.gameserver.tables.PetSkillsTable;
import l2f.gameserver.tables.SkillTreeTable;
import l2f.gameserver.taskmanager.ItemsAutoDestroy;
import l2f.gameserver.taskmanager.KillingMonstersLogManager;
import l2f.gameserver.taskmanager.TaskManager;
import l2f.gameserver.taskmanager.tasks.RestoreOfflineTraders;
import l2f.gameserver.utils.ReflectionUtils;
import l2f.gameserver.utils.Strings;
import l2f.gameserver.vote.VoteMain;
import net.sf.ehcache.CacheManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fGuard.Protection;
public class GameServer
{
public static final int AUTH_SERVER_PROTOCOL = 2;
private static final Logger _log = LoggerFactory.getLogger(GameServer.class);
public class GameServerListenerList extends ListenerList<GameServer>
{
public void onStart()
{
for (Listener<GameServer> listener : getListeners())
{
if (OnStartListener.class.isInstance(listener))
{
((OnStartListener) listener).onStart();
}
}
}
public void onShutdown()
{
for (Listener<GameServer> listener : getListeners())
{
if (OnShutdownListener.class.isInstance(listener))
{
((OnShutdownListener) listener).onShutdown();
}
}
}
}
public static GameServer _instance;
private final SelectorThread<GameClient> _selectorThreads[];
private TelnetServer statusServer;
private final Version version;
private final GameServerListenerList _listeners;
private final int _serverStarted;
public SelectorThread<GameClient>[] getSelectorThreads()
{
return _selectorThreads;
}
public int time()
{
return (int) (System.currentTimeMillis() / 1000);
}
public int uptime()
{
return time() - _serverStarted;
}
@SuppressWarnings("unchecked")
public GameServer() throws Exception
{
//int update = 1000;
_instance = this;
_serverStarted = time();
_listeners = new GameServerListenerList();
new File("./log/").mkdir();
version = new Version(GameServer.class);
int NCPUS = Runtime.getRuntime().availableProcessors();
int stps = NCPUS * 4;
int etps = NCPUS * 2;
_log.info("=================================================");
_log.info("Copyright: ............... " + "FandC-Project");
_log.info("Version: .................. " + "FandC - Platinum");
_log.info("License: .................. " + "Paid");
_log.info("Chronicle: ............... " + "High Five Part 5");
_log.info("=================================================");
_log.info("== The following configs are recommended for your Server == ");
_log.info("ScheduledThreadPoolSize = " + stps);
_log.info("ExecutorThreadPoolSize = " + etps);
_log.info(" ");
// Initialise configurations
Config.load();
// Check binding address
checkFreePorts();
// Check License
//LicenseCheck.CheckIPLicensed(Config.EXTERNAL_HOSTNAME);
// Initialise database
Class.forName(Config.DATABASE_DRIVER).newInstance();
DatabaseFactory.getInstance().getConnection().close();
IdFactory _idFactory = IdFactory.getInstance();
if (!_idFactory.isInitialized())
{
_log.error("Could not read object IDs from DB. Please Check Your Data.");
throw new Exception("Could not initialize the ID factory");
}
CacheManager.getInstance();
ThreadPoolManager.getInstance();
Scripts.getInstance();
GeoEngine.load();
VoteMain.load();
// FakePlayers.getInstance();
FakePlayersTable.getInstance();
Strings.reload();
GameTimeController.getInstance();
World.init();
Parsers.parseAll();
HidenItemsDAO.LoadAllHiddenItems();
HWIDBan.LoadAllHWID();
ItemsDAO.getInstance();
CrestCache.getInstance();
CharacterDAO.getInstance();
ClanTable.getInstance();
FishTable.getInstance();
KillingMonstersLogManager.getInstance();
AuctionManager.getInstance();
VotePollReplacement.getInstance();
SkillTreeTable.getInstance();
AugmentationData.getInstance();
EnchantHPBonusTable.getInstance();
LevelUpTable.getInstance();
PetSkillsTable.getInstance();
ItemAuctionManager.getInstance();
Scripts.getInstance().init();
SpawnManager.getInstance().spawnAll();
BoatHolder.getInstance().spawnAll();
StaticObjectHolder.getInstance().spawnAll();
RaidBossSpawnManager.getInstance();
DimensionalRiftManager.getInstance();
Announcements.getInstance();
LotteryManager.getInstance();
PlayerMessageStack.getInstance();
if (Config.AUTODESTROY_ITEM_AFTER > 0)
{
ItemsAutoDestroy.getInstance();
}
MonsterRace.getInstance();
SevenSigns.getInstance();
SevenSignsFestival.getInstance();
SevenSigns.getInstance().updateFestivalScore();
AutoSpawnManager.getInstance();
SevenSigns.getInstance().spawnSevenSignsNPC();
if (Config.ENABLE_OLYMPIAD)
{
Olympiad.load();
Hero.getInstance();
}
PetitionManager.getInstance();
CursedWeaponsManager.getInstance();
//_log.info("Achievements Manager Loaded");
AchievementsManager.getInstance();
if (!Config.ALLOW_WEDDING)
{
CoupleManager.getInstance();
_log.info("CoupleManager initialized");
}
ItemHandler.getInstance();
AdminCommandHandler.getInstance().log();
UserCommandHandler.getInstance().log();
VoicedCommandHandler.getInstance().log();
TaskManager.getInstance();
AutoHuntingManager.getInstance();
_log.info("===================[Events]=======================");
ResidenceHolder.getInstance().callInit();
EventHolder.getInstance().callInit();
_log.info("==================================================");
CastleManorManager.getInstance();
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
_log.info("IdFactory: Free ObjectID's remaining: " + IdFactory.getInstance().size());
CoupleManager.getInstance();
if (Config.ALT_FISH_CHAMPIONSHIP_ENABLED)
{
FishingChampionShipManager.getInstance();
}
HellboundManager.getInstance();
NaiaTowerManager.getInstance();
NaiaCoreManager.getInstance();
SoDManager.getInstance();
SoIManager.getInstance();
BloodAltarManager.getInstance();
BotCheckManager.loadBotQuestions();
MiniGameScoreManager.getInstance();
if (Config.BUFF_STORE_ENABLED)
{
OfflineBuffersTable.getInstance().restoreOfflineBuffers();
}
if (Config.ALLOW_HOPZONE_VOTE_REWARD)
{
VoteRewardHopzone.getInstance();
}
if (Config.ALLOW_TOPZONE_VOTE_REWARD)
{
VoteRewardTopzone.getInstance();
}
Shutdown.getInstance().schedule(Config.RESTART_AT_TIME, 2);
_log.info("GameServer Started");
_log.info("Maximum Numbers of Connected Players: " + Config.MAXIMUM_ONLINE_USERS);
Protection.Init();
GamePacketHandler gph = new GamePacketHandler();
InetAddress serverAddr = Config.GAMESERVER_HOSTNAME.equalsIgnoreCase("*") ? null : InetAddress.getByName(Config.GAMESERVER_HOSTNAME);
_selectorThreads = new SelectorThread[Config.PORTS_GAME.length];
for (int i = 0; i < Config.PORTS_GAME.length; i++)
{
_selectorThreads = new SelectorThread<GameClient>(Config.SELECTOR_CONFIG, gph, gph, gph, null);
_selectorThreads.openServerSocket(serverAddr, Config.PORTS_GAME);
_selectorThreads.start();
}
AuthServerCommunication.getInstance().start();
if (Config.SERVICES_OFFLINE_TRADE_RESTORE_AFTER_RESTART || Config.OFFLINE_SELLBUFF_ENABLED)
{
ThreadPoolManager.getInstance().schedule(new RestoreOfflineTraders(), 30000L);
}
ThreadPoolManager.getInstance().scheduleAtFixedRate(new AutoAnnounce(), 60000, 60000);
getListeners().onStart();
if (Config.IS_TELNET_ENABLED)
{
statusServer = new TelnetServer();
} else
{
_log.info("Telnet server is currently disabled.");
}
_log.info("=================================================");
String memUsage = new StringBuilder().append(StatsUtils.getMemUsage()).toString();
for (String line : memUsage.split("\n"))
_log.info(line);
_log.info("=================================================");
/* if (Config.ALLOW_PHANTOM_PLAYERS)
{
PhantomPlayers.init();
}*/
//PhantomsEngine.init();
// Geodata doors
ReflectionUtils.getDoor(24190001).closeMe();
ReflectionUtils.getDoor(24190002).closeMe();
ReflectionUtils.getDoor(24190003).closeMe();
ReflectionUtils.getDoor(24190004).closeMe();
ReflectionUtils.getDoor(24190001).openMe();
ReflectionUtils.getDoor(24190002).openMe();
ReflectionUtils.getDoor(24190003).openMe();
ReflectionUtils.getDoor(24190004).openMe();
}
public GameServerListenerList getListeners()
{
return _listeners;
}
public static GameServer getInstance()
{
return _instance;
}
public <T extends GameListener> boolean addListener(T listener)
{
return _listeners.add(listener);
}
public <T extends GameListener> boolean removeListener(T listener)
{
return _listeners.remove(listener);
}
public static void checkFreePorts()
{
boolean binded = false;
while (!binded)
{
for (int PORT_GAME : Config.PORTS_GAME)
{
try
{
ServerSocket ss;
if (Config.GAMESERVER_HOSTNAME.equalsIgnoreCase("*"))
{
ss = new ServerSocket(PORT_GAME);
} else
{
ss = new ServerSocket(PORT_GAME, 50, InetAddress.getByName(Config.GAMESERVER_HOSTNAME));
}
ss.close();
binded = true;
} catch (Exception e)
{
_log.warn("Port " + PORT_GAME + " is allready binded. Please free it and restart server.");
binded = false;
try
{
Thread.sleep(1000);
} catch (InterruptedException e2)
{}
}
}
}
}
public static void main(String[] args) throws Exception
{
new GameServer();
}
public Version getVersion()
{
return version;
}
public TelnetServer getStatusServer()
{
return statusServer;
}
}
Editado por WariinG
Link para o comentário
Compartilhar em outros sites

  • 0

Desculpa irmao...

Mas se voce acha que eu irei ler ISSO TUDO para saber onde esta o erro, vai ser dificil.

 

Nao creio que o erro esteja no arquivo JAVA e sim no arquivo PROPERTIES

A Vida é uma eterna lição...

Estamos sempre aprendendo...

Link para o comentário
Compartilhar em outros sites

  • 0

Ali ta dando string errada. Deve ser alguma configuração que você escreveu true ou false errado ou pois algum número errado

Conhecimento tem preço, então não o deprecie!!!


Conhecimento tem preço, então não o deprecie!!!


Conhecimento tem preço, então não o deprecie !!!


:boxing: :boxing: :boxing:

Link para o comentário
Compartilhar em outros sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Processando...




×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.