Win a copy of Terraform in Action this week in the Cloud forum!

vinitha simon

Ranch Hand
+ Follow
since Dec 13, 2007
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 vinitha simon

I've currently implemented it the following way..




Well, for 'dependency:unpack' I'm not sure if I would be able to provide artifactItems..

I'm just looking for a better way to achieve this...
11 years ago
Hi,

I have a zip file created as a part of the build, I would like to unzip this, I'm not sure how much 'maven-dependency-plugin' would help with this. any thoughts about how to proceed...

TIA
11 years ago
Thanks Ulf.

I also figured out



should work as well.
Folks,
I have a byte[], which I convert to an java.awt.Image by



Now, I need to write this image to a PDF using iText, but, iText accepts 'com.lowagie.text.Image'... Any suggestions on how to convert between the 2 image formats....

Any help is appreciated.

TIA
Jeanne, I appreciate your response.

I have the following code in the constructor of my ClassUnderTest.



So, on trying to instantiate the ClassUnderTest in my setUp() throws the following exception :

java.lang.IllegalArgumentException: Cannot convert null to com.package.SessionService at org.apache.shale.test.el.MockExpressionFactory.coerceToType(MockExpressionFactory.java:128) at org.apache.shale.test.el.MockValueExpression.getValue(MockValueExpression.java:196) at org.apache.shale.test.mock.MockApplication12.evaluateExpressionGet(MockApplication12.java:187) at junit.framework.TestCase.runBare(TestCase.java:132) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

I'm using the Shale Test Framework. So, if I try make my setUp() look like this :



I end up with java.lang.IllegalArgumentException: Cannot convert null to com.package.SessionService at org.apache.shale.test.el.MockExpressionFactory.coerceToType(MockExpressionFactory.java:128) at org.apache.shale.test.el.MockValueExpression.getValue(MockValueExpression.java:196) at org.apache.shale.test.mock.MockApplication12.evaluateExpressionGet(MockApplication12.java:187) atjunit.framework.TestCase.runBare(TestCase.java:132) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
12 years ago
I was wondering if anybody could give some guidance on how to write JUnits for JSF controllers...

TIA
12 years ago
Hi ,
I am trying to run my selenium tests through mvn selenium:selenese. However, it appears that the dojo is not loaded on the page.

I'm not sure how to go about verifying this, since the browser is brought up by maven selenese.

Any help is appreciated.



TIA
12 years ago
Thanks, it seems to work!!
12 years ago
Hi,
I currently have a pdf document that is generated, and on the click of a link, this document is opened in a new tab. In firefox, I have no issues, as this document is opened in a new tab and the tab is focused. But, in IE, this pdf document is opened in a new window and this window is not focused. Is there any way to set the focus on the new windoe. I realize I'd have to embed the javascript within the PDF document that I generate.

Any help is appreciated.

TIA
Hi,
I have a set of selenium integration tests, that are currently run using a test runner. I would like to make these to be run as a scheduled job on hudson. Since, all the projects we have are based on maven, I would assume, that we need to create a maven script to be able to run the selenium scripts and add the job to hudson.

Any suggestions on how to proceed..

TIA
12 years ago
Thanks everyone for the help, I think I'm just going to rewrite my code and try to get it working.

12 years ago
I think the pdf file is not being generated correctly, I did verify the mimetype as well.

But, the java code does not throw any exceptions. Is that normal?
12 years ago
Hi,
I have a J2ee application, in which on the click of a link, a pdf file needs to be generated and displayed on a new tab or window.

Currently, the pdf is generated, but, when written to the output stream, and redirected to the view, the screen just hangs.. I assume there is an exception of some sort which is not being logged for some reason.

I am not sure how to go about debugging this..

Any help is appreciated,

TIA
12 years ago
I have issues with my JNDI lookup . I got my context.xml outside of my webapplication . I have pasted the code below . But it was throwing NameNotFoundException .

javax.naming.NameNotFoundException: jms/Test at com.sun.jndi.fscontext.RefFSContext.getObjectFromBindings(RefFSContext.java:400

Hashtable hashtableEnvironment = new Hashtable();
hashtableEnvironment.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
hashtableEnvironment.put(Context.PROVIDER_URL, "file:///C:/sample");
Context context = new InitialContext(hashtableEnvironment);
NamingEnumeration namingenumeration = context.listBindings("");
while (namingenumeration.hasMore()) {
Binding binding = (Binding)namingenumeration.next();
System.out.println(
binding.getName() + " is bound to " +
binding.getObject()
);
}

Destination dest = (Destination) context.lookup("jms/test");


any help is appreciated.
Thanks all ! I did chain it, and it works fine !
12 years ago