Resource the Source, BigResource

Since 2005, our team is working 24/7/365 to maintain one of the World's largest resource center for webmasters and programmers. The idea is simple ... crawl, validate, format, trim and prioritize similar programming related issues on a single page from hundreds of resources over web. A time saver for overburdened programmers and also provides focused solutions to their problems.

Every single step of indexing of resources being monitored by programming professionals. It tooks us 12 years to put together an index of 5 million plus qualified Q&As by humans, not bots.

Just crawling and building a database of programming problems is not an art. The success of this unique project lies in the human editing of these messages by professionals for content validity and definitive solution. Compare and see the difference between an original post on a forum and the same edited message added to our index here. No unanswered posts, salutations, lengthy code lines, images, avatars, attachments, closing remarks, reference URLs, signatures etc., just the core issues and solutions to them. We ONLY index the issues/questions, to find a qualified solution, our visitors have to visit respective sites.

As of Jan 2016 stats, 50,000 unique visitors/webmasters visit us every day to get benefited from this index. We are working hard and striving harder to provide programmers an unmatchable resource index to their unanswered questions. On average, 1000 messages per day are edited, validated and added to our index by a team of 18 members.

BigResource, always blammed for spamming and infriging copyrights by collecting and putting together content from other sources. Rest assured that this content is being added by due permission of respective sites. People say it SPAM, we say it an ART, resource the source. Click here to view a detailed Copyright Policy

Recently Indexed Messages:-

Applets :: Classloader Can't Load Properties

May 29, 2014

I'm developing an Applet that print a bar code using Jpos API. I need some jars and two configuration file. I've added jars to the classpath and configuration files in src directory. In Eclipse everything works fine.

DefaultProperties prop = new DefaultProperties();
SimpleXmlRegPopulator xmlReg = new SimpleXmlRegPopulator();

Everything works fine in Eclispe but I can't find property files when i call the applet from a web page. So I've checked the JavaPos sources and I've paste the loadJposProperties() and xmlReg.load("wincor.jpos17.THxxx.xml") content in my source code:

