java

java

  • All Sites

0 answers

java.lang.ClassNotFoundException in jboss

I've got an EJB application, that contains few external jars. If I run my code in IDE, everything will be ok. But if I run that at my jboss, I will catch Java.lang.ClassNotFoundException. What is ...

0 answers

how to initialize media plugin in cordova ionic

I am using cordova ionic on win7. I am on project making apps for android and windows phone which for each page there is corresponding audio, when audio changes the image should change and new audio ...

1 answer

Hibernate Envers : Embedded extended MappedSuperClass raise exception on startup

I'm currently trying to use Hibernate Envers on my project, but I got the following exception. I think it's because of MedicalSummaryId which contains no data and extends a mapped superclass, but I ...

0 answers

Maven: Don't use version installed on application server

I have a war and want to deploy it on a websphere application server. The application server has slf4j, version 1.4.2 installed. However, my application requires at least version 1.6.1. Here's the ...

1 answer

Building a Simple Graph in Java

I am trying to build a program that prints out a simple graph. The goal of the program is to have a print out of user inputs with the corresponding number of asterisks adjacent to the number. The ...

1 answers | 4 mins ago by justLearning on Stack Overflow stackoverflow.com
2 answers

Unable to retrieve instance of Object from bean

I have defined shipmentProperties.xml file as: <bean id = "shipmentProperties" class = "com.amazon.tfs.utils.Record" scope="prototype"> <constructor-arg type = "java.lang.String" value = ...

2 answers | 4 mins ago by user3697669 on Stack Overflow stackoverflow.com
0 answers

Visualization of Binary Tree using recursion in Java

If we draw a binary tree on the screen using characters, we might have 1 branch on the top row, 2 on the next row, then 4, 8, 16, and so on. --------X------- ----X-------X--- --X---X---X---X- ...

0 answers

Libgdx Generate RogueLIke Dungeon - Algorithm Error

I have used Libgdx to generate a dungeon out of keyboard characters. I have decided to print out the array as a text file. However this is what I got: Furthermore, It isn't consistent I don't ...

0 answers

How to display Microsoft word document on html page using jsp?

I need to display Microsoft Doc on my web page and then parse the doc for further process.

0 answers

Andriod application closes due to “stack corruption detected: aborted” error

I have developed an application in Android Studio 0.5.2, and worked well, until yesterday when I tried to import it in Android Studio 1.0.1. After Login (Activity A), I click on a button which is in ...

3 answers

how to create a gray scale image from pixel values using java

My requirement is that, I need to convert a color image into gray scale image and obtain pixels values of gray scale image to an array and perform some encryption algorithm on that array and again ...

1 answer

Need help constructing an 'item upgrade' system using Java. (Explanation inside)

You are a user and you're have an item than you want to upgrade(let's call it DM item). You want me to calculate how manu things(let's call them DMs) you need to upgrade to the rank you want(the ...

1 answers | 9 mins ago by Kirito on Stack Overflow stackoverflow.com
0 answers

Member log in issue

I'm having an issue implementing a member log in, in to my library system. This is the code I have so for Here is my code for from the main system. case 1: String StudentUser; ...

1 answer

Java - Know the day of the week of the given String

In android,I have a String of that format "2015-03-30T12:30:00" and I want to know which day of the week it is. Testing with the device on the same day, with that function dayOfweek = 5 and ...

1 answer

Java-Creating Entity Class From DataBase Tables using Programmatically

i am trying to create an entity class from the database table. Now i am working with pure java configuration with Spring + Hibernate and My Question is How to create the model class(entity) using ...

3 answers

Using getDefaultSharedPreferences in a method

So I am using getdefaultsharedpreferences in a method called onLoadFinish (it's from a pdf library from android). Here's the code: public void onLoadFinish(DocumentState.OPEN state) { //some ...

2 answers

Efficiency of method call in for loop condition

I am writing a game engine, in which a set of objects held in a ArrayList are iterated over using a for loop. Obviously, efficiency is rather important, and so I was wondering about the efficiency of ...

2 answers

Building network graph from twitter users by subject

I'm trying to construct a social network graph of twitter users who have mentioned a particular topic. My strategy to do this goes roughly like this: Query twitter for a topic. Collect the first ...

1 answer

Eclipse Plug-in : submenu in menuContribution

I'm trying to understand more submenus in a menuContribution, here's what I've done so far : MenuManager submenu = new MenuManager("Commands", "com.org.new.commands"); ...

1 answers | 12 mins ago by Augustin on Stack Overflow stackoverflow.com
1 answer

Code a term-rewriting parser/expression evaluator with ANTLR (or any other tool)

I'm trying to code a software which should execute instructions of a basic programming language only with these capabilities: Arithmetic expression evaluator (add,minus,mult,divide,parenthesis,...) ...

1 answer

Java applet freezes whenever I go back to intro screen of my game

I'm trying to create a java applet which lets a user play the 20 questions game, however when a game has ended and I click on replay the game, it freezes when it's supposed to go back to the intro ...

1 answers | 13 mins ago by Andrew Brick on Stack Overflow stackoverflow.com
1 answer

Reversing a HashMap storing words and their line numbers

I have a HashMap HashMap<String, LinkedList<Integer>> indexMap; which is storing all words in a file and their corresponding line numbers where they appear. Example - This is just an ...

1 answers | 13 mins ago by NatureDevil on Stack Overflow stackoverflow.com
0 answers

Wildfly JSF resources: err_invalid_chunked_encoding

My customer web application is currently on an AWS-EC2 Linux instance, running WildFly 8.2.0.Final "Tweek". I'm not using Apache or other web servers, just accessing the application server on port ...

0 answers

Java: B*-Tree implementation

Is the implementation of a B*-Tree similar to a normal B-Tree? Am I on the right way if I have a working B-Tree and modify it to be a B*-Tree (add code to share keys and split at (2m-1)/3)?

2 answers

When to use Servlet or @Controller

I need to get a few things cleared up. I have been looking for an answer for this one, but I can't seem to find a good answer to my specific questions (eg. this question was nibbling on the answer: ...

1 answer

What to do after writing the user requirements document?

Suppose I have to develop a Desktop Application using Java SE. I have finished writing User requirements document. In this document, I mentionned the functionnalities of my futur application. I ...

1 answers | 15 mins ago by OSryx on Stack Overflow stackoverflow.com
1 answer

Java 8 stream for-loop

Im new to Java 8 Streams and would like to convert following code-block to Java 8's Stream way of doing the same thing. ArrayList<FooBO> list1 = new ArrayList<FooBO>(); List<BarBO> ...

1 answers | 16 mins ago by henrik on Stack Overflow stackoverflow.com
5 answers

What parts of the JLS justify being able to throw checked exceptions as if they were unchecked?

I have recently discovered and blogged about the fact that it is possible to sneak a checked exception through the javac compiler and throw it where it mustn't be thrown. This compiles and runs in ...

0 answers

How to configure the timeout in Axis2?

Below is the code i tried to initialize the timeout feature for Axis2 Stub s = null; ServiceClient sc = new ServiceClient(); Options o = sc.getOptions(); ...

0 answers

spring ws soap client+jaxb2

I am using the JAXb2 maven plugin to create the domain[bean ]classes. When i try to hit the service thru WebServiceTemplate class, I am getting below error. ...

15 30 50 per page
1 2 3