This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 220082 - Create HTML5 Project With DOJO Error.
Summary: Create HTML5 Project With DOJO Error.
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-15 02:59 UTC by fortruth
Modified: 2012-10-17 02:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fortruth 2012-10-15 02:59:36 UTC
Product Version = NetBeans IDE 7.3 Beta (Build 201210011125)
Operating System = Linux version 3.2.0-32-generic running on amd64
Java; VM; Vendor = 1.6.0_24
Runtime = OpenJDK 64-Bit Server VM 20.0-b12

after select dojo 1.8 js and to complete. It happened.

java.lang.AssertionError
	at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:745)
	at org.netbeans.modules.project.ui.NewProjectWizard.updateState(NewProjectWizard.java:71)
	at org.openide.WizardDescriptor$10.run(WizardDescriptor.java:1445)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2036)
Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
	at org.openide.util.RequestProcessor.post(RequestProcessor.java:424)
	at org.openide.WizardDescriptor.lazyValidate(WizardDescriptor.java:1467)
	at org.openide.WizardDescriptor.access$1700(WizardDescriptor.java:89)
	at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:2223)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:457)
	at $Proxy68.actionPerformed(Unknown Source)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.Component.processMouseEvent(Component.java:6389)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3268)
	at java.awt.Component.processEvent(Component.java:6154)
	at java.awt.Container.processEvent(Container.java:2045)
	at java.awt.Component.dispatchEventImpl(Component.java:4750)
	at java.awt.Container.dispatchEventImpl(Container.java:2103)
	at java.awt.Component.dispatchEvent(Component.java:4576)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
	at java.awt.Container.dispatchEventImpl(Container.java:2089)
	at java.awt.Window.dispatchEventImpl(Window.java:2518)
	at java.awt.Component.dispatchEvent(Component.java:4576)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)
	at java.awt.EventQueue.access$400(EventQueue.java:96)
	at java.awt.EventQueue$2.run(EventQueue.java:631)
	at java.awt.EventQueue$2.run(EventQueue.java:629)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
	at java.awt.EventQueue$3.run(EventQueue.java:645)
	at java.awt.EventQueue$3.run(EventQueue.java:643)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:194)
	at java.awt.Dialog$1.run(Dialog.java:1073)
	at java.awt.Dialog$3.run(Dialog.java:1127)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1125)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1074)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1114)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1096)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:126)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1363)
	at org.openide.util.Mutex.readAccess(Mutex.java:273)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1081)
	at java.awt.Component.show(Component.java:1672)
	at java.awt.Component.setVisible(Component.java:1624)
	at java.awt.Window.setVisible(Window.java:882)
	at java.awt.Dialog.setVisible(Dialog.java:1012)
	at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.showDialog(DialogDisplayerImpl.java:260)
	at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.run(DialogDisplayerImpl.java:186)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:670)
	at java.awt.EventQueue.access$400(EventQueue.java:96)
	at java.awt.EventQueue$2.run(EventQueue.java:631)
	at java.awt.EventQueue$2.run(EventQueue.java:629)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:640)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Comment 1 David Konecny 2012-10-15 03:07:49 UTC
Does this happen always?
Comment 2 fortruth 2012-10-15 04:06:29 UTC
> Does this happen always?
yes,  

and as I known. the dojo 1.8 don't have the ***,xd.** file. in CDN.
which our project always require this file.
Comment 3 Vladimir Riha 2012-10-15 06:43:01 UTC
I think this is fixed in trunk. It is caused by the fact that the js file cannot be downloaded. Can you try it with newer build?


Product Version: NetBeans IDE Dev (Build 201210150002)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b03
System: Linux version 3.2.0-31-generic-pae running on i386; UTF-8; en_US (nb)
Comment 4 David Konecny 2012-10-15 18:25:10 UTC
Based on Vlada's comment closing as fixed.
Comment 5 fortruth 2012-10-16 00:07:04 UTC
(In reply to comment #3)
> I think this is fixed in trunk. It is caused by the fact that the js file
> cannot be downloaded. Can you try it with newer build?
> 
> 
> Product Version: NetBeans IDE Dev (Build 201210150002)
> Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b03
> System: Linux version 3.2.0-31-generic-pae running on i386; UTF-8; en_US (nb)

the latest build 

Product Version: NetBeans IDE Dev (Build 201210150002)

still exists the problem.

http://ajax.googleapis.com/ajax/libs/dojo/1.8.0/dojo/dojo.xd.js.uncompressed.js

this file doesn't exists in google.
Comment 6 David Konecny 2012-10-16 01:29:48 UTC
(In reply to comment #5)
> still exists the problem.
> http://ajax.googleapis.com/ajax/libs/dojo/1.8.0/dojo/dojo.xd.js.uncompressed.js
> this file doesn't exists in google.

I see, sorry about that. The problem here is that Google CDN has changed and NetBeans keeps a static snapshot which got obsolete. Which is strange. The idea of CDN is that once something gets published into a CDN then it must never disappear otherwise any page depending on such CDN gets broken. I'm not sure what happened in this case. Perhaps it was a typo in NetBeans snapahost which we have not noticed before?? Will be fixed in next dev build. Thanks!

web-main#e4533f727516
Comment 7 fortruth 2012-10-16 03:12:49 UTC
> (In reply to comment #5)
> > still exists the problem.
> > http://ajax.googleapis.com/ajax/libs/dojo/1.8.0/dojo/dojo.xd.js.uncompressed.js
> > this file doesn't exists in google.
> I see, sorry about that. The problem here is that Google CDN has changed and NetBeans keeps a static snapshot which got obsolete. Which is strange. The idea of CDN is that once something gets published into a CDN then it must never disappear otherwise any page depending on such CDN gets broken. I'm not sure what happened in this case. Perhaps it was a typo in NetBeans snapahost which we have not noticed before?? Will be fixed in next dev build. Thanks!
> web-main#e4533f727516

as I said in comment before, it is not about google change the CDN. 

it caused by DOJO lib. that dojo 1.8 jave a big api changes to before, 

and changes have been begin from dojo 1.7.

so the CDN url also changed between different version. as I test, from dojo 1.7 the dojo CDN URL changed.
Comment 8 fortruth 2012-10-16 03:20:09 UTC
because it download the file to locale project to use. 

I think you can all url using the dojo.js but not the dojo.xd.js even in the dojo version < 1.7.

becase the dojo.xd.js file is build for cross domain invoke, 

which the use case is just invoke it from html script src

so, on the earth. we use all dojo.js to download to our projects for locale invoke.
Comment 9 Quality Engineering 2012-10-17 02:02:51 UTC
Integrated into 'main-golden', will be available in build *201210170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e4533f727516
User: David Konecny <dkonecny@netbeans.org>
Log: #220082 - Create HTML5 Project With DOJO Error.