Update NetBeans to 6.5

Bug #251173 reported by Joel Parker
50
This bug affects 4 people
Affects Status Importance Assigned to Milestone
netbeans (Baltix)
New
Undecided
Unassigned
netbeans (Ubuntu)
Fix Released
Undecided
Onkar Shinde
Declined for Jaunty by Steve Langasek
netbeans-ide (Debian)
New
Unknown
netbeans-ide (Ubuntu)
Invalid
Undecided
Unassigned
Declined for Jaunty by Steve Langasek

Bug Description

Binary package hint: netbeans-ide

NetBeans has been updated to version 6.5. This should be included in Intrepid.
[Was 6.1]

Tags: upgrade

Related branches

Changed in netbeans-ide:
status: Unknown → New
description: updated
Revision history for this message
Michał Gołębiowski-Owczarek (mgol) wrote :

Netbeans 6.1 has some issues, like reporting JavaNullPointerException in strange places. Upgrading to 6.5 would be a good idea.

Revision history for this message
Yulia Novozhilova (yulia-novozhilova) wrote :

NetBeans will be updated in Jaunty. Nevertheless could you give more info about JavaNullPointerException you've got?

Revision history for this message
psychok7 (nunok7) wrote :

i also get a bug when creating new classes on existing projects..(some error message).. why cant u guys still upgrade it to 6.5 in intrepid? 6.1 is full of bugs

Revision history for this message
Yulia Novozhilova (yulia-novozhilova) wrote :

As far as i know Intrepid is frozen for new functionality. So Jaunty seems to be the best candidate for NetBeans 6.5.
Anyway I'm now working on NetBeans 6.5 packaging and I'm interested in being informed about any problems with the product.
So I would appreciate if you send me more info about errors/exceptions you get. ( just explain what you've done and attach a log file which is located here: ~/.netbeans/6.1/var/log/)
 It will help to improve the quality of NetBeans in Ubuntu. Thanks in advance.

Revision history for this message
psychok7 (nunok7) wrote :
Download full text (8.7 KiB)

hi.. when i try to create a new class on a project i click on the finish button (the class actually gets created ) and then this error occurs :

java.lang.ClassNotFoundException: org.apache.log4j.Logger
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
 at org.netbeans.ProxyClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Caused: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
 at freemarker.log.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:65)
 at freemarker.log.Logger.getLogger(Logger.java:255)
 at freemarker.template.utility.SecurityUtilities.<clinit>(SecurityUtilities.java:67)
 at freemarker.ext.beans.BeansWrapper.<clinit>(BeansWrapper.java:146)
 at freemarker.template.ObjectWrapper.<clinit>(ObjectWrapper.java:69)
 at freemarker.core.Configurable.<init>(Configurable.java:132)
 at freemarker.template.Configuration.<init>(Configuration.java:109)
 at freemarker.template.Configuration.<clinit>(Configuration.java:96)
 at org.netbeans.libs.freemarker.FreemarkerEngine.initFreeMarkerConfiguration(Unknown Source)
 at org.netbeans.libs.freemarker.FreemarkerEngine.eval(Unknown Source)
 at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:232)
 at org.netbeans.modules.templates.ScriptingCreateFromTemplateHandler.createFromTemplate(ScriptingCreateFromTemplateHandler.java:105)
 at org.openide.loaders.MultiDataObject.handleCreateFromTemplate(Unknown Source)
 at org.openide.loaders.DefaultDataObject.handleCreateFromTemplate(Unknown Source)
 at org.openide.loaders.DataObject$CreateAction.run(Unknown Source)
 at org.openide.loaders.DataObjectPool$1WrapAtomicAction.run(Unknown Source)
 at org.openide.filesystems.EventControl.runAtomicAction(Unknown Source)
 at org.openide.filesystems.FileSystem.runAtomicAction(Unknown Source)
 at org.openide.loaders.DataObjectPool.runAtomicAction(Unknown Source)
 at org.openide.loaders.DataObject.invokeAtomicAction(Unknown Source)
 at org.openide.loaders.DataObject.createFromTemplate(Unknown Source)
 at org.openide.loaders.DataObject.createFromTemplate(Unknown Source)
 at org.netbeans.modules.java.project.NewJavaFileWizardIterator.instantiate(NewJavaFileWizardIterator.java:158)
 at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(Unknown Source)
 at org.openide.loaders.TemplateWizard.handleInstantiate(Unknown Source)
 at org.openide.loaders.TemplateWizard.instantiateNewObjects(Unknown Source)
 at org.openide.loaders.TemplateWizardIterImpl.instantiate(Unknown Source)
 at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(Unknown Source)
 at org.openide.WizardDescriptor.callInstantiateOpen(Unknown Source)
 at org.openide.WizardDescriptor.callInstantiate(Unknown Source)
 at org.openide.WizardDescriptor.access$1600(Unknown Source)
 at org.o...

