I'm having problems when I try to debug from the IDE

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

I'm having problems when I try to debug from the IDE

mpuebla


I apologize, the "mvn clean package" does not work correctly, the one that works correctly is the "mvn package". When I do an "mvn clean package" the following error appears:

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ protege-editor-owl ---
[INFO] Deleting D:\Puebla\Ciencia\Tesis Doctoral Puebla\Implementacion\Proyecto Protege\SalvaCompil
os\SalvaConCambios\protege-editor-owl\target
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ protege-editor-owl ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] protege-parent ..................................... SUCCESS [  0.238 s]
[INFO] protege-launcher ................................... SUCCESS [ 26.231 s]
[INFO] protege-common ..................................... SUCCESS [03:04 min]
[INFO] protege-editor-core ................................ SUCCESS [ 45.972 s]
[INFO] protege-editor-owl ................................. FAILURE [02:05 min]
[INFO] protege-desktop .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:24 min
[INFO] Finished at: 2017-02-08T10:12:37-05:00
[INFO] Final Memory: 23M/62M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources (def
lt-resources) on project protege-editor-owl: Cannot create resource output directory: D:\Puebla\Cie
ia\Tesis Doctoral Puebla\Implementacion\Proyecto Protege\SalvaCompilados\SalvaConCambios\protege-ed
or-owl\target\classes -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following art
les:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :protege-editor-owl

De: Manuel Enrique Puebla Martinez [mailto:[hidden email]]
Enviado el: martes, 07 de febrero de 2017 11:35
Para: protege-dev
Asunto: I'm having problems when I try to debug from the IDE


Hello Josef Hardi:

 

Attached file "protect.log".

 

I am incorporating functionalities into the Protégé project. But I'm having problems when I try to debug from the IDE Eclipse.

 

I added a package called "org.protege.editor.owl.bigontology", inside I added my classes and enumerative types. Everything compiles well when I do an "mvn clean package", I attach an image of the result in the console. However, when I try to debug from Eclipse, I get an error message: "An error occurred that prevent Protégé from Starting", also attached the image. "

 

I have been reviewing the code and detected that the exception is thrown in the line "framework.start ();", belonging to the method "start", class "Launcher".


Within the "start" method, the error occurs when the following line of code is executed:
"// Send a framework event to indicate the framework has started.
         FireFrameworkEvent (FrameworkEvent.STARTED, this, null); "

Within the "fireFrameworkEvent" method, only the following line of code is executed:
"M_dispatcher.fireFrameworkEvent (new FrameworkEvent (type, bundle, throwable));"

"Type" = 1, "bundle" is an information object and "throwable" = null;

Any help that allows me to identify the reason for the error?

 

Best regards.

 

 




La @universidad_uci es Fidel. Los jóvenes no fallaremos. #HastaSiempreComandante #HastalaVictoriaSiempre


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev

protege.log (14K) Download Attachment
Eclipse Error.png (267K) Download Attachment
cmdError.jpg (447K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: I'm having problems when I try to debug from the IDE

Martin O'Connor-2

One possibility is that you do not have permissions to create the indicated directory. Another possibility is that the IDE is trying to build the project at the same time and is conflicting with your command line build.

Martin

On Feb 8, 2017, at 8:28 AM, Manuel Enrique Puebla Martinez <[hidden email]> wrote:



I apologize, the "mvn clean package" does not work correctly, the one that works correctly is the "mvn package". When I do an "mvn clean package" the following error appears:

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ protege-editor-owl ---
[INFO] Deleting D:\Puebla\Ciencia\Tesis Doctoral Puebla\Implementacion\Proyecto Protege\SalvaCompil
os\SalvaConCambios\protege-editor-owl\target
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ protege-editor-owl ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] protege-parent ..................................... SUCCESS [  0.238 s]
[INFO] protege-launcher ................................... SUCCESS [ 26.231 s]
[INFO] protege-common ..................................... SUCCESS [03:04 min]
[INFO] protege-editor-core ................................ SUCCESS [ 45.972 s]
[INFO] protege-editor-owl ................................. FAILURE [02:05 min]
[INFO] protege-desktop .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:24 min
[INFO] Finished at: 2017-02-08T10:12:37-05:00
[INFO] Final Memory: 23M/62M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources (def
lt-resources) on project protege-editor-owl: Cannot create resource output directory: D:\Puebla\Cie
ia\Tesis Doctoral Puebla\Implementacion\Proyecto Protege\SalvaCompilados\SalvaConCambios\protege-ed
or-owl\target\classes -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following art
les:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :protege-editor-owl

De: Manuel Enrique Puebla Martinez [[hidden email]]
Enviado el: martes, 07 de febrero de 2017 11:35
Para: protege-dev
Asunto: I'm having problems when I try to debug from the IDE