InputStream isD = prop.getClass().getClassLoader().getResourceAsStream(prop.JPOS_PROPERTIES_FILENAME); // (1) content of loadProperties
if (isD != null){
System.out.println("jpos/res/ found");

[Code] ...

The same method is used to found wincor.jpos17.THxxx.xml. So when I call applet form the browser I get INPUT STREAM FROM PROPERTIES OK!! from (1) and jpos/res/ not found from (2).

So getClass().getClassLoader().getResourceAsStream works if i write it directly in my code, but doesn't work if i call a jar method.

View 3 Replies

JDBC :: Unable To Establish Connection To Excel

Aug 21, 2014

I have failed with all possibilities that I know to make this program success. Getting error as :

java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Program goes like this.

import java.sql.*;
public class ExcelConnection {
public static void main (String[] args){
try {
Connection conn = getConnection("TEST.xls");
Statement stmt = conn.createStatement();

[Code] ....

View 1 Replies

Java Servlet :: Implementing JPA Hibernate Simple Application Using One To Many Relationship

May 8, 2012

I am implementing JPA hibernate simple application using one to many relationship.

Relation ship is Comapny (1)----------- Department(*) is as follow :

package com.web.pojo;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;

[Code] .....     

What I am doing is , I am adding new department to existing company. After execution above code

Table created are :

1. Company table with id and name
2. Department table with deptId , deptName , compId.

so at the time adding department , it does not threw any exception but updates records in department as

1(Id),Development(DeptName),null(compId) .

I am not getting why it is not updating compId column.

View 5 Replies

XML :: Conditional Formatting On Subtotal

Dec 2, 2013

I found the XML for Total as below:
<saw:edgeLayer type="column" columnID="c523314f1e2a401c3">
<saw:displaySubTotal id="t1" subTotalPosition="before">

[Code] ....

It shows some Error Message as "DXE compiler error. No table 'GTGT' found in DXE. Source name: DxeAPI. XML: None". It it possible to add some condition for Grand Total? If so, how I alter my XML??

View 1 Replies

JSP / JSTL :: Images Reload - Refresh After Getting New Image From Client Side

Jan 25, 2013

I have to show more than one images on a jsp page which are frequently refreshed. I am getting images in stream from client end and i want to show them on jsp. How can show them on jsp and refresh them after getting new image from client side?

View 8 Replies

Networking :: SocketChannel Hangs Up After Several Read (ByteBuffer)

Nov 9, 2013

I wrote a proxy in java. The version with ServerSocket-Socket/Stream-IO works wonderfully. When I rewrote it to ServerSocketChannel-SocketChannel/ByteBuffer it works also very well. However, when I access YouTube things happen weirdly: The video is frozen after 3 or 5 minutes (but this did not with the version of ServerSocket/Socket). I strongly assume that there probably was a nasty bug....  The (shortened) codes are:

        public class BeanServer extends Thread {
             public BeanServer( ) { }
          public void run( ) {
               try {
                    bServer =;

[Code] .....

View 5 Replies

JSF :: Passing Parameters From Servlet

Sep 12, 2014

I'm trying to pass a parmeter to a jsf page from a servlet(i.e. associated with paypal adaptive api), but I keep getting the following error, even though the productType on ProductDetailsVO is a String.

INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.

sourceId=j_idt2[severity=(ERROR 2), summary=(j_idt2: '45;productType=Sport'

must be a number consisting of one or more digits.), detail=(j_idt2: '45;productType=Sport' must be a number between -2147483648 and 2147483647 Example: 9346)]

Calling JSF page contains:-

returnURL = new URL(new URL(request.getRequestURL().toString()),"pages/paypalpaymentapproved.xhtml?paypalID="+paypalID+";productType=Sport");

[Code] ....

View 6 Replies

Java-8 :: Lambda Expression Throws IllegalAccessError

Oct 16, 2014

I have the following structure and want to use lambda expressions with it, but an exception occurs:
class SuperClass // (package private)
public class SubClass extends SuperClass // in same package as SuperClass
I have a functional interface (a listener), which has one argument of type SubClass.
public interface MyListener() {
    void myMethod(SubClass e);
When I use the old-school Java 7 style:
addListener(new MyListener() {
     public void myMethod(SubClass e) {

Everything works fine! If I use Java 8 lambda expression instead:
addListener(e -> {
It will throw an exception:
java.lang.IllegalAccessError: tried to access class SuperClass

View 4 Replies

I/O Streams :: Insert Space At Proper Place By Breaking Sentence Into Correct Words

Nov 27, 2014

You are given 2 files - "testcase.txt" and "validwords.txt".In testcase.txt, the sentences are written without any space inbetween/for ex: this is a sentence which looks ambigous.You are to insert a space at the proper place by breaking the sentence into correct words, ex o/p: this is a sentence which looks ambigous.validwords.txt contains all valid words (as 1 word per line). If you find a word that does not match, replace it with ####. After correcting

View 4 Replies

Enterprise JavaBeans :: Virtual Machine Has Aborted Error During Java EE SDK Install

Aug 5, 2014

I'm trying to install java_ee_sdk-6u3-jdk7-windows-x64.exe on our new Windows Server 2012 machine but the installer starts and I then get a Setup box appear that says Error: The Java(TM) Virtual Machine has aborted.  I've looked in the Event Viewer and there are no messages and I've tried to get the installer to create a log file (by passing the parameter -l <loglocation>) but it doesn't seem to get that far as no log is created.
The very first time I tried to run the JavaEE install on this machine, it installed everything ok but didn't create the windows service as .NET Framework 3.5 was missing.  So I uninstalled JavaEE and added in the .NET Framework 3.5 and then my problems began.  I have already installed these versions of Java and JavaEE successfully on a previous Windows Server 2012 machine which had the .NET Framework 3.5 on it. 
The JRE installed already on the computer is jre-6u45-windows-x64.exe and I am logged in as an administrator.  I've tried uninstalling the JRE and reinstalling and also doing a registry clean using CCleaner incase there are any old references to the JRE/JavaEE but it didn't work.

View 1 Replies

Copyrights 2005-15, All rights reserved