[Biojava-l] NullPointerException Exception While Creating DNA MultipleSequenceAlignment

Scooter Willis HWillis at scripps.edu
Fri Jul 22 12:11:34 UTC 2011


Can you include the output of the stack trace as well as a small working
example that causes the exception?

On 7/22/11 7:56 AM, "Muhammad Tariq Pervez" <tariq_cp at hotmail.com> wrote:

>
>
>
>Dear all,
>
>I faced the NullPointerException exception while creating the DNA
>MultipleSequenceAlignment. The same goes right with protein sequence.
>Exception is thrown at the following line
>
>dnaProfile = Alignments.getMultipleSequenceAlignment(tmpLst);
>
>tmpLst is list of DNA sequences created/declared as follows
>List<DNASequence> tmpLst=new ArrayList<DNASequence>();
>
>Note: the tmpLst is filled/populated with two or more two sequences.
>
>I traced the exception by going into
>Alignments.getMultipleSequenceAlignmen method of the Alignments class and
>found the following line of code the cause of exception.
>
>static <E> List<E> getListFromFutures(List<Future<E>> futures) {
>        List<E> list = new ArrayList<E>();
>        for (Future<E> f : futures) {
>            // TODO when added to ConcurrencyTools, log completions and
>exceptions instead of printing stack traces
>            try {
>                
>                list.add(f.get());**
>            } catch (InterruptedException e) {
>                e.printStackTrace();
>            } catch (ExecutionException e) {
>                e.printStackTrace();
>            }
>        }
>        return list;
>    }
>** is the cause of exception. All is right with the protein sequences.
>Can any body help/guide me regarding the problem.
>
>Best Regards.
>
>
>
>Tariq, PhD Scholar
> 		 	   		  
>_______________________________________________
>Biojava-l mailing list  -  Biojava-l at lists.open-bio.org
>http://lists.open-bio.org/mailman/listinfo/biojava-l





More information about the Biojava-l mailing list