- I am Using DXA 1.2 version (.Net is delivery side).
- Tridion 2013 SP1 i am using
- I have a rich text field in my schema, in that i have added a Internal Component Link (which has published page).
- I understand that for the rich text field, i can use "RichText" or "string" type in model. (I tried both).
- When i run/debug the solution from my local machine, it is failing and the error is as below from "DefaultModelBuilder.cs" line 662
- Originally error caused from the class "TridionLinkResolver.cs" and method "ResolveBinaryLink" line 88
Throwable was caught
Stack Trace is:
java.lang.ExceptionInInitializerError
at com.tridion.linking.AbstractLink.<init>(AbstractLink.java:69)
at com.tridion.linking.BinaryLink.<init>(BinaryLink.java:67)
Caused by: java.lang.RuntimeException: Fatal error, unable to load the Linking Module
at com.tridion.linking.Linking.reloadInstance(Linking.java:117)
at com.tridion.linking.Linking.<clinit>(Linking.java:87)
... 2 more
Caused by: com.tridion.configuration.ConfigurationException: org.xml.sax.SAXParseException; lineNumber: 36; columnNumber: 2; The markup in the document following the root element must be well-formed.
at com.tridion.configuration.XMLConfigurationReader.readConfiguration(XMLConfigurationReader.java:125)
at com.tridion.configuration.XMLConfigurationReader.readConfiguration(XMLConfigurationReader.java:97)
at com.tridion.configuration.XMLConfigurationReader.readConfiguration(XMLConfigurationReader.java:83)
at com.tridion.Controller.loadConfiguration(Controller.java:404)
at com.tridion.Controller.<init>(Controller.java:116)
at com.tridion.Controller.<init>(Controller.java:161)
at com.tridion.linking.Linking.<init>(Linking.java:106)
at com.tridion.linking.Linking.reloadInstance(Linking.java:113)
... 3 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 36; columnNumber: 2; The markup in the document following the root element must be well-formed.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at com.tridion.configuration.XMLConfigurationReader.readConfiguration(XMLConfigurationReader.java:119)
... 10 more
at Codemesh.JuggerNET.JavaClass.ThrowException(Exception ex)
at Codemesh.JuggerNET.NTypeValue.Throw(Int64 inst)
at Codemesh.JuggerNET.JavaClass.ThrowTypedException(Int64 inst)
at Codemesh.JuggerNET.JavaMethod.CallObject(JavaProxy jpo, JavaMethodArguments args)
at Com.Tridion.Linking.BinaryLink..ctor(Int32 publicationId)
at Tridion.ContentDelivery.Web.Linking.BinaryLink..ctor(Int32 publicationId)
at Sdl.Web.Tridion.Linking.TridionLinkResolver.ResolveBinaryLink(TcmUri tcmUri, Int32 localizationId) in c:\Code Base\InfoMAX\Dev\Sdl.Web.Tridion\Linking\TridionLinkResolver.cs:line 88
at Sdl.Web.Tridion.Linking.TridionLinkResolver.ResolveLink(TcmUri tcmUri, Boolean resolveToBinary, Localization localization) in c:\Code Base\InfoMAX\Dev\Sdl.Web.Tridion\Linking\TridionLinkResolver.cs:line 68
at Sdl.Web.Tridion.Linking.TridionLinkResolver.ResolveLink(String sourceUri, Boolean resolveToBinary, Localization localization) in c:\Code Base\InfoMAX\Dev\Sdl.Web.Tridion\Linking\TridionLinkResolver.cs:line 35
at Sdl.Web.Tridion.Mapping.DefaultRichTextProcessor.ResolveRichText(XmlDocument doc, Localization localization) in c:\Code Base\InfoMAX\Dev\Sdl.Web.Tridion\Mapping\DefaultRichTextProcessor.cs:line 78
at Sdl.Web.Tridion.Mapping.DefaultRichTextProcessor.ProcessRichText(String xhtml, Localization localization) in c:\Code Base\InfoMAX\Dev\Sdl.Web.Tridion\Mapping\DefaultRichTextProcessor.cs:line 46
at Sdl.Web.Tridion.Mapping.DefaultModelBuilder.MapFieldValues(IField field, Type modelType, Boolean multival, MappingData mapData) in c:\Code Base\InfoMAX\Dev\Sdl.Web.Tridion\Mapping\DefaultModelBuilder.cs:line 633
Question:
- DXA Link Resolving will work only from server not from local machine?
- If it is not working from local, debugging entity view will fail when having component link in rich text field. Is my understanding right? or I missed something?
- Now, deployed and tried from server, no error in entity view. But i dont understand why the link is resolving with port number. Eg: https://mydomain.com:48700/mypubpath/mypubpath/mysg/mypage.html. I think link is resolving combination of cd_link_conf+ Broker DB page url (Porotocol+domain+port+path+pageurl from broker). Already page url in broker has "publication path, so i see pub path adding twice)
- I expect the resolved URL without port number as https://mydomain.com/mypubpath/mysg/mypage.html