NRE under certain circumstances in Asset subsystem

12 views
Skip to first unread message

Frank Quednau

unread,
Jan 31, 2012, 5:18:30 PM1/31/12
to FubuMVC Development Group
Hi there,

I am using the following assets file:

"jquery is scripts/jquery.js

pagination includes scripts/jquery.pagination.js,styles/pagination.css

jquery-ui includes scripts/jquery-ui-1.8.12.custom.min.js,styles/
jquery-ui.css

codehighlight includes styles/SyntaxHighlighter.css,scripts/
shCore.js,scripts/shBrushCSharp.js

site includes styles/site.css,scripts/rf.site.js"

when I use those assets in the ui markup (Asset being a shorthand for
WriteAssetTags etc.):

<Asset name="jquery-ui" />
<Asset name="site" />

All's fine. But also writing <Asset name="jquery" /> gives a NRE. The
same happens when I add jquery to the "jquery-ui includes ..." part of
the assets file.

However, the NRE seems to happen after rendering. In both cases the
rendering works correct which is easily verified since any missing bit
would fail core functionality of the page.

The stack trace is shown below, I hope this somehow helps to pinpoint
what could be happening:



at FubuMVC.Core.Assets.Http.ContentWriter.writeBinary(AssetPath
asset) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Assets
\Http\ContentWriter.cs:line 56
at FubuMVC.Core.Assets.Http.ContentWriter.Write(AssetPath asset) in
c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Assets\Http
\ContentWriter.cs:line 35
at FubuMVC.Core.Assets.Http.AssetWriter.Write(AssetPath path) in c:
\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Assets\Http
\AssetWriter.cs:line 28
at lambda_method(Closure , AssetWriter , AssetPath )
at
FubuMVC.Core.Behaviors.OneInOneOutActionInvoker`3.performInvoke() in c:
\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Behaviors
\OneInOneOutActionInvoker.cs:line 26
at FubuMVC.Core.Behaviors.BasicBehavior.Invoke() in c:\BuildAgent
\work\e5cfff0cc125d023\src\FubuMVC.Core\Behaviors
\BasicBehavior.cs:line 26
at FubuMVC.Core.Diagnostics.Tracing.BehaviorTracer.<Invoke>b__0()
in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Diagnostics
\Tracing\BehaviorTracer.cs:line 29
at FubuMVC.Core.Diagnostics.Tracing.BehaviorTracer.invoke(Action
action) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core
\Diagnostics\Tracing\BehaviorTracer.cs:line 51
at FubuMVC.Core.Diagnostics.Tracing.BehaviorTracer.Invoke() in c:
\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Diagnostics\Tracing
\BehaviorTracer.cs:line 29
at
FubuMVC.Core.Caching.OutputCachingBehavior.<.ctor>b__0(IActionBehavior
x) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Caching
\OutputCachingBehavior.cs:line 26
at
FubuMVC.Core.Caching.OutputCachingBehavior.<>c__DisplayClass6.<CreateOuput>b__4()
in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Caching
\OutputCachingBehavior.cs:line 45
at FubuMVC.Core.Runtime.OutputWriter.Record(Action action) in c:
\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Runtime
\OutputWriter.cs:line 47
at
FubuMVC.Core.Diagnostics.Tracing.RecordingOutputWriter.Record(Action
action) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core
\Diagnostics\Tracing\RecordingOutputWriter.cs:line 78
at FubuMVC.Core.Caching.OutputCachingBehavior.CreateOuput(String
resourceHash, Action`1 innerInvocation) in c:\BuildAgent\work
\e5cfff0cc125d023\src\FubuMVC.Core\Caching
\OutputCachingBehavior.cs:line 45
at
FubuMVC.Core.Caching.OutputCachingBehavior.<>c__DisplayClass9.<generateOutput>b__8()
in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Caching
\OutputCachingBehavior.cs:line 55
at
FubuMVC.Core.Assets.Caching.AssetContentCache.<>c__DisplayClass6.<Retrieve>b__5(String
hash) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Assets
\Caching\AssetContentCache.cs:line 38
at FubuCore.Util.Cache`2.Fill(TKey key, Func`2 onMissing) in c:
\BuildAgent\work\4a2c4b02595de142\src\FubuCore\Util\Cache.cs:line 130
at
FubuMVC.Core.Assets.Caching.AssetContentCache.<>c__DisplayClass6.<Retrieve>b__4()
in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Assets\Caching
\AssetContentCache.cs:line 38
at FubuMVC.Core.Assets.Caching.AssetContentCache.read[T](Func`1
findValue) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core
\Assets\Caching\AssetContentCache.cs:line 48
at FubuMVC.Core.Assets.Caching.AssetContentCache.Retrieve(String
resourceHash, Func`1 cacheMiss) in c:\BuildAgent\work
\e5cfff0cc125d023\src\FubuMVC.Core\Assets\Caching
\AssetContentCache.cs:line 36
at
FubuMVC.Core.Caching.OutputCachingBehavior.generateOutput(Action`1
innerInvocation) in c:\BuildAgent\work\e5cfff0cc125d023\src
\FubuMVC.Core\Caching\OutputCachingBehavior.cs:line 55
at FubuMVC.Core.Caching.OutputCachingBehavior.Invoke() in c:
\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Caching
\OutputCachingBehavior.cs:line 35
at FubuMVC.Core.Diagnostics.Tracing.BehaviorTracer.<Invoke>b__0()
in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Diagnostics
\Tracing\BehaviorTracer.cs:line 29
at FubuMVC.Core.Diagnostics.Tracing.BehaviorTracer.invoke(Action
action) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core
\Diagnostics\Tracing\BehaviorTracer.cs:line 51
at FubuMVC.Core.Diagnostics.Tracing.BehaviorTracer.Invoke() in c:
\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Diagnostics\Tracing
\BehaviorTracer.cs:line 29
at FubuMVC.Core.Diagnostics.Tracing.DiagnosticBehavior.Invoke() in
c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Diagnostics
\Tracing\DiagnosticBehavior.cs:line 30
at
FubuMVC.StructureMap.NestedStructureMapContainerBehavior.Invoke() in c:
\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.StructureMap
\NestedStructureMapContainerBehavior.cs:line 29
at FubuMVC.Core.Runtime.BehaviorInvoker.Invoke(IActionBehavior
behavior) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core
\Runtime\BehaviorInvoker.cs:line 40
at FubuMVC.Core.Runtime.BehaviorInvoker.Invoke(ServiceArguments
arguments, IDictionary`2 routeValues) in c:\BuildAgent\work
\e5cfff0cc125d023\src\FubuMVC.Core\Runtime\BehaviorInvoker.cs:line 33
at
FubuMVC.Core.Runtime.FubuRouteHandler.FubuHttpHandler.ProcessRequest(HttpContext
context) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core
\Runtime\FubuRouteHandler.cs:line 47
at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)

