Tag: Java

Remote debugging with Eclipse for Ariba development

Hello everyone,

I believe most people will already know it but for new comers on Ariba development, it can be of an help.

If you develop a lot on Java for your Ariba customization you might want to set up remote debugging (I do it anyway for any new instances that I set up) so you can actually debug your code and do not need tons of logging.

1. Modify the launch of your instance (can be sourcing (upstream) or buyer (downstream)) , so for example with weblogic modify the config.xml and in the serverstart tag change the Arguments property to add the following arguments "-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=<port>" so the ServerStart will look like

  
<server>
    <name>asmserver1</name>
    ....
    <listen-address>127.0.0.1</listen-address>
    <server-start>
      <class-path>...</class-path>
      <arguments>-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=50005 -Xms256m -Xmx512m -Xss1m -XX:MaxPermSize=256M -Dweblogic.net.http.URLStreamHandlerFactory=ariba.util.net.URLStreamHandlerFactory -Dariba.server.home=D:\ariba\customer9r1\Sandbox\Sourcing\Server</arguments>
</server-start>
</server>

2. Configure Eclipse

go to Run/debug...
create a new Remote Java Application
select your ariba project and under connection properties,
select Host : 127.0.0.1 (it must match the value you have for the listen-address argument)
Port : 50005

click Apply

14-10-2011 09-02-23


If the parameters are not correct and eclipse cannot link to the JVM it will pop up an error message.

14-10-2011 09-24-08


Most probably the port is already in use or one of the parameter is not correct and does not match with your configuration.

3. In your java file, just put breakpoint where you want your code to stop (make sure your build is set up to compile with the debug flag set to true)

when everything is configured :

  • start eclipse
  • start your ariba instance
  • launch debug

when the program will encounter a breakpoint, it will stop and pop up eclipse debug view.

14-10-2011 09-09-09

 

of course this is only for dev purpose and should not be use in any case on prod instance

 

Hope this helps,

Fred

Tags: Ariba, Java
Comments 4 | Views: 3936 | Read more...

CSV Edit 1.1 is out

Hey,

well it is not really up to date as the csv edit 1.1 has been released 2 weeks ago but I wanted to make this announcement and present some of the new functionnality.

So, I created CSVEdit plugin in January and thanks to the Eclipse Marketplace, the plugin has met quite a success (it has been quickly in the top 100 plugins downloads) and I received some positive feedback right after the plugin was published.

Some people contacted me by directly by email or thought the issue list of the project - I host the project on google code and the issue managment, although not perfect is quite convenient, so it is an easy way to contact the team (http://code.google.com/p/csvedit/downloads/list)

I talked about the team is because J. Andrés Pizarro joined me to work on the plugin. he needs this plugin for his daily work and hopefully will bring a lot of new functionnality in the plugin. He already contributed in his first feature for the source view (I talk about it just after)

CSV Edit 1.1 has come with the following features :

- An extended set of preferences : you can select to open the csv file as source or table view by default; manage your csv file format with more settings

- Source code editing with region markup, means that even in the source view, you can differentiate the column

- Column management : you can create and delete the column directly from the table view

 

I've rebuilt the page of the plugin feature on this website to document in detail each feature.

 

I hope you will continue working with the plugin and do not hesitate to send me your feedback

 

Thanks,

Fred

Tags: Java
Comments 1 | Views: 2494 | Read more...

CSV Editor Eclipse Plugin

The first version of the csv plugin editor has been released and is available at http://code.google.com/p/csvedit/downloads/list

If you are dealing with csv files in your Eclipse project, you might want to take a look at this plugin which will make it easy .
Among the feature you will find:
- view csv file in source editor or table editor
- easy search in table view
- customize view with filtering column
- sorting column
- easily insert/delete rows

Tags: Java, Ariba
Comments 5 | Views: 6946 | Read more...

Welcome

Welcome in FHSolution,

This is the first post as the site is launched. I'll speak about Ariba and Java technologies, try to share some good tips regarding the Ariba implementation that I gathered with my experience, and see how it evolves.

Thanks,

Comments 5 | Views: 2707 | Read more...