Hello Josef Hardi:

 

Attached file "protect.log".

 

I am incorporating functionalities into the Protégé project. But I'm having problems when I try to debug from the IDE Eclipse.

 

I added a package called "org.protege.editor.owl.bigontology", inside I added my classes and enumerative types. Everything compiles well when I do an "mvn clean package", I attach an image of the result in the console. However, when I try to debug from Eclipse, I get an error message: "An error occurred that prevent Protégé from Starting", also attached the image. "

 

I have been reviewing the code and detected that the exception is thrown in the line "framework.start ();", belonging to the method "start", class "Launcher".


Within the "start" method, the error occurs when the following line of code is executed:
"// Send a framework event to indicate the framework has started.
         FireFrameworkEvent (FrameworkEvent.STARTED, this, null); "

Within the "fireFrameworkEvent" method, only the following line of code is executed:
"M_dispatcher.fireFrameworkEvent (new FrameworkEvent (type, bundle, throwable));"

"Type" = 1, "bundle" is an information object and "throwable" = null;

Any help that allows me to identify the reason for the error?

 

Best regards.

 
 



La @universidad_uci es Fidel. Los jóvenes no fallaremos. #HastaSiempreComandante #HastalaVictoriaSiempre

<protege.log><Eclipse Error.png><cmdError.jpg>_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: I'm having problems when I try to debug from the IDE

mpuebla
In reply to this post by mpuebla

Previous position ... I managed to do an "mvn clean package", however, it still gives me the same error when I run it or try to debug it.

See the "mvn clean package" result:

pilados\SalvaConCambios\protege-desktop\target\protege-5.1.1-SNAPSHOT-platform-independent.zip
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] protege-parent ..................................... SUCCESS [  0.073 s]
[INFO] protege-launcher ................................... SUCCESS [ 10.377 s]
[INFO] protege-common ..................................... SUCCESS [  3.059 s]
[INFO] protege-editor-core ................................ SUCCESS [ 29.009 s]
[INFO] protege-editor-owl ................................. SUCCESS [ 37.774 s]
[INFO] protege-desktop .................................... SUCCESS [  6.356 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:27 min
[INFO] Finished at: 2017-02-08T12:28:43-05:00
[INFO] Final Memory: 33M/179M
[INFO] ------------------------------------------------------------------------


De: "Manuel Enrique Puebla Martinez" <[hidden email]>
Para: [hidden email]
Enviados: Miércoles, 8 de Febrero 2017 11:28:56
Asunto: I'm having problems when I try to debug from the IDE



I apologize, the "mvn clean package" does not work correctly, the one that works correctly is the "mvn package". When I do an "mvn clean package" the following error appears:

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ protege-editor-owl ---
[INFO] Deleting D:\Puebla\Ciencia\Tesis Doctoral Puebla\Implementacion\Proyecto Protege\SalvaCompil
os\SalvaConCambios\protege-editor-owl\target
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ protege-editor-owl ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] protege-parent ..................................... SUCCESS [  0.238 s]
[INFO] protege-launcher ................................... SUCCESS [ 26.231 s]
[INFO] protege-common ..................................... SUCCESS [03:04 min]
[INFO] protege-editor-core ................................ SUCCESS [ 45.972 s]
[INFO] protege-editor-owl ................................. FAILURE [02:05 min]
[INFO] protege-desktop .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:24 min
[INFO] Finished at: 2017-02-08T10:12:37-05:00
[INFO] Final Memory: 23M/62M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources (def
lt-resources) on project protege-editor-owl: Cannot create resource output directory: D:\Puebla\Cie
ia\Tesis Doctoral Puebla\Implementacion\Proyecto Protege\SalvaCompilados\SalvaConCambios\protege-ed
or-owl\target\classes -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following art
les:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :protege-editor-owl

De: Manuel Enrique Puebla Martinez [mailto:[hidden email]]
Enviado el: martes, 07 de febrero de 2017 11:35
Para: protege-dev
Asunto: I'm having problems when I try to debug from the IDE


Hello Josef Hardi:

 

Attached file "protect.log".

 

I am incorporating functionalities into the Protégé project. But I'm having problems when I try to debug from the IDE Eclipse.

 

I added a package called "org.protege.editor.owl.bigontology", inside I added my classes and enumerative types. Everything compiles well when I do an "mvn clean package", I attach an image of the result in the console. However, when I try to debug from Eclipse, I get an error message: "An error occurred that prevent Protégé from Starting", also attached the image. "

 

I have been reviewing the code and detected that the exception is thrown in the line "framework.start ();", belonging to the method "start", class "Launcher".


