James Daniel

Ranch Hand
+ Follow
since Sep 24, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by James Daniel

I am new to Cassandra. I have written a Jenkins plug-in that captures build information and inputs it to a MySQL database. We are converting that to Cassandra. One entry is the build log which has many lines of text. Is it possible to query for contents within that log? Say find all rows where a 400 exists within the log?

Any help would be greatly appreciated..

Jim
9 years ago
I have written a Jenkins plugin that uses doFillXXXItems and returns a ListBoxModel. It takes in a @QueryParameter which sets the name. It works great with a dropdown box. I now want to add checkboxes for each item but can't get it to work. If I create a method, it doesn't take @QueryParameter nor can I figure out how to set that with a typical j:forEach. I need to pass the name into the method or use a setter. I have been unsuccessful. Any ideas or examples?

Jim
10 years ago
For every run, I need a way to output every module and its result to an xml file. What is the best way to do this? Are there existing Maven plug-ins to do this? If not, is there any code that may be altered to do this?

Any help would be greatly appreciated.

Jim
10 years ago
I need to set Jira issue field using the Jira Java Rest Client. Right now I don't see any setter methods. I specifically need to set the assignee. I want to do this completely within Java and not use Curl. Does anyone know how I can do it?
11 years ago
I am experiencing a very weird problem. I have created a jar containing many classes to be called via Groovy within Hudson/Jenkins or via commandline to main method. I used the Maven Assembly plug-in so all the dependencies are contained within. It works great on most methods. The "weirdness" is when I try to call a DAO object that utilizes org.apache.commons.beanutils.RowSetDynaClass. When I instantiate the RowSetDynaClass constructor, I get method does not exist. This ONLY occurs when calling via Groovy. It does not happen when I call via commandline. Anyone know why is this occurring?
11 years ago
It worked. It must have cached my non-working page my previous attempt or I am having serious post Thanksgiving delusions. Thanks..
11 years ago
Bear, Thank you and I will make sure to format code. I tried prefacing the response with callback parameter. Are there any good examples that you know of?
11 years ago
I wrote an app that will pass data via JSON. It is cross domain so I am using jQuery JSONP. My page works great when hitting this JSON echo site: http://echo.jsontest.com/key/value/one/two But when I hit my simple Java app, I get a jQuery parse error.

This is my basic condensed Java code:


I have tried every conceivable variation but still I get a parse error. When I hit the servlet directly, I see this which looks okay to me.

({"hello":"there"});


What can I try or do to make this work? What is the echo test site doing that I'm not doing in Java?
11 years ago
I have been trying (and trying) to get a Spring application to authenticate against an AD LDAP server. I keep getting "Bad credentials" exception. When I use the same username/password in a LDAP tool, it works without issue. I am using Spring Security 3.1.2 and there isn't much to configuration. Does anyone have any ideas? I just want to see it authenticate and work from there. I can't even get that to happen. Help..


<authentication-manager>
<authentication-provider ref="activeDirectoryAuthenticationProvider"/>
</authentication-manager>

<beans:bean id="activeDirectoryAuthenticationProvider" class="org.springframework.security.ldap.authentication.ad.ActiveDirectoryLdapAuthenticationProvider">
<beans:constructor-arg value="my.domain.com" />
<beans:constructor-arg value="ldap://my.domain:389" />
<beans:property name="convertSubErrorCodesToExceptions" value="true"/>
</beans:bean>
11 years ago
Jeanne,

Thanks so much. I'll check it out..

Jim
11 years ago
I am looking for the Hudson 2.2.0 source code. Does anyone know where to find it? I have been looking and only find 2.2.1-SNAPSHOT and 3x. Until 3 goes to production or we are allowed to use Jenkins, I need to find the last production release. I need to make company specific changes. Any help would be greatly appreciated.

Jim
11 years ago
Memory is always a concern. I just wanted to make sure that the map could handle thousands of elements and find out which one would be the fastest lookup. I will look at HashSet. Thanks both of you for your time..
12 years ago
Paul,

Thanks for the reply. I would like to make a single database call and from the resultset put in the the PK as the key and Hudson api build url as value in a map. This will be 30 - 40 k rows. Then instead of going to the database to see if the value exists, I will check the map. If it doesn't exist, I will add it to the database.

Jim
12 years ago
I have a program that needs to be make many thousand database calls to see if entries exist. I would like to make one call, populate a key/value collection and was wondering what is the most efficient collection. I am looking at up to 30 - 40 thousand rows of string data. Any suggestions?
12 years ago
Anantha, thanks so much for your reply. I have been unable to set that value in the object that I need to pass on to a page. In the example below, I have two objects. The join is at id/jobId. jobName is the value I want to set though it isn't an actual column in the database. I just need to display the job name with the module information. When I do a join in Hibernate, I get an array of objects whereas I need only of type Module but with the value "jobName" set from the join to Job. Is that possible? I may be missing something in your example but since I need values from two tables but only want to create a list of objects of one type, how do get just the single value from Job without adding objects of type Job to the list?

Example:

JOB
id
name

MODULE
id
name
jobId
jobName