-
-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error while building pdfSAM on Eclipse #109
Comments
Can you post details on what test is failing? |
I can't see the error message in the screenshot... anyway, you can run it as a standard Java application running this class in Eclipse https://github.com/torakiki/pdfsam/blob/master/pdfsam-community/src/main/java/org/pdfsam/community/App.java |
I think you are running the pdfsam-parent while you should run exec:java from the pdfsam-community module |
Yes, I was running pdfsam-parent by mistake. Its running perfectly from pdfsam-community. Thank you for the help. Is there any chance that I can get the test errors fixed? |
I'll try running it on my Windows box and see if I have the same issue. Could you attach some of the surefire reports the error message mention? |
Attached is the file with all test results on pdf sam. On Fri, Oct 30, 2015 at 4:32 AM, Andrea Vacondio notifications@github.com
|
mmm... it doesn't seem to have any attachment |
I need to have write permissions to the repository to attach files..which I dont. Il copy paste the whole thing.. Test results- at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) onLoadedChangedSelectedPdfVersionEvent(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! restoreStateFromEmpty(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! onDecryptedSetDestinationRequest(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! loadingStateDetails(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! openFolderMenuItem(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! onSaveWorkspace(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! invalidatedDescriptorDoesntTriggerAnything(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! onSaveWorkspaceWithPwd(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! openFileMenuItem(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! loadEvent(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0.001 sec <<< ERROR! setDestinationMenuItem(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! disableMenuOnSwitchToInvalid(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! loadedDetailsSpecialChars(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! clickEncryptedThrowsRequest(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! onSaveWorkspaceEmptyDescriptor(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! decryptedDetails(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! restoreStateFrom(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! removeMenuItem(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR! Running org.pdfsam.ui.support.CircularObservableListTest Results : Failed tests: hide(org.pdfsam.ui.commons.HidingPaneTest): Predicate failed for 'HidingPane@153a316c[styleClass=root]'. Screenshot saved as C:\Users\Welcome\git\pdfsam\pdfsam-fx\screenshot1446504615105.png Tests in error: Tests run: 259, Failures: 1, Errors: 144, Skipped: 16 [INFO] ------------------------------------------------------------------------ |
The error is |
Ok then... everything seems fine, I'll try the same configuration but I've to admit I'm running out of ideas |
Hello, When I try performing code coverage on source code using Emma on eclipse it gives an error : Could not find or load main class app.java . Could you tell the reason? |
I think the main reason of all errors is that I am not able to figure out how to set up this project on eclipse. Could you give me a set of instructions which will help me set up pdfsam on eclipse? |
Im attaching few surefire test reports Test set: org.pdfsam.merge.MergeOptionsPaneTestTests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 2.957 sec <<< FAILURE!
onSaveWorkspace(org.pdfsam.merge.MergeOptionsPaneTest) Time elapsed: 0.318 sec <<< FAILURE! |
I can run Emma coverage without errors, how do you run it? |
I followed the steps you told and imported the projects as maven projects. Now when I do right-click -> run as -> maven test . I get an error "No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?" I checked windows -> preferences ->java and it is having a JDK selection. So that is not the problem. Also, when I do right click -> run as -> junit test. All the tests are failing due to an exception. I have attached the test reports and coverage reports. Could you send me the coverage and test reports you got? Test cases which were passing earlier are failing now. Have you made any changes to the last version? |
I had to configure the jdk environment on windows-preferences-> java and now the maven tests are running. My only problem now is that all JUnit tests are failing and the emma coverage report is very low. I am unable to understand the errors. You can see a red mark on both these folders in work space. |
No, I don't have any failing test, same as the CI server https://travis-ci.org/torakiki/pdfsam |
As I had posted before, eclipse is showing an error in pdfsam-fx and pdfsam-gui. I opened PdfVersionFilter.java and it is showing a red line below changed. I cant understand this error. Each time I try running a unit test. Eclipse shows "Errors exist in pdfsam-fx and pdfsam-gui , do you want to proceed? " and then an exception occurs. Please tell a solution . Exception during JUnit test- |
My unit tests are failing because of the following exception related to i18n. Exception in thread "JavaFX Application Thread" java.lang.NoClassDefFoundError: Could not initialize class org.pdfsam.i18n.DefaultI18nContext$DefaultI18nContextHolder Could you tell me the reason? Have I missed out any dependency? I have installed maven and getText plugins on eclipse as told in Build and run file. There are multiple exceptions. If you want I can copy paste the whole set of exceptions for reference. |
Try going to the |
Yes that was what I missed out. Thank you so much for your time and help. On Tue, Nov 10, 2015 at 3:39 AM, Andrea Vacondio notifications@github.com
|
Not really, they should all pass. What is the error for them? Have you tried running the whole thing again? It happens sometime to have flickering tests, not sure why, but most of the time they should all pass. |
I pushed a fix for those errors Eclipse is reporting, can you try pulling the latest version and run the tests again? The CI server ran them correctly https://travis-ci.org/torakiki/pdfsam |
The builder test case is failing in simple split. Could you try it on your system? |
Hi, did you manage to make it work? I'm not having any failing test locally nor is the CI server https://travis-ci.org/torakiki/pdfsam |
Hello Andrea, Yes it worked. Thanks for all he help. Thanks and regards, On Wed, Jan 20, 2016 at 11:49 AM, Andrea Vacondio notifications@github.com
Sania Alex 513-501-5429 |
Great :) |
Hello, Thank you for replying. Now pdfsam-core is getting built but pdfsam javafx views has a failure.
Error-

"Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project pdfsam-fx: There are test failures."
Please solve this.
The text was updated successfully, but these errors were encountered: