Search:

Type: Posts; User: jocdrew21

Page 1 of 17 1 2 3 4

Search: Search took 0.47 seconds.

  1. Replies
    4
    Views
    56

    Re: java.lang.NullPointerException

    If I knew that would I be posting???
  2. Replies
    4
    Views
    56

    java.lang.NullPointerException

    I am playing around with JavaEE and I am having a few issues. First when I use @Inject it will simply not work, however @Autowired will. Which I find odd because it is consider legacy and oracle...
  3. Re: Putting a Query result into a List in JPA

    I thought I should make the Shop_Orders class an Entity in hopes that would solve my problem:



    @Entity
    @Table(name = "SHOP_ORDERS")
    @Cache(usage =...
  4. Putting a Query result into a List in JPA

    I have a ManyToMany relationship on two tables and I made a somewhat complex query to return the results I need. Here is the example of the query:



    public interface Po_partRepository extends...
  5. Replies
    4
    Views
    150

    Re: Method is not returning array

    I just had to do the following. I need some sleep apparently.



    private int[] materialsNumber = new int[4];
  6. Replies
    4
    Views
    150

    Re: Method is not returning array

    It is a rather large error so I did not post it but here it is:



    Test in loop
    [ERROR] com.htd.aop.logging.LoggingAspect - Exception in com.htd.web.rest.PoResource.getAll() with cause = null...
  7. Replies
    4
    Views
    150

    Method is not returning array

    I am trying to return an array and I keep getting a null error.

    The below class sets the material numbers into an array and should return that array if called


    public class Jobs {

    private...
  8. Replies
    1
    Views
    302

    [SOLVED] Could not get JDBC Connection; JNDI

    I am not to sure why I am unable to connect to my database. I am using JNDI, and maven to help handle the dependencies. In my context.xml in my server folder in eclipse looks like:

    Error

    ...
  9. Replies
    2
    Views
    221

    Re: Object Orientated issues with Quiz game

    I am assuming you already broke up your classes and they are not in one file and if not you should do so. If you need functionality from another class simply write:



    class Quiz extends...
  10. Replies
    2
    Views
    71

    [SOLVED] Re: Getting a object from a map

    Ahhhh.. Thank you....
  11. Replies
    2
    Views
    71

    [SOLVED] Getting a object from a map

    I read from an excel document, here is a small example:



    75060120 0.750 60x120 1517.40 $0.4100
    10060120 1.000 60x120 2023.20 $0.4100


    I placed the above into a map after setting the...
  12. Replies
    11
    Views
    365

    Re: Help on Java code

    Does this:


    infoCustomers.add( new Customer( firstname, lastname, age, smokingstatus, height, weight, bmi, insurancepremiumcost) );


    match this these? Look closely....
  13. Re: Program to scrape all title tags from large sites

    Jaunt - Java Web Scraping & Automation

    check it out might be what you are looking for
  14. Re: Java Beginner : Seeking some help/ideas on basic solitaire card game

    What is the question? Advice on what you already have or is there an error?
  15. Replies
    11
    Views
    365

    Re: Help on Java code

    Please drop one / when you use the

    import java.util.*; // needed for scanner
    import java.io.*; //needed for file input and output

    // class definition
    public class Insurance
    {
    //main...
  16. Replies
    1
    Views
    198

    Changing the size of a JTextArea

    I am trying to output the database into a JTextArea but it is not displaying the whole thing. I tried to initialize it by the following:

    view class


    textArea = new JTextArea(500,400);...
  17. Replies
    0
    Views
    114

    SQL Statement is not working

    Here is a very simple mySQL statement and it is not working. I am not getting any errors and I cannot see what the issue is at the moment.


    public void update(User user) {
    id =...
  18. Replies
    1
    Views
    213

    prepared statement and SQL injection

    I have been reading about prepared statement and it said that SQL injection is still very possible with it. Now I would use spring if I was creating an web app but I thought that it allowing such...
  19. Re: Best way to handle the MVC design with a databaseDAO

    Thank you very much. I am going to try and to code this so I can understand it better. This is a quite large database program but I can see how it is useful, I just need to see the whole thing to...
  20. Re: Best way to handle the MVC design with a databaseDAO

    At the time I wrote this I was thinking of one model but several models is more realistic. Therefore I will have four packages, we will call them:

    com.practice.model
    com.practice.view...
  21. Best way to handle the MVC design with a databaseDAO

    I have done this a few times but I want to make sure I am doing it correctly. In other words creating a clean understandable program. Instead of posting code I will just talk about this is my plan:
    ...
  22. No qualifying bean of type [java.lang.String] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}

    I cannot seem to understand why I am getting this error. It straight forward error but why it is occurring is. I will post my bean and XML file below.



    package com.learnspring.beans;

    import...
  23. [SOLVED] Re: Has anyone had an issue with the Maven GUI

    right click the interface while you are in the Beans.xml file and select open with Spring Config..... That was very annoying...
  24. [SOLVED] Has anyone had an issue with the Maven GUI

    I am having an issue with maven. I am using Eclipse and have the configuration on this computer that I have on the other. However when I right click the file->new-> other-> Spring -> Spring Bean...
  25. Replies
    1
    Views
    269

    Storing images to a mySQL database:

    This question is not about syntax but a best way to handle something. What is the best way to store a image into a database? For example converting it into binary etc. I just wanted to get some...
Results 1 to 25 of 407
Page 1 of 17 1 2 3 4