Read more...

Revision history for this message
psychok7 (nunok7) wrote :

sorry this is a netbeans 6.1 error... i havent used 6.5 so i dont know if it also has that problem

Revision history for this message
Marek Slama (mslama-email) wrote :

2 psychok7: Please file separate issue for your problem. It might be dependency problem. But first I need to investigate why freemarker is trying to load org.apache.log4j.Logger. Do you have liblog4j-1.2-java package installed? libfreemarker-java does not depend on liblog4j-1.2-java so there might be another mechanism how concrete logger class is selected. Also exact description what project you use and what class you tried to create, JDK, if you installed any additionla plugin from Netbeans UC would help. I need to reproduce this to be able to investigate why it happens.

Revision history for this message
psychok7 (nunok7) wrote :

hi there.. i have liblog4j-1.2-java , i create a normal java project.. and add a class in the normal way(i didnt have this problem in the previous ubuntu) im using ubuntu 8.10 and installed only netbeans and jdk trough synaptic
any more ideias?

Revision history for this message
Marek Slama (mslama-email) wrote :

Do you use openjdk or sun jdk? I will try to reproduce. Problem might be in freemarker as it should load logger from jdk in freemarker.log.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:65)
freemarker.log.Logger.getLogger(Logger.java:255)
freemarker.template.utility.SecurityUtilities.<clinit>(SecurityUtilities.java:67)
I will look at freemarker sources.

Revision history for this message
psychok7 (nunok7) wrote :

i use sun jdk 6.. thanks

Revision history for this message
Yulia Novozhilova (yulia-novozhilova) wrote :

I can't reproduce the issue even when "org.apache.log4j.Logger" logger class is selected by freemarker. Everything is ok for me.
Actually freemarker uses whatever logging package it can find on the system:
 Log4J, Avalon or JDK1.4 logging (in this order). Looks like in this case Log4J was chosen (in usual configuration it is JDK1.4). But somehow org.apache.log4j.Logger was not found. Strange.

psychok7, could you, please, install the package attached*
> sudo dpkg --install <path_to_package/packagename.deb>
and run NetBeans via:
> /usr/share/netbeans/6.1/bin/netbeans
command.

Then, please, create a new class file on the project and send me netbeans's log.

 * I've added some debugging output into original libfreemarker-java package and rebuilt it.

Revision history for this message
LumpyCustard (orangelumpycustard) wrote :

I think we can confirm this

Changed in netbeans-ide:
status: New → Confirmed
Revision history for this message
Chris Benson (chrisbenson) wrote :

I understand that Netbeans 6.5 isn't being distributed with Intrepid, but will a Netbeans 6.5 package be made available in the Intrepid repositories? If so, what repository will it be in and when will it be available?

Revision history for this message
Yulia Novozhilova (yulia-novozhilova) wrote :

As soon as packages for NetBeans 6.5 are ready I'll publish them on PPA. I'll let you know.
FYI, you also can download NetBeans 6.5 from netbeans.org.

Revision history for this message
Marco Rodrigues (gothicx) wrote :

I'll be waiting for it. I hope it can be backported to Intrepid :-)

Revision history for this message
Michele Renda (mic-renda) wrote :

I add my request of Netbean 6.5 too

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

I saw that Jaunty also includes just version 6.1. Could at least Netbeans be upgraded to 6.5 in 9.04?

Revision history for this message
Yulia Novozhilova (yulia-novozhilova) wrote :

netbeans 6.5~ppa packages for intrepid are available here: https://launchpad.net/~yulia-novozhilova/+archive

To install the packages, please,
1) add
deb http://ppa.launchpad.net/yulia-novozhilova/ubuntu intrepid main universe
into /etc/apt/sources.list
2) Confirm the PPA key's fingerprint:
save a key as text file: http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x3160CFCCBD4FE73C
Then go to Desktop > Administration > Software Sources give your root passwd. After the window comes up go to the Authentication tab, there will be a "Import Key File" button. Press that then go to the text file and add the key.
3) sudo apt-get update
4) sudo aptitude install

See also: https://help.launchpad.net/Packaging/PPA