Jeremy D. Miller

unread,
Jan 31, 2012, 5:20:05 PM1/31/12
to fubumv...@googlegroups.com
Frank,

Can you show the file structure you've got under /content?
 
Jeremy D. Miller
The Shade Tree Developer
jeremy...@yahoo.com



From: Frank Quednau <fque...@googlemail.com>
To: FubuMVC Development Group <fubumv...@googlegroups.com>
Sent: Tue, January 31, 2012 4:18:30 PM
Subject: [fubumvc] NRE under certain circumstances in Asset subsystem
--
You received this message because you are subscribed to the Google Groups "FubuMVC Development Group" group.
To post to this group, send email to fubumv...@googlegroups.com.
To unsubscribe from this group, send email to fubumvc-devel+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fubumvc-devel?hl=en.

Frank Quednau

unread,
Jan 31, 2012, 5:22:40 PM1/31/12
to FubuMVC Development Group
it's

content
/ scripts
/ all js files
/ styles
/ all css files

On Jan 31, 11:20 pm, "Jeremy D. Miller" <jeremydmil...@yahoo.com>
wrote:
> Frank,
>
> Can you show the file structure you've got under /content?
>  Jeremy D. Miller
> The Shade Tree Developer
> jeremydmil...@yahoo.com
>
> ________________________________
> From: Frank Quednau <fqued...@googlemail.com>
> FubuMVC.Core.Caching.OutputCachingBehavior.<>c__DisplayClass9.<generateOutp ut>b__8()
> fubumvc-deve...@googlegroups.com.

ahjohannessen

unread,
Feb 7, 2012, 5:48:50 PM2/7/12
to fubumv...@googlegroups.com
Did you get any closer to what was causing the NRE?
Reply all
Reply to author
Forward
0 new messages