Author: rodche
Date: 2012-03-29 19:19:03 -0700 (Thu, 29 Mar 2012)
New Revision: 28705

Modified:
   
core3/impl/trunk/biopax-impl/src/main/java/org/cytoscape/biopax/internal/util/BioPaxUtil.java
   
core3/impl/trunk/cpath2-impl/src/main/java/org/cytoscape/cpath2/internal/util/BioPaxUtil.java
Log:
Changed to catch a Throwable in the BioPAX parser (since recently, biopax-impl 
and cpath2-impl plugins are broken due to StAX impl. cannot be auto-discovered 
at runtime anymore for some reason... Strange...)

Modified: 
core3/impl/trunk/biopax-impl/src/main/java/org/cytoscape/biopax/internal/util/BioPaxUtil.java
===================================================================
--- 
core3/impl/trunk/biopax-impl/src/main/java/org/cytoscape/biopax/internal/util/BioPaxUtil.java
       2012-03-30 02:05:04 UTC (rev 28704)
+++ 
core3/impl/trunk/biopax-impl/src/main/java/org/cytoscape/biopax/internal/util/BioPaxUtil.java
       2012-03-30 02:19:03 UTC (rev 28705)
@@ -137,7 +137,7 @@
                        if(model != null && 
BioPAXLevel.L2.equals(model.getLevel())) {
                                model = new OneTwoThree().filter(model);
                        }
-               } catch (Exception e) {
+               } catch (Throwable e) {
                        log.warn("Import failed: " + e);
                }
                return model;

Modified: 
core3/impl/trunk/cpath2-impl/src/main/java/org/cytoscape/cpath2/internal/util/BioPaxUtil.java
===================================================================
--- 
core3/impl/trunk/cpath2-impl/src/main/java/org/cytoscape/cpath2/internal/util/BioPaxUtil.java
       2012-03-30 02:05:04 UTC (rev 28704)
+++ 
core3/impl/trunk/cpath2-impl/src/main/java/org/cytoscape/cpath2/internal/util/BioPaxUtil.java
       2012-03-30 02:19:03 UTC (rev 28705)
@@ -157,7 +157,7 @@
                        if(model != null && 
BioPAXLevel.L2.equals(model.getLevel())) {
                                model = new OneTwoThree().filter(model);
                        }
-               } catch (Exception e) {
+               } catch (Throwable e) {
                        log.warn("Import failed: " + e);
                }
                return model;

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to