Changed in netbeans:
status: New → Confirmed
Revision history for this message
Yulia Novozhilova (yulia-novozhilova) wrote :

PPA's address has changed from http://ppa.launchpad.net/yulia-novozhilova/ubuntu to

http://ppa.launchpad.net/yulia-novozhilova/ppa/ubuntu/

So instructions above are changed:

1) add
deb http://ppa.launchpad.net/yulia-novozhilova/ppa/ubuntu intrepid main universe
into /etc/apt/sources.list
2) Follow the instructions from "Adding a PPA's keys to your system" section of https://help.launchpad.net/Packaging/PPA
to confirm the PPA key's fingerprint
3) sudo apt-get update
4) sudo aptitude install netbeans

Revision history for this message
Yulia Novozhilova (yulia-novozhilova) wrote :

To upgrade NetBeans to 6.5 the following packages have to be upgraded first:
1) libnb-svnclientadapter-java : https://bugs.launchpad.net/bugs/316744
2) libnb-javaparser-java : https://bugs.launchpad.net/bugs/316784
3) libnb-platform-java : https://bugs.launchpad.net/bugs/316793

Revision history for this message
Andrey Zaitsev (a-zaitsev) wrote :

Yulia,

So should the ubuntu community hope that NetBeans shall be in the Jaunty release? Or we should break any attempt as we did with Eclipse? What are the plans?

The Q #2: will be the glassfish updated to ur2? Im askin' cos' you're the only person who i've seen who really interracts with the community.

Thx.

Revision history for this message
Marcelo Atie (marceloatie) wrote :

Andrey, we already have all the diff files that we need, i really hope that Ubuntu Sponsors will upload it before the Ubuntu 9.04 feature freeze (February 19th)

Revision history for this message
Yulia Novozhilova (yulia-novozhilova) wrote :

Andrey, I'll do my best to see NetBeans 6.5 in the Jaunty. But as Marcelo said everything depends on sponsors now.

As for GlassFish I don't have any information but I've sent a letter with your question to the last uploader of the package. Hope to get an answer soon.

Revision history for this message
Yulia Novozhilova (yulia-novozhilova) wrote :

About GassFish:
There are no plans for updating the GlassFish v2 in Ubuntu to GlassFish v2.1.
But there is an ongoing effort to get GlassFish v3 Prelude into universe or main.

Revision history for this message
Michele Renda (mic-renda) wrote :

Hello,
I am using on production the Netbean package given by Yulia Novozhilova.
It run well. The only problem I have (and I didn't had with NB 6.5 given by Sun) was that when I try to update Netbean Plugins I get that this file can't be downloaded:

http://updates.netbeans.org/netbeans/updates/6.5/uc/final/ubuntu/catalog.xml.gz?unique=NBUBU014125bf1-7aca-4056-b1a7-0d5232b16e9b_d62ce377-c18e-4fbf-98da-4dd86f6e9886

Thank you
Michele Renda

Revision history for this message
Michele Renda (mic-renda) wrote :

Hello, I'd like to know a short explanation about the reason why netbeans-ide was refused for Jaunty (no polemics),
and in which version it will be introduced.

Thank you
Michele Renda

Revision history for this message
Marcelo Atie (marceloatie) wrote : Re: [Bug 251173] Re: Update NetBeans to 6.5

Michele, netbeans-ide wasn't refused, we are only waiting the fix of
https://bugs.edge.launchpad.net/bugs/316793

2009/2/15 Michele Renda <email address hidden>

> Hello, I'd like to know a short explanation about the reason why
> netbeans-ide was refused for Jaunty (no polemics),
> and in which version it will be introduced.
>
> Thank you
> Michele Renda
>
> --
> Update NetBeans to 6.5
> https://bugs.launchpad.net/bugs/251173
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Yulia Novozhilova (yulia-novozhilova) wrote :

The changes:
- Added watch file and get-orig-source target
- updated changelog
- in control file: libsvn-javahl -> libsvn-java
- fixed problem reported above by Michele Renda (Thanks him a lot)

Changed in netbeans:
assignee: nobody → onkarshinde
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package netbeans - 6.5-0ubuntu1

---------------
netbeans (6.5-0ubuntu1) jaunty; urgency=low

  * New upstream release. (LP: #251173)
    -Added "Conflicts: netbeans-ide" to control (LP: #257307)
    -Added watch file and get-orig-source target to rules file

 -- Yulia Novozhilova <email address hidden> Fri, 26 Sep 2008 18:51:50 +0400

Changed in netbeans:
status: Confirmed → Fix Released
Changed in netbeans-ide:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.