Within the "start" method, the error occurs when the following line of code is executed:
"// Send a framework event to indicate the framework has started.
         FireFrameworkEvent (FrameworkEvent.STARTED, this, null); "

Within the "fireFrameworkEvent" method, only the following line of code is executed:
"M_dispatcher.fireFrameworkEvent (new FrameworkEvent (type, bundle, throwable));"

"Type" = 1, "bundle" is an information object and "throwable" = null;

Any help that allows me to identify the reason for the error?

 

Best regards.

 

 





La @universidad_uci es Fidel. Los jóvenes no fallaremos. #HastaSiempreComandante #HastalaVictoriaSiempre


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

I'm having problems when I try to debug from the IDE

mpuebla
In reply to this post by mpuebla

Hello:

I have no problem, when I make an "mvn clean package" to the original Protégé code. I managed to execute and debug without any problem, because of that I was able to learn how Protégé works. The problem occurs when I add my class and enumerative package. It compiles well, but when I try to execute or debug, the error already commented appears. If you consider it, I can send you my project with the changes made to the source code of Protégé, there are not many so far. I just modified the "refill" method of the "OWLDataPropertyAssertionAxiomFrameSection" class that is in
"Org.protege.editor.owl.ui.frame.individual", in order to extract the "Property assertions" from my ontology that are in a Databases and not in the OWL file.

 Attached file "protect.log".

 I am incorporating functionalities into the Protégé project. But I'm having problems when I try to debug from the IDE Eclipse.

 I added a package called "org.protege.editor.owl.bigontology", inside I added my classes and enumerative types. Everything compiles well when I do an "mvn clean package", I attach an image of the result in the console. However, when I try to debug from Eclipse, I get an error message: "An error occurred that prevent Protégé from Starting", also attached the image. "

 I have been reviewing the code and detected that the exception is thrown in the line "framework.start ();", belonging to the method "start", class "Launcher".


Within the "start" method, the error occurs when the following line of code is executed:
"// Send a framework event to indicate the framework has started.
         FireFrameworkEvent (FrameworkEvent.STARTED, this, null); "

Within the "fireFrameworkEvent" method, only the following line of code is executed:
"M_dispatcher.fireFrameworkEvent (new FrameworkEvent (type, bundle, throwable));"

"Type" = 1, "bundle" is an information object and "throwable" = null;

Any help that allows me to identify the reason for the error?

 

Best regards.

 

 





La @universidad_uci es Fidel. Los jóvenes no fallaremos. #HastaSiempreComandante #HastalaVictoriaSiempre


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev

protege.log (14K) Download Attachment
Eclipse Error.png (267K) Download Attachment
cmdError.jpg (447K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: I'm having problems when I try to debug from the IDE

Josef Hardi
What is your Github address for the project? 

Best,
Josef

On Feb 8, 2017, at 12:37 PM, Manuel Enrique Puebla Martinez <[hidden email]> wrote:

Hello:

I have no problem, when I make an "mvn clean package" to the original Protégé code. I managed to execute and debug without any problem, because of that I was able to learn how Protégé works. The problem occurs when I add my class and enumerative package. It compiles well, but when I try to execute or debug, the error already commented appears. If you consider it, I can send you my project with the changes made to the source code of Protégé, there are not many so far. I just modified the "refill" method of the "OWLDataPropertyAssertionAxiomFrameSection" class that is in
"Org.protege.editor.owl.ui.frame.individual", in order to extract the "Property assertions" from my ontology that are in a Databases and not in the OWL file.

 Attached file "protect.log".

 I am incorporating functionalities into the Protégé project. But I'm having problems when I try to debug from the IDE Eclipse.

 I added a package called "org.protege.editor.owl.bigontology", inside I added my classes and enumerative types. Everything compiles well when I do an "mvn clean package", I attach an image of the result in the console. However, when I try to debug from Eclipse, I get an error message: "An error occurred that prevent Protégé from Starting", also attached the image. "

 I have been reviewing the code and detected that the exception is thrown in the line "framework.start ();", belonging to the method "start", class "Launcher".


Within the "start" method, the error occurs when the following line of code is executed:
"// Send a framework event to indicate the framework has started.
         FireFrameworkEvent (FrameworkEvent.STARTED, this, null); "

Within the "fireFrameworkEvent" method, only the following line of code is executed:
"M_dispatcher.fireFrameworkEvent (new FrameworkEvent (type, bundle, throwable));"

"Type" = 1, "bundle" is an information object and "throwable" = null;

Any help that allows me to identify the reason for the error?

 

Best regards.

 
 




La @universidad_uci es Fidel. Los jóvenes no fallaremos. #HastaSiempreComandante #HastalaVictoriaSiempre

<protege.log><Eclipse Error.png><cmdError.jpg>_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev