Image Image Image




Post new topic Reply to topic  [ 39 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Compiling trunk
PostPosted: Sun Mar 01, 2009 12:50 pm 
Offline
PokerAI fellow
User avatar

Posts: 7731
Favourite Bot: V12
I tried to compile trunk, so basically first I downloaded everything

(Guide is here: http://code.google.com/p/cspoker/wiki/SubversionGuide)

And then tried to build it using Maven:
http://code.google.com/p/cspoker/wiki/DeveloperGuide

The compile steps fails - client\bots can't be compiled due to some missing prolog dependencies, as it seems.

The assembly step then fails again, for some reason I can't yet full understand.

Code:
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory E:\CSPoker\CSPoker\src\client\common\src\main\resources
Downloading: http://download.java.net/maven/2//org/cspoker/common-common/0.1-SNAPSHOT/common-common-0.1-SNAPSHOT.jar
Downloading: http://download.java.net/maven/1/org.cspoker/jars/common-common-0.1-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.cspoker:common-common:jar:0.1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.cspoker -DartifactId=common-common -Dversion=0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:

      mvn deploy:deploy-file -DgroupId=org.cspoker -DartifactId=common-common -Dversion=0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.cspoker:client-common:jar:0.1-SNAPSHOT
        2) org.cspoker:common-common:jar:0.1-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
  org.cspoker:client-common:jar:0.1-SNAPSHOT

from the specified remote repositories:
  maven1-repository.dev.java.net (http://download.java.net/maven/1),
  maven2-repository.dev.java.net (http://download.java.net/maven/2/),
  central (http://repo1.maven.org/maven2)

_________________
indiana


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Sun Mar 01, 2009 1:11 pm 
Offline
Regular member
User avatar

Posts: 64
Favourite Bot: MCTSBot
I'm aware of the missing prolog dependencies, they are local hacks of other open source libraries. I'll try to bundle them as a dependency by the end of next week.
Can you disable client/bots for now and see if it works from there?

The second problem is strange, the common-common.jar dependency should be built first by maven because all other projects depend on it, so it can't be missing.
Are you running maven in the root of the dir structure?


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Sun Mar 01, 2009 1:17 pm 
Offline
PokerAI fellow
User avatar

Posts: 7731
Favourite Bot: V12
1. How do you I disable clients/bot? For now I just removed it from pom.xml in client (just deleted the line). The build was fine afterwards.

2. Yes, I'm executing maven from the root (that is where LICENSE.txt e.g. is located). The jar that is reported as missing in maven's repository is available locally (in common\common\target), but I'm not acquiante with Maven enough to troubleshoot that.

_________________
indiana


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Sun Mar 01, 2009 6:34 pm 
Offline
Regular member
User avatar

Posts: 64
Favourite Bot: MCTSBot
I uploaded the missing dependencies to our maven repository and everything should compile correctly now, from r1278.

Checking it out as a new project in IDEA also works now: http://cspoker.pastebin.com/f364c68ed
I did have to configure my M2_HOME parameter in IDEA to make it work.


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Sun Mar 01, 2009 7:14 pm 
Offline
PokerAI fellow
User avatar

Posts: 7731
Favourite Bot: V12
Compilation is OK for me now, but mvn assembly:assembly still stops as before:

Code:
E:\CSPoker\CSPoker\src>C:\Installs\Maven\bin\mvn assembly:assembly
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   CSPoker
[INFO]   CSPoker Common
[INFO]   CSPoker Common-Common
[INFO]   CSPoker Client
[INFO]   CSPoker Client-Common
[INFO]   CSPoker Client-Communication
[INFO]   CSPoker Client-Communication-Remote
[INFO]   CSPoker Client-Communication-Remote-RMI
[INFO]   CSPoker Client-Communication-Remote-XML
[INFO]   CSPoker Client-Communication-Remote-All
[INFO]   CSPoker Common-HandEval
[INFO]   CSPoker Server
[INFO]   CSPoker Server-Common
[INFO]   CSPoker Client-Communication-Embedded
[INFO]   CSPoker Client-GUI
[INFO]   CSPoker Client-GUI-Text
[INFO]   CSPoker Client-GUI-SWT
[INFO]   CSPoker Server-XML
[INFO]   CSPoker Server-RMI
[INFO]   CSPoker Server-AllCommunication
[INFO] Searching repository for plugin with prefix: 'assembly'.
[INFO] ------------------------------------------------------------------------
[INFO] Building CSPoker
[INFO]    task-segment: [assembly:assembly] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing assembly:assembly
[INFO] ------------------------------------------------------------------------
[INFO] Building CSPoker
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] ------------------------------------------------------------------------
[INFO] Building CSPoker Common
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] ------------------------------------------------------------------------
[INFO] Building CSPoker Common-Common
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory E:\CSPoker\CSPoker\src\common\common\
src\test\resources
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: E:\CSPoker\CSPoker\src\common\common\target\su
refire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.cspoker.common.game.elements.cards.hand.TestHand
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.093 sec
Running org.cspoker.common.game.elements.cards.hand.TestExactCard
log4j:WARN No appenders could be found for logger (org.cspoker.common.game.eleme
nts.cards.hand.TestHandIterator).
log4j:WARN Please initialize the log4j system properly.
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.cspoker.common.game.elements.cards.hand.TestHandIterator
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.313 sec
Running org.cspoker.common.game.elements.cards.hand.TestHandQuality
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.265 sec
Running org.cspoker.common.game.elements.cards.hand.TestHandEvaluator
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec

Results :

Tests run: 25, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Preparing cobertura:cobertura
[WARNING] Removing: cobertura from forked lifecycle, to prevent recursive invoca
tion.
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [cobertura:instrument]
[INFO] Cobertura 1.9 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 297 classes.
Instrumenting 297 files to E:\CSPoker\CSPoker\src\common\common\target\generated
-classes\cobertura
Cobertura: Saved information on 297 classes.
Instrument time: 719ms

[INFO] Instrumentation was successful.
[INFO] [resources:testResources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory E:\CSPoker\CSPoker\src\common\common\
src\test\resources
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: E:\CSPoker\CSPoker\src\common\common\target\su
refire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.cspoker.common.game.elements.cards.hand.TestHand
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running org.cspoker.common.game.elements.cards.hand.TestExactCard
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.cspoker.common.game.elements.cards.hand.TestHandIterator
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.375 sec
Running org.cspoker.common.game.elements.cards.hand.TestHandQuality
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.687 sec
Running org.cspoker.common.game.elements.cards.hand.TestHandEvaluator
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec

Results :

Tests run: 25, Failures: 0, Errors: 0, Skipped: 0

Cobertura: Loaded information on 297 classes.
Cobertura: Saved information on 297 classes.
[INFO] [cobertura:cobertura {execution: default}]
[INFO] Cobertura 1.9 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 297 classes.
Report time: 906ms

[INFO] Cobertura Report generation was successful.
[INFO] ------------------------------------------------------------------------
[INFO] Building CSPoker Client
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] ------------------------------------------------------------------------
[INFO] Building CSPoker Client-Common
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory E:\CSPoker\CSPoker\src\client\common\
src\main\resources
Downloading: http://download.java.net/maven/2//org/cspoker/common-common/0.1-SNA
PSHOT/common-common-0.1-SNAPSHOT.jar
Downloading: http://download.java.net/maven/1/org.cspoker/jars/common-common-0.1
-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.cspoker:common-common:jar:0.1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.cspoker -DartifactId=common-common
-Dversion=0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:

      mvn deploy:deploy-file -DgroupId=org.cspoker -DartifactId=common-common -D
version=0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dreposito
ryId=[id]

  Path to dependency:
        1) org.cspoker:client-common:jar:0.1-SNAPSHOT
        2) org.cspoker:common-common:jar:0.1-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
  org.cspoker:client-common:jar:0.1-SNAPSHOT

from the specified remote repositories:
  maven1-repository.dev.java.net (http://download.java.net/maven/1),
  maven2-repository.dev.java.net (http://download.java.net/maven/2/),
  central (http://repo1.maven.org/maven2)



[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18 seconds
[INFO] Finished at: Sun Mar 01 19:12:46 CET 2009
[INFO] Final Memory: 16M/29M
[INFO] ------------------------------------------------------------------------

_________________
indiana


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Sun Mar 01, 2009 9:59 pm 
Offline
Regular member
User avatar

Posts: 64
Favourite Bot: MCTSBot
Have you tried doing mvn install?
The assembly:assembly command only works in projects that are executable, like server-allcommunication. It might not work if the projects have not been installed yet?
Do you execute the goals inside IDEA?
Can you run the server from inside the IDE?


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Sun Mar 01, 2009 10:14 pm 
Offline
PokerAI fellow
User avatar

Posts: 7731
Favourite Bot: V12
I'm playing around just with what is in the dev. guidelines.

How do you start the client / server once you have them compiled? Why don't you directly checkin scripts for that?

_________________
indiana


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Sun Mar 01, 2009 11:59 pm 
Offline
Regular member
User avatar

Posts: 64
Favourite Bot: MCTSBot
You can start the server by either starting
RunRMIServer for only RMI enabled
RunSocketsServer for XML over sockets enabled
RunHTTPServer for REST enabled
RunCSPoker for all 3

You can connect to this server with the (alpha) Java client by running ClientCore in client-gui-swt.
You can also connect with the console client by running the Console class in client-gui-text.
I don't know how to run the Flash client.

You can run the bots to connect to an existing server or more simply, by running RunLocalBot in client-bots.

In each case you can configure the logging level that appears in the console by editing the log4j.properties file in the resources directory.


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Tue Mar 03, 2009 10:59 pm 
Offline
PokerAI fellow
User avatar

Posts: 7731
Favourite Bot: V12
I managed to compile it via JIdea, and via the maven compile command.

I also managed to get the assembly step through, I overcome the error above by manually copying the produced jars to the maven repository. I guess some folder settings are not alright in this whole thing.

But after I managed the compilation and assembly step - now what? First I don't have all the things in one folder. Say, I somehow can bring the jars in one folder. Then I havea huge maven repository and I have to figure out by trial and error which libs are used at runtime.

Similarly, if I try to run it via JIdea, it doesn't work because of paths to resources aren't configured properly.

It would be good if you really include a script with your distribution that does compiles everything, and packages (copies it) in the redistribution format of CSPoker0.1. You can then use that for easy weekly builds, and it would be much easier for people to setup dev environment and join the project.

_________________
indiana


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Wed Mar 04, 2009 12:18 am 
Offline
Regular member
User avatar

Posts: 64
Favourite Bot: MCTSBot
You should definitely not need to copy files manually. Shouldn't the "mvn install" command not copy all jars to the local repository?
Should "mvn assembly:assembly" not produce jar files that have no external dependencies?

Normally we should not need any scripts except for maven.

I don't understand why running it in IDEA whould give problems with pathnames? I can execute all main methods in Eclipse, Netbeans or IDEA? Why is JIdea different?

You don't have to be able to package cspoker in a release to have a dev environment.


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Wed Mar 04, 2009 12:49 am 
Offline
PokerAI fellow
User avatar

Posts: 7731
Favourite Bot: V12
I will have a second look into that. Maven repository is local, somewhere under document and settings. All mvn commands (including mvn assembly) I executed under the cspoker, which is different. So the results from this assembly are on the same folder.

For some reason, the jars produced as result of the assembly are nopt copied to the maven local repository. I have to copy them manually, and restart the assembly (and this for every jar). Finally when this is completed I have jars in all kind of folders, and just assembling the classpath for that will take me 1 hour at least of trial an errors.

I was able to compile it under JIdea, but then it fails to find various resource files (the first one is the log4j property file). So I basically get an exception when I start the server. That's where I am.

Having a script that makes distribution assembly, and producing weekstones is the best development process you might come up with from quallity point of view. Also having step by step, or out of the box build will help you to attract more developers. That's not meant to criticize, but if you are thinking of two process related things to improve now, do these two.

_________________
indiana


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Wed Mar 04, 2009 10:20 am 
Offline
Regular member
User avatar

Posts: 64
Favourite Bot: MCTSBot
http://maven.apache.org/plugins/maven-install-plugin/
The files that are generated locally should indeed be automatically copied to the repository.
What maven version are you using?

Any time you copy something manually or configure a classpath manually, you are not intended to do so.

Also, the resource files should be found automatically. My IDEA has no complaints. What version are you using?

Like I said, the maven script should be able to do all that. The fact that it isn't working well for you is probably more due to your and my lack of knowledge about maven.

I have no problem with you trying to make building cspoker easier. It's indead very important for new devs.


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Wed Mar 04, 2009 2:48 pm 
Offline
PokerAI fellow
User avatar

Posts: 7731
Favourite Bot: V12
If it's possible for you to just compile and execute (run) Server and Client and connected them from JIDea without issues, then the easiest seems to be just to check how you managed to do that.

Can you send me your JIdea projects? This should already have all configuration in it (w/our general things like JDK paths).

_________________
indiana


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Thu Mar 05, 2009 12:40 pm 
Offline
Regular member
User avatar

Posts: 64
Favourite Bot: MCTSBot
Here's the trace of what I did to set up IntelliJ IDEA 8.1 with cspoker on Ubuntu Linux:


Trying to recreate these steps I am stuck here. Fr some reason IDEA never gets past the checkout.

IIRC, the first time I tried, It gave me the choice to create a new project with an external module. Then I picked Maven. Then it worked.
Since I can't even get IDEA to checkout from SVN correctly, I suggest you try running Eclipse or Netbeans with the plugins described on the project page to see if it works there?


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Thu Mar 05, 2009 1:54 pm 
Offline
PokerAI fellow
User avatar

Posts: 7731
Favourite Bot: V12
The checkout worked fine for me. The build: Here I did not had that choise "choice to create a new project with an external module" - or at least I don't know how to to this.

So what I did is I manually added all neccessary external jars to the project classpath (I had already these jars in the maven repository, so this wasn't a lot of work). Also, as sources has many different roots, I had to add each root containing sources one by one.

Compilation then went fine. But when I try to execute the main programs - I have no one root to work with, and resources aren't find. I.e. the resources (card images, log4j configuraton files, etc.) are now in various routes (they are bundled together with the respective subproject), and in idea I can describe only one project (execution) root.

So I mostly worked with JIDea, and very little with Eclipse. I might try the Eclipse way instead, why not, but that would take me some time.

_________________
indiana


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Thu Mar 05, 2009 2:22 pm 
Offline
Regular member
User avatar

Posts: 64
Favourite Bot: MCTSBot
It's absolutely necessairy that you identify the project as a Maven project. Then your IDE will configure all dependencies correctly and update them when they change. The missing resources you're seeing now is also because you have tried to configure the project manually. The cspoker setup is too complex to do that.

Like I said, don't do anything manually.

You should try checking the project out again and see if you can find the screen that asks you to create a new project with an external module.
Do you have an older version of IDEA maybe?


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Thu Mar 05, 2009 3:32 pm 
Offline
PokerAI fellow
User avatar

Posts: 7731
Favourite Bot: V12
Thanks, I'll give this a try. I have only the latest JIDea, but it should be compatible in such matters. If I'm no successfull with that, I will give a try to Eclipse.

_________________
indiana


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Thu Mar 05, 2009 7:03 pm 
Offline
Regular member
User avatar

Posts: 64
Favourite Bot: MCTSBot
I attached a screenshot of the option to import a Maven project.

In any case, if your IDE doesn't support Maven, you'll not be able to develop for CSPoker.


Attachments:
newproject.png
newproject.png [ 63.08 KB | Viewed 1941 times ]
Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Fri Mar 06, 2009 11:11 am 
Offline
PokerAI fellow
User avatar

Posts: 7731
Favourite Bot: V12
I just used the above, and it worked like a charm, I did not need installing Maven or anything beyond just having my Idea importing this. Compilation was fine, and I can launch (start) the server now.

I however still have issues with the Client (and loading the resources for it - cards, etc.). I will try to workaround this somehow.

Code:
11:09:02,592 WARN  (org.cspoker.client.gui.swt.control.ClientGUI.java:219) [verifyAndInitResources] - File initialization failed, removing from preferences:
java.io.FileNotFoundException: target\classes\images\cards\Deck_Free_2.png
   at org.cspoker.client.gui.swt.control.ClientGUI.setActiveCardDeck(ClientGUI.java:377)
   at org.cspoker.client.gui.swt.control.ClientGUI.verifyAndInitResources(ClientGUI.java:215)
   at org.cspoker.client.gui.swt.control.ClientGUI.<init>(ClientGUI.java:197)
   at org.cspoker.client.gui.swt.control.ClientCore.<init>(ClientCore.java:119)
   at org.cspoker.client.gui.swt.control.ClientCore.<init>(ClientCore.java:106)
   at org.cspoker.client.gui.swt.control.ClientCore.main(ClientCore.java:83)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
11:09:02,717 ERROR (org.cspoker.client.gui.swt.control.SWTResourceManager.java:156) [getImage] - File not found
java.io.FileNotFoundException: C:\develop\CSPoker\target\classes\images\csicon.png (The system cannot find the path specified)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.<init>(FileInputStream.java:106)
   at org.cspoker.client.gui.swt.control.SWTResourceManager.getImage(SWTResourceManager.java:154)
   at org.cspoker.client.gui.swt.window.ClientDialog.<init>(ClientDialog.java:52)
   at org.cspoker.client.gui.swt.window.LoginDialog.<init>(LoginDialog.java:58)
   at org.cspoker.client.gui.swt.control.ClientGUI.createNewLoginDialog(ClientGUI.java:288)
   at org.cspoker.client.gui.swt.control.ClientCore.run(ClientCore.java:155)
   at org.cspoker.client.gui.swt.control.ClientCore.main(ClientCore.java:83)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
11:09:02,749 ERROR (org.cspoker.client.gui.swt.control.ClientCore.java:166) [run] - Unexpected error
java.lang.IllegalArgumentException: Argument cannot be null
   at org.eclipse.swt.SWT.error(SWT.java:3547)
   at org.eclipse.swt.SWT.error(SWT.java:3481)
   at org.eclipse.swt.SWT.error(SWT.java:3452)
   at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:125)
   at org.eclipse.swt.graphics.ImageDataLoader.load(ImageDataLoader.java:22)
   at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:328)
   at org.eclipse.swt.graphics.Image.<init>(Image.java:545)
   at org.cspoker.client.gui.swt.control.SWTResourceManager.getImage(SWTResourceManager.java:158)
   at org.cspoker.client.gui.swt.window.ClientDialog.<init>(ClientDialog.java:52)
   at org.cspoker.client.gui.swt.window.LoginDialog.<init>(LoginDialog.java:58)
   at org.cspoker.client.gui.swt.control.ClientGUI.createNewLoginDialog(ClientGUI.java:288)
   at org.cspoker.client.gui.swt.control.ClientCore.run(ClientCore.java:155)
   at org.cspoker.client.gui.swt.control.ClientCore.main(ClientCore.java:83)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
11:09:02,749 INFO  (org.cspoker.client.gui.swt.control.ClientCore.java:167) [run] - Attempting reset
Exception in thread "main" java.lang.NullPointerException
   at org.cspoker.client.gui.swt.control.ClientCore.resetAll(ClientCore.java:181)
   at org.cspoker.client.gui.swt.control.ClientCore.run(ClientCore.java:168)
   at org.cspoker.client.gui.swt.control.ClientCore.main(ClientCore.java:83)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

_________________
indiana


Top
 Profile E-mail  
 
 Post subject: Re: Compiling trunk
PostPosted: Fri Mar 06, 2009 11:27 am 
Offline
PokerAI fellow
User avatar

Posts: 7731
Favourite Bot: V12
OK, I'm able now to start client by changing the root to the scr root (where all cards etc. are contained, changin it to the target resource root doesn't have all images there).

This allows me to launch clients and play hands. The new version looks much better than your 0.1 thing! You have to really thing for a new distributable.

I'm still having problems with configuring the resource roots, btw. In JIDea you can have exactly one root (or maybe I simply don't know how to configure second one), while it seems that the resources needed for the client are not all under where they should be. I will play more here.

So currently, the issues is that some resources are not found on hand showdown:

Code:
Caused by: java.lang.NullPointerException
   at java.io.Reader.<init>(Reader.java:61)
   at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
   at org.cspoker.common.elements.hand.HandRanks.loadHandRanks(HandRanks.java:82)
   at org.cspoker.common.elements.hand.HandRanks.<init>(HandRanks.java:49)
   at org.cspoker.common.elements.hand.HandRanks.<clinit>(HandRanks.java:40)
   ... 30 more

_________________
indiana


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 39 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: