Project

General

Profile

Actions

Bug #5098

closed

Save Archive (KAR)... will have exception when internet is not accessible.

Added by jianwu jianwu over 14 years ago. Updated over 13 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
core
Target version:
Start date:
07/19/2010
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5098

Description

Found by Chris Weed, I can reproduce it.

It happens when I right-click the actor, choose 'Save Archive (KAR)...' and try to save its kar file, no matter whether I choose 'Add Semantic Types' or not.

[null] done writing KAR file to C:\Users\jianwu\KeplerData\workflows\MyWorkflows\ttt.kar
[null] java.net.UnknownHostException: ptolemy.eecs.berkeley.edu
[null] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
[null] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
[null] at java.net.Socket.connect(Socket.java:529)
[null] at java.net.Socket.connect(Socket.java:478)
[null] at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
[null] at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
[null] at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
[null] at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
[null] at sun.net.www.http.HttpClient.New(HttpClient.java:306)
[null] at sun.net.www.http.HttpClient.New(HttpClient.java:323)
[null] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
[null] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
[null] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
[null] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
[null] at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
[null] at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
[null] at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
[null] at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
[null] at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
[null] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
[null] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[null] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[null] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[null] at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
[null] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
[null] at org.kepler.moml.KeplerMetadataExtractor.extractActorMetadata(KeplerMetadataExtractor.java:101)
[null] at org.kepler.objectmanager.cache.ActorCacheObject.<init>(ActorCacheObject.java:141)
[null] at org.kepler.kar.handlers.ActorMetadataKAREntryHandler.cache(ActorMetadataKAREntryHandler.java:169)
[null] at org.kepler.kar.KARFile.cache(KARFile.java:876)
[null] at org.kepler.kar.KARFile.cacheKARContents(KARFile.java:591)
[null] at org.kepler.kar.SaveKAR.saveToCache(SaveKAR.java:184)
[null] at org.kepler.gui.kar.ExportArchiveAction.actionPerformed(ExportArchiveAction.java:344)
[null] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
[null] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
[null] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
[null] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
[null] at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
[null] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
[null] at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
[null] at java.awt.Component.processMouseEvent(Component.java:6263)
[null] at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
[null] at java.awt.Component.processEvent(Component.java:6028)
[null] at java.awt.Container.processEvent(Container.java:2041)
[null] at java.awt.Component.dispatchEventImpl(Component.java:4630)
[null] at java.awt.Container.dispatchEventImpl(Container.java:2099)
[null] at java.awt.Component.dispatchEvent(Component.java:4460)
[null] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
[null] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
[null] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
[null] at java.awt.Container.dispatchEventImpl(Container.java:2085)
[null] at java.awt.Window.dispatchEventImpl(Window.java:2478)
[null] at java.awt.Component.dispatchEvent(Component.java:4460)
[null] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
[null] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
[null] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
[null] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
[null] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
[null] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
[null] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
[null] Error parsing Actor KAR DOM "<?xml version="1.0"?>
[null] &lt;!DOCTYPE entity PUBLIC "-//UC Berkeley//DTD MoML 1//EN"
[null] "http://ptolemy.e...": ptolemy.eecs.berkeley.edu
[null] WARN (org.kepler.objectmanager.cache.CacheManager:insertObject:237)
KAREntry has no lsid: null
It has similar exception when proxy is needed to access internet. The problem Chris found is as follows.

I think the problem I am having is that it is trying to validate the XML against
http://ptolemy.eecs.berkeley.edu/xml/dtd/MoML_1.dtd, and my proxy
is probably in the way. Although I set the proxy in the kepler.bat file on the
command-line. I am not sure why it isn't going through.
Chris

[null] java.net.ConnectException: Connection timed out: connect
[null] at java.net.PlainSocketImpl.socketConnect(Native Method)
[null] at java.net.PlainSocketImpl.doConnect(Unknown Source)
[null] at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
[null] at java.net.PlainSocketImpl.connect(Unknown Source)
[null] at java.net.SocksSocketImpl.connect(Unknown Source)
[null] at java.net.Socket.connect(Unknown Source)
[null] at java.net.Socket.connect(Unknown Source)
[null] at sun.net.NetworkClient.doConnect(Unknown Source)
[null] at sun.net.www.http.HttpClient.openServer(Unknown Source)
[null] at sun.net.www.http.HttpClient.openServer(Unknown Source)
[null] at sun.net.www.http.HttpClient.<init>(Unknown Source)
[null] at sun.net.www.http.HttpClient.New(Unknown Source)
[null] at sun.net.www.http.HttpClient.New(Unknown Source)
[null] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(
Unknown Source)
[null] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unkn
own Source)
[null] at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown S
ource)
[null] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Un
known Source)
[null] at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Un
known Source)
[null] at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown S
ource)
[null] at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknow
n Source)
[null] at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unkno
wn Source)
[null] at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.d
ispatch(Unknown Source)
[null] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDoc
ument(Unknown Source)
[null] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
urce)
[null] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
urce)
[null] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[null] at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
[null] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Sour
ce)
[null] at org.kepler.moml.KeplerMetadataExtractor.extractActorMetadata(
KeplerMetadataExtractor.java:101)
[null] at org.kepler.objectmanager.cache.ActorCacheObject.<init>(ActorC
acheObject.java:141)
[null] at org.kepler.kar.handlers.ActorMetadataKAREntryHandler.cache(Ac
torMetadataKAREntryHandler.java:169)
[null] at org.kepler.kar.KARFile.cache(KARFile.java:876)
[null] at org.kepler.kar.KARFile.cacheKARContents(KARFile.java:591)
[null] at org.kepler.kar.SaveKAR.saveToCache(SaveKAR.java:184)
[null] at org.kepler.gui.kar.ExportArchiveAction.actionPerformed(Export
ArchiveAction.java:344)
[null] at javax.swing.AbstractButton.fireActionPerformed(Unknown Source
)
[null] at javax.swing.AbstractButton$Handler.actionPerformed(Unknown So
urce)
[null] at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown So
urce)
[null] at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
[null] at javax.swing.AbstractButton.doClick(Unknown Source)
[null] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source
)
[null] at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(
Unknown Source)
[null] at java.awt.Component.processMouseEvent(Unknown Source)
[null] at javax.swing.JComponent.processMouseEvent(Unknown Source)
[null] at java.awt.Component.processEvent(Unknown Source)
[null] at java.awt.Container.processEvent(Unknown Source)
[null] at java.awt.Component.dispatchEventImpl(Unknown Source)
[null] at java.awt.Container.dispatchEventImpl(Unknown Source)
[null] at java.awt.Component.dispatchEvent(Unknown Source)
[null] at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Sou
rce)
[null] at java.awt.LightweightDispatcher.processMouseEvent(Unknown Sour
ce)
[null] at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
[null] at java.awt.Container.dispatchEventImpl(Unknown Source)
[null] at java.awt.Window.dispatchEventImpl(Unknown Source)
[null] at java.awt.Component.dispatchEvent(Unknown Source)
[null] at java.awt.EventQueue.dispatchEvent(Unknown Source)
[null] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown S
ource)
[null] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Sour
ce)
[null] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown S
ource)
[null] at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[null] at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[null] at java.awt.EventDispatchThread.run(Unknown Source)
[null] Error parsing Actor KAR DOM "
[null] <!DOCTYPE entity PUBLIC "-//UC Berkeley//DTD MoML 1//EN"
[null] "http://ptolemy.e...": Connection timed out: connect
[null] WARN (org.kepler.objectmanager.cache.CacheManager:insertObject:237)
KAREntry has no lsid: null

Actions

Also available in: Atom PDF